Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
eric-heiden opened this issue Jan 23, 2025 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@eric-heiden
Copy link
Contributor

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

@eric-heiden eric-heiden added the bug Something isn't working label Jan 23, 2025
@eric-heiden eric-heiden self-assigned this Jan 23, 2025
Ali-Razmjoo pushed a commit to fork-the-planet/warp that referenced this issue Jan 25, 2025
Ali-Razmjoo pushed a commit to fork-the-planet/warp that referenced this issue Jan 25, 2025
Fix rendering of arrows with different `up_axis`, `color` in `OpenGLRenderer` (NVIDIAGH-448)

See merge request omniverse/warp!1017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant