MAXScript Question

Started by
0 comments, last by Kylotan 18 years, 9 months ago
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.
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.

This topic is closed to new replies.

Advertisement