Page 1 of 1

UV BUG

Posted: Mon May 09, 2016 4:23 pm
by mstewart152
Think I found UV bug. This is a large plane, with 2 UV sets. One for the enitre plane, and one for this small area under the crane. For some reason when texturing the small area, it creates this weird border thing at the edge. The white line is the edge of the second UV map.

Re: UV BUG

Posted: Mon May 09, 2016 4:51 pm
by juanjgon
Weird, can you send to me the the scene with the plane object and the textures to test it here?

-Juanjo

Re: UV BUG

Posted: Thu May 12, 2016 1:51 pm
by mstewart152
here is a simple scene. One plane with 2 uV maps.

one map covers entire plane

other map covers just the middle. Reason for this is so you can make more detailed textures and masks for certain parts of terrains. If you unweld the points around the border of the inner UV map the error goes away. But then that creates smoothing and subpatch issues.

upon scene load, you can clearly see the weird white border along the edge.

In lightwaves engine, this error does not render, but can be scene in open GL.

Re: UV BUG

Posted: Thu May 12, 2016 3:04 pm
by juanjgon
Yes, I see. The problem is that the first UV map is not complete ... in it only the vertices of the middle polygons have a UV coordinate. All the other points are removed from the map, so they don't have an available UV coordinate and the behavior is unknown (usually they get an UV coordinate from other map, if available)

You can't remove vertices/polygons from an UV map that is going to use the same materials, all the object vertices must have a value to avoid side effects. You could for example put all the vertices of the polygons not used in 0,0 ... or like in the attached example, make the UV map bigger, and set the texture border mode to clamp to don't repeat it.

-Juanjo

Re: UV BUG

Posted: Tue May 17, 2016 2:41 pm
by mstewart152
ok, goot tip.... think scaling it would be the answer, thanks!