What should I use instead of CBatchingMesh?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
fargoth
Posts: 22
Joined: Fri May 01, 2015 7:43 pm

What should I use instead of CBatchingMesh?

Post by fargoth »

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?
CuteAlien
Admin
Posts: 9643
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: What should I use instead of CBatchingMesh?

Post by CuteAlien »

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