vedo: Real-time non-blocking mesh visualization

Thanks for your amazing work. I am intending to display the 3D mesh reconstruction results in real time. But every time, the program will be ended after showing the mesh in first time. I have tried ioff(), interactive=False but they didn’t work.

Here is a example, I intend to visualize a different mesh (with the same face).

faces = np.array([[0,1,2], [1,2,3], [2,3,4]])
verts = [vert1, vert2, vert3]
for vertex in verts:
    mesh=Mesh([vertex,faces])
    show(mesh,axis=1,interactive=0)

The program will be stopped after running into show at the first time.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (6 by maintainers)

Most upvoted comments

I have updated a new version of ROMP using vedo for visualization. I will upload some demos later. Thanks!

Thanks a lot for your great effort!

Yes, your solution of collapsing triangles with large gradient does look better. image

I thinks the warning occurred during saving pkl indicating that there are some problems in UV map. I will look into this. Thanks again. We really appreciate your time and effort.

I really appreciate your effort. I have test the fbx file with the same uv map in the Blender and unity. They work fine. It is just wierd in vtk. I will make further check. image

Thanks! Looking forward to your reply. Really looking forward to building a good demo togather for the researchers in my field. Vedo is great.

Here is an issue about the texture. It is really wierd that there is a blank gap between different area of UV map. image

from vedo import *
import numpy as np

faces=np.load('face.npy')
verts=np.load('vertices.npy')
uvmap=np.load('uv_table.npy')

mesh = Mesh([verts, faces])
mesh.texture('SMPL_sampleTex_m.jpg',tcoords=uvmap)
show(mesh)

material.zip

Yes, check out examples/basic/mesh_modify.py. This is only if you need to modify the vertex positions. Note that the global position of the object will not change (the modified obj will remain at nominal [0,0,0]). If you also need to modify faces then the only way is to create a brand new mesh. Very cool project btw!

Thanks! I have fixed this problem. Your vedo helps a lot! I will commit a new version of ROMP using vedo for visualization.