Hi all!
I experiment with generating of city from scratch:
I came upon idea as generating of all little building details using algorithms might be troublesome task
I want to make some parts (like window frames, etc.) in Blender and then combine them into building.
The problem is if I just instance them like nodes, I have some CPU load problems and have too much geometry due to
culling issues. I want for the whole building to have just one bounding box, so I want merged geometry.
I use AngelScript to produce geometry which is quick enough for the job.
I produce road network and buildings procedurally then make models out of that geometry.
The building consists of 4 facades as separate nodes. This produce some splitting artifacts when I rotate camera,
and as windows are separate nodes too, they also separate from remaining geometry.
I want to join whole building into single geometry, including separate model parts.
I tried straightforward approach - model.GetGeometry()/model.SetGeometry()
and combine all into one Model. But for some reason, while there is no produced errors,
the resulting model is not rendered. Is there some example of simple model combining?
I need separate geometry anyway for parts which use different materials (but I want to merge geometries
for all parts using the same material). Any ideas, suggestions?