Is there a way to get the number of materials from a mesh?
Is there a way to get the number of materials from a mesh?
I am trying to get the number of materials on a mesh before creating a scene node from it. How would I do this?
Re: Is there a way to get the number of materials from a mesh?
Materials for a mesh are per meshbuffer. So number of meshbuffers is identical with the number of materials.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: Is there a way to get the number of materials from a mesh?
Thanks for the help. I actually tried to respond yesterday but I kept getting an error when I tried to log in.
Re: Is there a way to get the number of materials from a mesh?
Yeah, the sourceforge people are trying to improve the server and it already got a lot better again than a week ago. But it seems to be a bit of a constant fight. Probably AI companies browsing the web like crazy not making it better.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm