Skip to content

[BUG] render_points does not render different colors #634

@JonathanKuelz

Description

@JonathanKuelz

Bug Description

When using wp.render.UsdRenderer.render_points for multiple points, providing an array of colors does not result in different colors for different points for me.

My code looks is more or less the following:

points = get_points()  # Nx3 torch tensor
colors = torch.stack([torch.arange(points.shape[0]) / points.shape[0]] * 3, dim=-1)

renderer.render_points("pointcloud", points.cpu().numpy(), radius=0.1, colors=colors.cpu().numpy().tolist())

However, instead of rendering each point in the corresponding color, all points appear to be rendered in the first color (colors[0]). Rendering the points individually in a for-loop resullts in correct rendering, but is incredibly slow for a large number of points.

Is there a way to use the render_points method with varying colors?

Additional information:

System Information

Warp v.1.7.0
Isaacsim 4.5

Metadata

Metadata

Labels

bugSomething isn't workingrenderWarp renderer for viz and debug

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions