PDA

View Full Version : Flattening a 3d mesh


avdoot
03-17-2008, 01:07 PM
could you point me in the right direction to find the relation (mapping: eg tvert 34, 39, ... map to vert 15 ) between a vert and a tvert in maxscript ?

My goal of finding this is flattening a 3d mesh which has been uvw mapped. I'd like to copy the mesh and transform/set the copy's vertices to (u, v, 0) so that it becomes an 'unwrapped 3d mesh'.

drdubosc
03-17-2008, 01:51 PM
An option, without explicitly finding map vertices, would be:


ChannelInfo.CopyChannel theNode 3 theMapChannelNumber
ChannelInfo.PasteChannel theNode 1 1

avdoot
03-17-2008, 03:01 PM
Thankyou, that strategy seems to work out well. For anyone else who might read this post and is trying something similar, I'd like to add that you might want to create your seams 'properly' (break the uv clusters). Otherwise, the plane object ends up having criss-crossing edges and may crash max when trying to select faces.
Pranav Tekchand/Avdoot Kumar
RZ2 Games

CGTalk Moderation
03-17-2008, 03:01 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.