UV BUG

Newtek Lightwave 3D (exporter developed by holocube, Integrated Plugin developed by juanjgon)

Moderator: juanjgon

Post Reply
mstewart152
Licensed Customer
Posts: 107
Joined: Tue Jun 17, 2014 7:01 pm

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.
Attachments
uv_bug.JPG
User avatar
juanjgon
Octane Plugin Developer
Posts: 8867
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

Weird, can you send to me the the scene with the plane object and the textures to test it here?

-Juanjo
mstewart152
Licensed Customer
Posts: 107
Joined: Tue Jun 17, 2014 7:01 pm

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.
Attachments
uv_bug.zip
(14.75 KiB) Downloaded 84 times
User avatar
juanjgon
Octane Plugin Developer
Posts: 8867
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

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
Attachments
image001384.jpg
image001383.jpg
mstewart152
Licensed Customer
Posts: 107
Joined: Tue Jun 17, 2014 7:01 pm

ok, goot tip.... think scaling it would be the answer, thanks!
Post Reply

Return to “Lightwave 3D”