question about extendedmesh

question about extendedmesh

sky's picture
hi, all:

how to set a TriSubPart's material index or filter? instead of set each triangle's material index, because in my application, each triangle's material and filter is same in a trisubpart. thanks!

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.
carlos_at_havok's picture

Hello, Sky,

If you set Subpart::m_materialIndexBase to an array of the index of the one common material, you should be good. But, you will still have to make sure that array is the size of the number of the triangles in the subpart.

-Carlos

Cheers, Carlos Developer Support Engineer, Havok "The documentation will set you free."

Login to leave a comment.