rbrose
November 4, 2021, 4:38pm
1
Hello,
i have a strange problem. If i use the Node Editor and load Custom obj for Preview, then all looks good.
But if i generate code, build node material in code and assign to mesh:
mesh.material = nodeMaterial;
Then UV Coordinates are not correct on model. What can be the problem?`
This is really hard to say without a repro ? could you create one in the playground ?
rbrose
November 6, 2021, 8:25pm
3
Maybe the question with Screenshots: this is the Node:
How i can correct this in Node Editor?
sebavan
November 8, 2021, 10:22am
4
You could try adding an extra node to do 1 - u to flip the texture horizontally
rbrose
November 8, 2021, 10:35am
5
How do you mean this? How i can can flip texture horizontally?
sebavan
November 8, 2021, 10:57am
6
rbrose
November 8, 2021, 7:05pm
7
That not help, i have flip x and try x.
Not sure to understand, a repro in the playground would be great to go further
2 Likes
To repro in the playground, click “save as unique URL” in NME:
Then just use this codeblock, with the URL pasted in, to get the material into the playground:
3 Likes
@rbrose were you able to solve the problem or get a playground repro?