Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

3D in 2D Viewport demo

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

Quick Information

0 ratings
3D in 2D Viewport demo icon image
Godot Engine
3D in 2D Viewport demo

A demo showing how a 3D scene can be shown within a 2D one using viewports.How it works: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.Language: GDScriptRenderer: Compatibility

Supported Engine Version
4.2
Version String
4.2-31d1c0c
License Version
MIT
Support Level
featured
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: Compatibility

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.

How it works:

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.

Language: GDScript

Renderer: Compatibility

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 Viewport demo icon image
Godot Engine
3D in 2D Viewport demo

A demo showing how a 3D scene can be shown within a 2D one using viewports.How it works: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.Language: GDScriptRenderer: Compatibility

Supported Engine Version
4.2
Version String
4.2-31d1c0c
License Version
MIT
Support Level
featured
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