Jump to content
  • Advertisement
Sign in to follow this  
Hexed

MAXScript Question

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

I'm trying to fix some OpenGL lighting issues in my program, and apparently I am exporting the incorrect vertex normals from max. This is what I'm using in my export script: n = getNormal tmesh face[v] This is not returning the normals I believe it should. In the MAXScript reference (which is quite baffling to say the least), it says the following: 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. Does this not mean that it should be returning the average of the face normals that the vertex shares? Because it's not. It only returns one of the face's normals. Please help.

Share this post


Link to post
Share on other sites
Advertisement
You will probably get better answers on MaxScript in the Visual Arts forum where the artists are. This forum is more for game scripting and scripting languages in the context of games and mods.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!