Three.js to USD(A) conversion... almost - UV texture problem

Alan_Kent
Sat, 30 Sep 2023 09:24:49 +0000
Questions

Hi. I am converting a GLB file I imported into a USD(A) file for loading into Omniverse. I am experiencing a problem, and I thought I would ask in case anyone had seen it before.

Here is the back of a character in three.js - renders fine.

There is actually a seam down the back of the character. I just carefully lined up the images so they connect carefully. Here is the PNG file for the texture.

Here is what it looks like in Omniverse.

What I think is happening is something funny with the UV mapping near the edge. There is a gap down the middle, but I think it is related to stretching near the edge. The transparent part on the image is getting dragged up to the top (or similar).

Now, there are settings relating to clipping or wrapping UV (ST?) coordinates (wrapS and wrapT of texture for example). But I am wondering if a value of ‘1’ or higher for ST mapping is causing the confusion. Maybe it is wrapping in three.js, but I don’t have the setting right in USD, so its stretching.

My question - has anyone seen this stretching effect along the edge of the seam? Any suggestions on how to treat values out of range (e.g. truncate them, wrap them, etc). Thanks!

4 posts - 2 participants