Skip to content

Commit dde60d3

Browse files
SonSangLeonLiu4
authored andcommitted
Fix rendering debug arrow for 64bits precision. (Genesis-Embodied-AI#1388)
1 parent f424fe8 commit dde60d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

genesis/vis/rasterizer_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ def draw_debug_arrow(self, pos, vec=(0.0, 0.0, 1.0), radius=0.006, color=(1.0, 0
707707
pose = np.zeros((1, 4, 4), dtype=np.float32)
708708
pose[0, 3, 3] = 1.0
709709
pose[0, :3, 3] = tensor_to_array(pos)
710-
gu.z_up_to_R(tensor_to_array(vec), out=pose[0, :3, :3])
710+
gu.z_up_to_R(tensor_to_array(vec).astype(np.float32), out=pose[0, :3, :3])
711711

712712
node = pyrender.Mesh.from_trimesh(mesh, name=f"debug_arrow_{gs.UID()}", poses=pose)
713713
if persistent:

0 commit comments

Comments
 (0)