Octree from a bunch of cubes

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
CondeNostaw
Posts: 20
Joined: Sun Jan 04, 2009 2:47 pm
Location: Brazil

Octree from a bunch of cubes

Post by CondeNostaw »

I want to create a large city for my game. This city is actually a bunch of building-textured scaled cubes (the buildings) and a plane floor. These buildings will be created, translated and scaled randomly at the beginning of each level. So, how can I add all these cubes to the same octree triangle selector? Can I actually join them all in a single node?

The city won't have any animation at all.
Obey.
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

You can checkout some mesh-combiners in irrExt: http://irrext.svn.sourceforge.net/viewv ... ene/IMesh/

Both might work for this.
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
CondeNostaw
Posts: 20
Joined: Sun Jan 04, 2009 2:47 pm
Location: Brazil

Post by CondeNostaw »

Thanks. I'll check it out.
Obey.
Post Reply