#Use background image instead of clear color?

10 messages · Page 1 of 1 (latest)

pliant glacier
#

I would like to use a image as the "background" of my 3D world. In my mind, this background is static and should fill the entire window but not move with the camera. Is this possible to achieve in Bevy?

lyric plaza
#

I'm not sure it's the best way of doing it but you could use two camera, the first one displaying the background, and the second one ordered after the first one (https://docs.rs/bevy/latest/bevy/render/camera/struct.Camera.html#structfield.order) and having no clear color (https://docs.rs/bevy/latest/bevy/core_pipeline/core_3d/struct.Camera3d.html#structfield.clear_color).

pliant glacier
#

Thanks @lyric plaza, I'll look into that!

bleak arrow
#

This might not be exactly what you want -- it doesn't "move with the camera" but it does wrap all the way around.

swift zephyr
#

I think it would be simpler to make a mesh and move it with the camera to cancel out the camera's movement

#

You could probably parent it to the camera? still need to change it on window resize

#

Oh nvm in 3D that's probably a bit too janky

void osprey