What is the best way to set up a large map with buildings and stuff on it and have a triangle-selector for collision detection?
I'm right now loading one map with a terrain and one building on it and I want to add buildings to it. I'm thinking about flats which will consist out of multiple duplicate blocks of static meshes on top of each other and normal houses between these flats...
Any ideas?
Creating Scene with "submeshes"
You mean like a level editor? Like IrrEdit? You can design your scene in that then export it as a single .irr file.
By the way, IAnimatedMesh is used for both animated and non animated meshes... Strange isn't it?
By the way, IAnimatedMesh is used for both animated and non animated meshes... Strange isn't it?
that's just plain weird yeah:P It does not really make sense:)xDan wrote:You mean like a level editor? Like IrrEdit? You can design your scene in that then export it as a single .irr file.
By the way, IAnimatedMesh is used for both animated and non animated meshes... Strange isn't it?
But I was not talking about some IrrEdit like thing. I want to enable the highest FPS possible on my map and that means I should add every buildingblock separately because than the app can 'delete' models not in the view at that point.. or do .irr files work exactly like that? (I though .irr files were just combined files that so to say 'merge' the objects and buildings)
I'm pretty sure the irr files have scene nodes in them... So the meshes aren't merged, so your buildings will still be culled separately.(I though .irr files were just combined files that so to say 'merge' the objects and buildings)
and there are functions to iterate through all scene nodes, if you want to do your own culling (e.g. setting nodes visible or not based on distance). Or just set the camera far plane closer.
(you don't really need to "delete" the nodes as it were, setting them to be invisible is good enough... unless you have a really really huge environment where you might want to stream from disk or something)