Material feature request, or is it already possible?

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
3DModelerMan
Posts: 1691
Joined: Sun May 18, 2008 9:42 pm

Material feature request, or is it already possible?

Post by 3DModelerMan »

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
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Since too many mesh buffers are problematic anyway, I doubt that you will really recognize the memory consumption of materials.
REDDemon
Developer
Posts: 1044
Joined: Tue Aug 31, 2010 8:06 pm
Location: Genova (Italy)

Post by REDDemon »

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.
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
Post Reply