Jump to content
  • Advertisement
Sign in to follow this  
all_names_taken

PhysX - what does "cooking" mean?

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

What does it mean to "cook" a mesh in PhysX? I'm trying to understand the physx samples but I can't seem to find any explanation on what this term means. Also, I'm wondering about collision groups. Is the user supposed to use these for spatial division to optimize performance, or are they just intended for collision logic, e.g. filter what can collide with what?

Share this post


Link to post
Share on other sites
Advertisement
a) "Cooking" is a simple term for preprocessing your collision meshes. PhysX needs to convert your triangle data into its own structures, computing helper data along the way. This is necessary to allow collision tests against it, but you can write the resulting data to a file and load it pre-cooked in future runs.

b) To my knowledge, collision groups are for contact reports and filtering. That means that you can filter which sets of entities should collide with each other, and you can define on which of those groups you want to be notified when they collide.

Bye, Thomas

Share this post


Link to post
Share on other sites
Quote:
Original post by all_names_taken
What does it mean to "cook" a mesh in PhysX? I'm trying to understand the physx samples but I can't seem to find any explanation on what this term means.


It's metaphorical. They expect people to just figure it out on that basis. :)

To "cook" (or "bake"; another commonly used metaphor) a meal is to take raw ingredients and prepare something out of them that is more digestible and palatable to its ultimate consumer. Thus, to "cook" mesh data is... well, the same thing. :)

Share this post


Link to post
Share on other sites
pre-process mesh data in a manner that is more adequate for the collision detection / spatial partitioning and consequently improve runtime performance.

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!