Jump to content
  • Advertisement
Sign in to follow this  
ftothed

3DS max sdk: exporting normals for mirrored meshes using IGame interface

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

Hi,

Does anyone have a solution to exporting normals of mirrored meshes when using the IGame interface (3ds max sdk)?

currently I'm just calling:

FaceVert.normal = gm->GetNormal(face->norm[iVertex], false) * m_WorldToLocal;

And for most objects, that's fine, but any meshes that have been mirrored by the artist always have them flipped. After looking through the API online, I don't see a way to tell IGame which part of the stack to use for exporting data, or even if there is a way to get an attribute that tells me that the mesh has been mirrored, in which case I could just flip the normals myself.

Hopefully I've missed something and there is a way to do this. Alternatively, I could just re generate the normals myself, but I'd like to avoid that if I can get the correct normals out of the IGame interface.

Thanks!

Share this post


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

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!