0

I'm trying to load some .obj files with their texture by vedo lib:

from vedo import *
from transparent import *

mesh = Mesh("3d/gol1/raw_model.obj")#load 3d model
mesh.texture("3d/gol1/texture.png")#load texture on 3d mode

plt = Plotter(offscreen=True)
plt += mesh
plt.show().screenshot("hi.png")#save as png

but in some cases, like the image below, the texture did not load correctly: the correct one: enter image description here

and we see here the result after loading texture:

loaded in vedo

Andrii Omelchenko
  • 13,183
  • 12
  • 43
  • 79
Ali Ganjbakhsh
  • 541
  • 7
  • 13

1 Answers1

1

I'm not completely sure why that happens but depth peeling fixes it..:

from vedo import *
settings.useDepthPeeling = True
msh = Mesh("normalized_model.obj").texture("texture.png")
show(msh, axes=1)

enter image description here

mmusy
  • 1,292
  • 9
  • 10