Jump to content
  • Advertisement
Sign in to follow this  
DummyBoy

3d studio maxScript exporting: normals problem. Pls Help!

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

Hello, I'm writing my own 3d exporter for 3d studio (as in topic ;]). A have one problem. I need to have normal for each vertex in each Face As far as now I found that i can export normals for indexed vertices or for each face, but that is not enought. Problem comes when I want to export cube and model with smooth shading in the same time. I have to choose between per vertex or per face normal. The ideal solution is to have normal for each vertex for each face (like texture coord). After sitting few days i didn't find any resonable solution. I guess I have to make some interpolation, but i want to be sure. Pleas help!;].

Share this post


Link to post
Share on other sites
Advertisement
Found fairly easily in the maxscript reference.
Quote:
getNormal <mesh> <vert_index_integer>

Returns the normal at the indexed vertex’s position as a point3. The normal is based on the faces that use the vertex and the smoothing groups assigned to those faces.

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!