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 as an image

See original GitHub issue

Hi,

Thank you for the great library.

Is there a way to save the current mesh as an image, but to return a numpy array (or other type of arrays) instead. I know that data = scene.save_image(resolution=(1080,1080)) return an image, but in bytes 😦

Thank you in advance!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:16 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
mikedhcommented, Aug 13, 2020

Ah yeah the depth buffer in XVFB is a bit odd, example is fixed in the upcoming release, check related issue https://github.com/mikedh/trimesh/issues/943 and fix: https://github.com/mikedh/trimesh/blob/e35693f22fb2af0769e1f220328ff8922c44b50f/examples/dockerRender/render.py#L17-L19

0reactions
Sxx1995commented, Sep 5, 2022

but the images I got has this weird half tra

Hi, I also meet the same problem. Can you share me some reference that how to use xvfb?

Thanks a lot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

export mesh images -- CFD Online Discussion Forums
Hi everybody. Anyone can explain me how export images (jpeg, png,...) of the generated mesh? Thank you.
Read more >
How do you download or save a texture of a mesh
If you're talking about image textures you can save them in a folder: go in the Image Editor or UV Editor > Image...
Read more >
Save Views in Meshing - YouTube
In this video, we will talk about how to create and manage views. We can then use these views to quickly go from...
Read more >
How to export or save a plane mesh as image format in three ...
Suppose I have created a mesh with plane geometry and have multiple effects on it. var tx = THREE.ImageUtils.loadTexture("g.png"); var ...
Read more >
Save distorted mesh to a png file - Unity Forum
I have a 3D plane, and I am performing some mesh manipulation (displacing some vertices) to distort the image, and now I want...
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