You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use Text2d to draw labels next to certain entities in 3d space. As a test, I combined the Text2d example https://github.com/bevyengine/bevy/blob/latest/examples/2d/text2d.rs with the simple 3d Scene example https://bevyengine.org/examples/3d-rendering/3d-scene/, replacing " commands.spawn(Camera2d);" with spawning a 3d camera.
The 3d scene shows, but the Text2d entities do not. I then re-added the camera2d with a render order of 1, which results in drawing the Text2d example on top of the 3d scene. But of course, the 2d Text cannot be translated in the z direction.
Can someone enlighten a Bevy and Rust beginner on how to draw Text in 3d space?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I want to use Text2d to draw labels next to certain entities in 3d space. As a test, I combined the Text2d example https://github.com/bevyengine/bevy/blob/latest/examples/2d/text2d.rs with the simple 3d Scene example https://bevyengine.org/examples/3d-rendering/3d-scene/, replacing " commands.spawn(Camera2d);" with spawning a 3d camera.
The 3d scene shows, but the Text2d entities do not. I then re-added the camera2d with a render order of 1, which results in drawing the Text2d example on top of the 3d scene. But of course, the 2d Text cannot be translated in the z direction.
Can someone enlighten a Bevy and Rust beginner on how to draw Text in 3d space?
Beta Was this translation helpful? Give feedback.
All reactions