Material feature request, or is it already possible?
-
- Posts: 1691
- Joined: Sun May 18, 2008 9:42 pm
Material feature request, or is it already possible?
I want to have one SMaterial structure for a whole bunch of different objects and have all of them use the same one without copying. I think it would be much more efficient if Irrlicht's material system was upgraded to use pointers to materials instead of each meshbuffer owning a copy.
That would be illogical captain...
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
I tried doing something similiar and abandoned that:
---
1) call the material
driver-> setMaterial
2)
and then draws every mesh buffer after that.
---
You get performance increase only with many meshbuffers(not to much gain), but at this point the best worth is mesh batching. If you really need it you can do it on your own as described above.
---
1) call the material
driver-> setMaterial
2)
and then draws every mesh buffer after that.
---
You get performance increase only with many meshbuffers(not to much gain), but at this point the best worth is mesh batching. If you really need it you can do it on your own as described above.
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me