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.

save mesh covered by texture as png file

See original GitHub issue

hello I tend to save my mesh, that covered by texture, as a png file. here is my code to load texture on obj file:

from vedo import *

mesh = Mesh("data/10055_Gray_Wolf_v1_L3.obj",) 

mesh.texture("data/10055_Gray_Wolf_Diffuse_v1.jpg", scale=0.1)

mesh.show()

Any help, Please. I prefer to save png without background.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
marcomusycommented, Apr 3, 2022

Please try:

  1. install libgl1-mesa and xvfb:
 sudo apt-get install libgl1-mesa-dev libgl1-mesa-glx  xvfb
  1. execute on startup:
#!/bin/bash
# 
set -x
export DISPLAY=:99.0
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
sleep 3
set +x
exec "$@"
  1. save the bash script above as /etc/rc.local (or any other file to be called) and use chmod +x to make it executable.
plt = vedo.Plotter(offscreen=True)
plt += vedo.Cube()
plt.show()
plt.screenshot(filename)
0reactions
ganjbakhshalicommented, Apr 5, 2022

I will test it and let you know about the result. Thanks again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Saving texture painted material externally?
Open the texture in the UV image editor. If you have multiple textures beside the one you want to save, click the little...
Read more >
How to download or save a texture of a mesh ... - Quora
Go to the rendering tab, under bake option, select combined and bake texture. Once baking is complete, proceed to save image in image...
Read more >
Export mesh with single texture jpg file - DroneDeploy Forum
If you process your photos thru Agisoft's Metashape program to generate the 3D model, then you can export the OBJ file with only...
Read more >
How to Add PNG Textures with Transparency to ... - YouTube
Add a pattern texture to a material and have it overlay everything else in your material node setup in Blender. This shows how...
Read more >
Accessing the colored mesh generated by LiDAR scan
The general idea is to recreate the ARMeshGeometry using a SCNGeometry, set texture colors using whatever methodology works for your needs, then save...
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