ryven
11-10-2009, 09:54 AM
Hi
I've been working on a problem where i'm trying to combine to two sets of UVs (in an .obj). This seems simple in principle, but for some reason it doesn't seem to be coming out right.
Basically, i've got image1 and image2, which are both 1000 pixels wide. I have an .obj with UVs that work for image1 and an .obj with UVs that work for image2 - the textured objects come out correctly.
I want to combine image1 and image2 to make a 2000 pixel image, and in doing so, combine the two objs (they're really the same obj anyway, except the UVs are different, the verts are the same, so its really just like having two versions of the same obj with half textured correctly either way atm).
Since combining the texture images is literally just adding the second image to the end of the first, and that UVs are always between 0 and 1, i figured this would just be a scale thing. So i tried multiplying the UVs that work for image1 into 0.5 (since image1 is now half of the new combined image), to represent the first half of the 2k image, and did the same for image2 + 0.5, to get it in the second half. But this doesn't work.
I'm new to UVs so i don't know if i'm doing something obviously wrong.
Anyone have any ideas?
Thanks
I've been working on a problem where i'm trying to combine to two sets of UVs (in an .obj). This seems simple in principle, but for some reason it doesn't seem to be coming out right.
Basically, i've got image1 and image2, which are both 1000 pixels wide. I have an .obj with UVs that work for image1 and an .obj with UVs that work for image2 - the textured objects come out correctly.
I want to combine image1 and image2 to make a 2000 pixel image, and in doing so, combine the two objs (they're really the same obj anyway, except the UVs are different, the verts are the same, so its really just like having two versions of the same obj with half textured correctly either way atm).
Since combining the texture images is literally just adding the second image to the end of the first, and that UVs are always between 0 and 1, i figured this would just be a scale thing. So i tried multiplying the UVs that work for image1 into 0.5 (since image1 is now half of the new combined image), to represent the first half of the 2k image, and did the same for image2 + 0.5, to get it in the second half. But this doesn't work.
I'm new to UVs so i don't know if i'm doing something obviously wrong.
Anyone have any ideas?
Thanks
