Sign in to follow this  
ftothed

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

Recommended Posts

ftothed    100
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this