Skip to content

[BUG] Rendering arrows with different up_axis, color in OpenGLRenderer #448

@eric-heiden

Description

@eric-heiden

Bug Description

The up_axis argument is not respected when multiple arrows with different up_axis settings are rendererd in the OpenGLRenderer.
The color argument also appears to be broken when rendering multiple arrow instances.

Code for reproduction:

import warp as wp
import warp.render


renderer = wp.render.OpenGLRenderer(draw_axis=False)

pos = wp.vec3(0.0, 0.0, 0.0)
rot = wp.quat_rpy(0.3, -0.4, 0.5)

renderer.begin_frame(0.0)
for i in range(3):
    axis = wp.vec3(0.0, 0.0, 0.0)
    axis[i] = 1.0
    renderer.render_arrow(f"arrow_{i}", pos=pos, rot=rot, up_axis=i, color=axis, base_radius=0.05, base_height=1.0)
renderer.end_frame()

renderer.save()
Output Expected Output
Output Expected Output

System Information

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions