• Advertisement
Sign in to follow this  

Best way to render complex model

This topic is 1711 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello,

 

I have an interesting question on my opinion and I don`t know an answer yet.

 

I want to hold in memory and render a models which consist from big amount of different meshes (for ex. a big space ship) It has a lot of decks and dirrerent stuff inside and outside. Of course I want to have possibility to remove and add any item to/from this ship in any time. 

Each mesh has it`s own matrix. So, when I start moving a ship I had to multiply all matrices to move all objects correctly. But If I have a lot of matrices I could not do everything in time because multiplying all matrices could take a lot of time and in that case I will have lags.

 

If I merge all meshes in 3ds max I loose possibility to move separate objects.

 

So, my question is: what is the effective render algorithm if I want to have models consists from huge amount of other objects?

 

I don`t want to have a monolithic ship or any other object. I want to have possibility to remove any part away in any time.

 

Who has the same problem, please, say which way you choose to render meshes!

 

Share this post


Link to post
Share on other sites
Advertisement

Yourself 

 

Thanks for clarification. I forgot for occlusion algorithms, but I want to ask is occlusion will work for objects, which are inside model and not behind it?

Share this post


Link to post
Share on other sites

You can try out a BSP tree culling, and then start having Occlussion culling if that is needed. and i dont know how many objects you are having in your sceen, but you can easily optimize the

matrix multiplication with SIMD & Parrarlism. this will probably have a good effect for you.

 

But as the previous answer said, is that, there is no "common" way for this, try out some stuff and find the best solution for yourself.

Share this post


Link to post
Share on other sites

you really have 2 types of scenes, exterior, and interior. 

 

for exterior, you should have just the meshes that can been seen from outside.

 

for interior, its basically a first person shooter level kinda thing.  there you'd only have the meshes visible from a particular area or room.

 

so you'd have one set of meshes for exterior, and another for each interior scene. never would you try to draw it all. 

 

make a copy of your master model and split it up based on which scene it belongs in. then you'd have 2 basic types of drawing routines, one for exterior, and one for interior scenes. almost 2 graphic engines, one a space flight sim, and the other a first person shooter.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement