question about extendedmesh

question about extendedmesh

Portrait de sky
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 nouveau(x)
Dernière contribution
Reportez-vous à notre Notice d'optimisation pour plus d'informations sur les choix et l'optimisation des performances dans les produits logiciels Intel.
Portrait de carlos_at_havok

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."

Connectez-vous pour laisser un commentaire.