• Advertisement
Sign in to follow this  

Should rendering geometry and physics geometry separated?

This topic is 1906 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

I feel like it's better to separate the rendering geometry and physics geometry, but this takes up twice as much memory as using one same geometry for both rendering and physics.

Share this post


Link to post
Share on other sites
Advertisement
Usually you don't use high resolution graphical assets for the physics, you'd either use really low quality versions or primitive shapes (boxes, cylinders). Either way, you need to store two versions, and the physics one should take up much less space than the rendering version. Plus, that data really isn't that big, compared to even a single texture

Share this post


Link to post
Share on other sites
Absolutely... And there should be, in my opinion, a complete separation from [i]visual[/i] game entities and l[i]ogical/physical[/i] game entities! For a physics object, for example, the visual representation should do nothing more than mirror the transformations of the logical representation. The logical representation holds the physics hull and all of the calculations are made against it, whereas the visual representation just follows it and gets rendered.

Share this post


Link to post
Share on other sites
I separate mine. How I do it is to have a separate Rendering Geometry and Physics Geometry. My Physics Geometry figures out what forces to apply to what (So I'll pass in Collision Points to physics along with some other general information like the type of collision) and then sends the forces to rendering, which will render the objects correctly.
Hodgman is correct too. Rendering concerns the GPU, while your Physics should be doing the calculations, so that's stored in the CPU's RAM, just like he said.

Share this post


Link to post
Share on other sites
It's better practace to seperate the two, it will provide the most advantages in the long run.

Share this post


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

  • Advertisement