Skip to content

Python log_mesh does not support textures #1570

@pablovela5620

Description

@pablovela5620

Describe the annoyance

Using the log_mesh does not support textures

To Reproduce
Steps to reproduce the behavior:

  1. Load Mesh using Trimesh library
  2. extract faces and verts
  3. log via `log_mesh`
ply = trimesh.load(str(ply_path))
verts = ply.vertices
faces = ply.faces

# Log the mesh
rr.log_mesh("world/mesh_log", positions=verts, indices=faces, timeless=True)

Expected behavior

Should support textures

Your goals

Trying to log a colored mesh, I think in general this should just easily be handled by the log_mesh_file but it currently only supports OBJ and GLB formats. I could convert it from PLY -> OBJ but that's an extra step that doesn't seem like it should be necessary

Screenshots

Here is the original .ply mesh
image
Here is what is looks like in rerun
image

Desktop (please complete the following information):

  • OS: macOS 13.2.1 M1 Macbook pro

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    🔺 re_rendererrendering, graphics, GPU😤 annoyingSomething in the UI / SDK is annoying to use

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions