PDA

View Full Version : Texture Vertices...


galagast
03-23-2005, 12:00 PM
I read through the "Understanding Texture Coordinates and Vertex Colors" section in the helpfile, i was wondering what kind of functions are needed to perform copying of texture vertices from a face in object A to texture vertices in object B...

- say i have a sphere01, noised it out and cloned it (sphere02)
- now i applied a bitmap and a UVW Unwrap to sphere01, did some adjustments to the UVs then collapsed it afterwards.
- lastly, what i wanted to do was read through each face of the sphere01, and collect thier texture vertices... after acquiring the data, i would want to apply it to the texture vertices of sphere02...

Im aware that this can be done by some other means... but im particularly interested in doing it through script, and through the texture channels... maybe someone could just give me hints, or prod me in the right direction for the procedure, or just mention some functions needed to achieve this.. coz im getting confused as to what i really need to use, the meshop has tons of functions for mapping operations (AFAIK) and I dont know where to start...:shrug:

any help, as always, is much apprecited :)

prettyPixel
03-23-2005, 01:46 PM
Did you try to use the fantastic "Map channel Info"?
Not in maxscript but directly in 3DSmax (menu tools)
I think It do it for different objects

You can also use this functions under maxscript. Is this great step?
But In the case of an intensive usage of the stack that can cause crashes.
channelInfo.CopyChannel objA 3 fromChannel
channelInfo.PasteChannel objB 3 toChannel

An another way is to use some classic functions like in this script that I have wroted:
http://users.skynet.be/arketip/maxscript/copyMapchannel04.mcr
Pay attention: I am not certain that there are no errors.

Good luck with the UVs ;)

CGTalk Moderation
03-23-2005, 01:46 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.