trueSpace Procedural Animation

User avatar
Posts: 3070
Joined: 21 Sep 2009, 19:33
Type the number ten into the box: 0
Location: Bogota, Colombia

Re: trueSpace Procedural Animation

Post by Draise » 06 May 2019, 16:21

Like most DirectX engines or game engines, the quantity of objects (despite geometry count) will affect performance heavily. So having one cached mesh then instanced multiple times in the 3D space will dramatically drop your GPU/CPU ram (instead of one new mesh taking up a processing slot each copy).

I also do this for most game engines, better to have one 100,000 poly mesh (so that it loads once, then draws many times, depends on the ram buffer) than x10 unique 10,000 poly meshes (loads each once, ten times with a x10 times slower card load on model changes, with the addition of drawing each over and over again, making a performance bottleneck). On top of that, better to have x1 10,000 poly mesh instanced X10 times than x10 unique 10,000 poly meshes - as the GPU will load that one mesh once, then instance it in a heartbeat making the bottleneck smaller. FPS will be better on the GPU this way, easier load on the software.

Posts: 2743
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: trueSpace Procedural Animation

Post by clintonman » 12 May 2019, 01:07

Final version. Got it up to the resolution I was hoping for. At that quality level it did not run in real time. I think the limiting factor at this point is that it works by moving a tall box to the center of each hexagonal shape and runs a boolean operation. If an intersection is found it moves the corresponding hexagon. There are 1920 hexagons in the mesh and each hexagon has 20 vertices so that comes to 38400 vertices to copy and move for each frame. Even without the countdown number plus booleans processing it takes about 1 second to update for each frame, add it back in and it takes a few seconds to update.
It was a great little project. In the future I'll keep it a little bit simpler. :)

I added a link to the scene files in the first post of this thread.
Clinton Reese

Post Reply