What should I use instead of CBatchingMesh?
What should I use instead of CBatchingMesh?
I'm trying to make my game run on a modern system, and apparently the latest version doesn't have CBatchingMesh anymore... What's the replacement?
Re: What should I use instead of CBatchingMesh?
Irrlicht never had CBatchingMesh, that was always in Irr-extensions: https://sourceforge.net/p/irrext/code/H ... tchingMesh
I've now also added a slightly updated version (with 32-bit buffer support) to my code snippets, but probably needs svn-trunk version of Irrlicht to work: https://github.com/mzeilfelder/irr-playground-micha It might have more patches, pretty sure I run in some bugs in the past and just fixed them locally, but don't remember details right now.
Also in case your problem is texture-switches (which are expensive), I've added a bit of a hack in svn trunk which can do wonders if you have tons of objects with several materials. IMeshScenenode::setNodeRegistration(ENR_PER_MESH_BUFFER) will kinda create a new node per buffer (bit of a mix... Irrlicht still lacks something like IRenderable). And this boosted speeds here in some scenes enormously!
I've now also added a slightly updated version (with 32-bit buffer support) to my code snippets, but probably needs svn-trunk version of Irrlicht to work: https://github.com/mzeilfelder/irr-playground-micha It might have more patches, pretty sure I run in some bugs in the past and just fixed them locally, but don't remember details right now.
Also in case your problem is texture-switches (which are expensive), I've added a bit of a hack in svn trunk which can do wonders if you have tons of objects with several materials. IMeshScenenode::setNodeRegistration(ENR_PER_MESH_BUFFER) will kinda create a new node per buffer (bit of a mix... Irrlicht still lacks something like IRenderable). And this boosted speeds here in some scenes enormously!
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