question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

why some textures did not load correctly in vedo library in python?

See original GitHub issue

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

I added Images in StackOverflow question

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
marcomusycommented, Oct 2, 2022

I think I’ve found the issue… Try the dev version: pip install -U git+https://github.com/marcomusy/vedo.git

1reaction
marcomusycommented, Feb 7, 2022

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)

Screenshot from 2022-02-08 00-08-11

Read more comments on GitHub >

github_iconTop Results From Across the Web

why some textures did not load correctly in vedo library in ...
from vedo import * settings.useDepthPeeling = True msh = Mesh("normalized_model.obj").texture("texture.png") show(msh, axes=1).
Read more >
vedo
A python module for scientific analysis and visualization of 3D objects.
Read more >
Textures - LearnOpenGL
A texture is a 2D image (even 1D and 3D textures exist) used to add detail to ... and probably a good one,...
Read more >
pyglet.image — pyglet v2.0.2
(This is the most efficient way to obtain a texture; some images are immediately loaded as textures, whereas others go through an intermediate...
Read more >
Assetto Corsa Mods - Top 5 Fixes for Errors (Race Canceled
A successful Assetto Corsa mod experience depends on minimizing errors ... This video covers my top 5 fixes for common problems like Race...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found