PDA

View Full Version : How to bring UV-vertex from Geometry vertex


Cundil
11-13-2007, 11:44 AM
how can I (maybe using some kind of a function) find out indexes of UV-vertexes that belong to the current geometry vertex?

Bobo
11-13-2007, 02:52 PM
how can I (maybe using some kind of a function) find out indexes of UV-vertexes that belong to the current geometry vertex?

See MAXScript Reference - "Understanding Texture Coordinates..."
The vertex and UV vertex have the same index within their respective face, and the indices of the faces are indentical too.

1. Get the geometry face of the geometry vertex and note its index
2. See where in the face is the geometry vertex located (first, second, third...)
3. Get the Texture Face with the SAME index as the geometry face
4. Get the Texture Vertex at the same position (first, second, third...) as in the geometry face
RESULT: You have one Texture Vertex that corresponds to your geometry vertex.

Since a geometry vertex can be part of any number of faces, there are potentially many texture vertices (one per face) that correspond to it. As example, see the pole vertex of a Sphere primitive which has as many Tvertices as there are segments in the sphere...

CGTalk Moderation
11-13-2007, 02:52 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.