fetch_snapshot of a textured mesh
See original GitHub issueHello, this project is so great. Especially, fetch_snapshot is wonderful.
I enjoyed snapshots and found that the texture of a mesh is not dumped. The following code successfully presents a textured rectangle,
plt_texture = k3d.mesh(
vertices=[[0,0,0],[img_shape[1],0,0],[img_shape[1],img_shape[0],0],[0,img_shape[0],0]],
indices=[[0,1,2,],[2,3,0]],
uvs=[[0,0],[1,0],[1,1],[0,1]],
texture=open(img_path,'rb').read(),
texture_file_format=splitext(img_path)[1],
)
plot += plt_texture
but an error occurs when opening the dumped snapshot.
The length of the snapshot is only 125 for this object, so I think texture data is not dumped at all. I really appreciate it if it is supported.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5
Top Results From Across the Web
Sample snapshots from the textured mesh and the point cloud ...
Textured polygonal meshes [2] and point clouds [16] are two popular formats to represent and store the captured VV. Sample figures for these...
Read more >Using Kinfu Large Scale to generate a textured mesh
This tutorial demonstrates how to use KinFu Large Scale to produce a mesh (in meters) from a room, and apply texture information in...
Read more >Render snapshot of textured triangle mesh with offscreen ...
Hi, I'm trying to capture image of textured triangle mesh with offscreen renderer, but it looks like renderer cannot see any of mesh's...
Read more >Taking a snapshot with a render texture - Unity Forum
I need to put meshes on my UI, and I have it working using 'screen space - camera' on my Canvas. All my...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
K3D@2.9.7 is released on pypi (and soon on conda-forge) - https://pypi.org/project/K3D/2.9.7/ . Please check a new version that should contain fix for this issue.
Ok. This change https://github.com/K3D-tools/K3D-jupyter/commit/61ff4f81ba8b5fc19d0840f86de617d5f4d07138 provide new serialization behaviour of Bytes but we adapted it only for STL. Right now that will be quick to fix it ! 👍