Install Asset
Install via Godot
To maintain one source of truth, Godot Asset Library is just a mirror of the old asset library so you can download directly on Godot via the integrated asset library browser
![3D in 2D Demo hero image](https://img.godotassetlibrary.com/eGmPzjrGendkUEpz9GtfhH4-lHv7azHV8SX7JY-go9E/rs:fit:1920:1080:0/g:no/aHR0cHM6Ly91c2VyLWltYWdlcy5naXRodWJ1c2VyY29udGVudC5jb20vNTI3NjcyNy8zNTAwNzgwMC0zZDY0NGRjNC1mYjAzLTExZTctOTM3Yy1mNThmYjQxZDIyYmQucG5n.webp)
Quick Information
![3D in 2D Demo icon image](https://img.godotassetlibrary.com/bu2jOwo8VOp3StbMWknJDOymttYG9-tK4dmxFj4gpC8/rs:fit:50:50:0/g:no/aHR0cHM6Ly91c2VyLWltYWdlcy5naXRodWJ1c2VyY29udGVudC5jb20vNTI3NjcyNy8zNTAwNzc5OS0zZDFhMTFhYS1mYjAzLTExZTctOGYzMy03MjFjYTM3OGY2NzEucG5n.webp)
A demo showing how a 3D scene can be shown within a 2D one using viewports.Language: GDScriptRenderer: GLES 2
3D in 2D
A demo showing how a 3D scene can be shown within a 2D one using viewports.
Language: GDScript
Renderer: GLES 2
Check out this demo on the asset library: https://godotengine.org/asset-library/asset/128
How does it work?
The 3D robot is rendered to a custom
Viewport
node rather than the main Viewport. In the code,
get_texture()
is called on the Viewport to get a
ViewportTexture
,
which is then assigned to the sprite's texture.
Screenshots
A demo showing how a 3D scene can be shown within a 2D one using viewports.
Language: GDScript
Renderer: GLES 2
Reviews
Quick Information
![3D in 2D Demo icon image](https://img.godotassetlibrary.com/bu2jOwo8VOp3StbMWknJDOymttYG9-tK4dmxFj4gpC8/rs:fit:50:50:0/g:no/aHR0cHM6Ly91c2VyLWltYWdlcy5naXRodWJ1c2VyY29udGVudC5jb20vNTI3NjcyNy8zNTAwNzc5OS0zZDFhMTFhYS1mYjAzLTExZTctOGYzMy03MjFjYTM3OGY2NzEucG5n.webp)
A demo showing how a 3D scene can be shown within a 2D one using viewports.Language: GDScriptRenderer: GLES 2