3D in 2D Demo

An asset by Godot Engine
The page banner background of a mountain and forest
3D in 2D Demo hero image

Quick Information

0 ratings
3D in 2D Demo icon image
Godot Engine
3D in 2D Demo

A demo showing how a 3D scene can be shown within a 2D one using viewports.Language: GDScriptRenderer: GLES 2

Supported Engine Version
3.4
Version String
3.4-b0d4a7c
License Version
MIT
Support Level
official
Modified Date
1 year ago
Git URL
Issue URL

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

README Screenshot

A demo showing how a 3D scene can be shown within a 2D one using viewports.

Language: GDScript

Renderer: GLES 2

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
3D in 2D Demo icon image
Godot Engine
3D in 2D Demo

A demo showing how a 3D scene can be shown within a 2D one using viewports.Language: GDScriptRenderer: GLES 2

Supported Engine Version
3.4
Version String
3.4-b0d4a7c
License Version
MIT
Support Level
official
Modified Date
1 year ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers