How to put a static background image in a 3D Scene?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Gaspa
:warning: Old Version Published before Godot 3 was released.

I’m new to Godot. I would like to use an image as a static background for a 3D scene with a fixed camera (in Godot 3.0). Seems like any TextureRect node get always painted on top of my 3D objects. If I use a Sprite3D node it covers the objects behind (because of depth test). Is there a simple way to put my image behind everything or to be prerendered?

:bust_in_silhouette: Reply From: volzhs

you can use Viewport for it.
here is my test scene setup and script.

the texture for $"3d" node will be update automatically if 3d scene is updated.

I want to duplicate what you done in Godot 2 and attached are my settings.
However I cannot achieve what you did so whats my problem?
Thanks!
enter image description here
enter image description here

Result: (no 3d image)
enter image description here

icqqq | 2017-12-14 12:40

This answer is for 3.0
you can find out how this can be done with demo.
download demo and see viewport/3d_in_2d

volzhs | 2017-12-14 14:09