dutch_delight
08-11-2007, 04:04 PM
Hi,
I have a little problem and im not sure what the best way is to solve it.
I have 2 quads next to eachother. the vertices are welded so it looks like this: (simple tri-strip)
face1 / face2 | face3 / face4
I need to go through each quad and apply a unique uv set to it.
However, when my loop goes to the next face or quad, the routine grabs the vertices that
are already assigned a uv position and overwrites them effectively messing up the previously assigned uv coords.
How do I assign a unique set of mapverts to the next face/quad?
Any help much appreciated
--quick code:
for n = 1 to $.numfaces do
(
--get vertices of first face
mapverts = meshop.getVertsUsingFace $ n as array
--set mapping to the verts
meshop.setMapVert $ 1 mapverts[1] (point3 0 1 0)
meshop.setMapVert $ 1 mapverts[2] (point3 1 1 0)
meshop.setMapVert $ 1 mapverts[3] (point3 0 0 0)
)
I have a little problem and im not sure what the best way is to solve it.
I have 2 quads next to eachother. the vertices are welded so it looks like this: (simple tri-strip)
face1 / face2 | face3 / face4
I need to go through each quad and apply a unique uv set to it.
However, when my loop goes to the next face or quad, the routine grabs the vertices that
are already assigned a uv position and overwrites them effectively messing up the previously assigned uv coords.
How do I assign a unique set of mapverts to the next face/quad?
Any help much appreciated
--quick code:
for n = 1 to $.numfaces do
(
--get vertices of first face
mapverts = meshop.getVertsUsingFace $ n as array
--set mapping to the verts
meshop.setMapVert $ 1 mapverts[1] (point3 0 1 0)
meshop.setMapVert $ 1 mapverts[2] (point3 1 1 0)
meshop.setMapVert $ 1 mapverts[3] (point3 0 0 0)
)
