2D in 3D Demo

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

Quick Information

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

A demo showing how a 2D scene can be shown within a 3D 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
2 years ago
Git URL
Issue URL

2D in 3D

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

Language: GDScript

Renderer: GLES 2

Check out this demo on the asset library: https://godotengine.org/asset-library/asset/129

How does it work?

The Pong game 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 quad's material's albedo texture.

Screenshots

README Screenshot

A demo showing how a 2D scene can be shown within a 3D 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
2D in 3D Demo icon image
Godot Engine
2D in 3D Demo

A demo showing how a 2D scene can be shown within a 3D 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
2 years 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