Sign in to follow this  
Hexed

MAXScript Question

Recommended Posts

Hexed    175
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
Kylotan    9860
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

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