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

3D Viewport Scaling Demo

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

Quick Information

0 ratings
3D Viewport Scaling Demo icon image
Godot Engine
3D Viewport Scaling Demo

This demo shows how to scale the 3D viewport rendering without affecting 2D elements such as the HUD. It also demonstrates how to toggle filtering on a viewport by using TextureRect to display the ViewportTexture delivered by the Viewport node. This technique can be useful in 2D games as well. For instance, it can be used to have a "pixel art" viewport for the main game area and a non-pixel-art viewport for HUD elements.ViewportContainer can also be used to display a viewport in a GUI, but it doesn't offer the ability to enable filtering.Language: GDScriptRenderer: GLES 2

Supported Engine Version
3.5
Version String
3.5-9e68af3
License Version
MIT
Support Level
featured
Modified Date
2 years ago
Git URL
Issue URL

3D Viewport Scaling

This demo shows how to scale the 3D viewport rendering without affecting 2D elements such as the HUD. It also demonstrates how to toggle filtering on a viewport. This technique can be useful in 2D games as well. For instance, it can be used to have a "pixel art" viewport for the main game area and a non-pixel-art viewport for HUD elements.

Language: GDScript

Renderer: GLES 2

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

Screenshots

README Screenshot

README Screenshot

This demo shows how to scale the 3D viewport rendering without affecting 2D elements such as the HUD. It also demonstrates how to toggle filtering on a viewport by using TextureRect to display the ViewportTexture delivered by the Viewport node. This technique can be useful in 2D games as well. For instance, it can be used to have a "pixel art" viewport for the main game area and a non-pixel-art viewport for HUD elements.

ViewportContainer can also be used to display a viewport in a GUI, but it doesn't offer the ability to enable filtering.

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 Viewport Scaling Demo icon image
Godot Engine
3D Viewport Scaling Demo

This demo shows how to scale the 3D viewport rendering without affecting 2D elements such as the HUD. It also demonstrates how to toggle filtering on a viewport by using TextureRect to display the ViewportTexture delivered by the Viewport node. This technique can be useful in 2D games as well. For instance, it can be used to have a "pixel art" viewport for the main game area and a non-pixel-art viewport for HUD elements.ViewportContainer can also be used to display a viewport in a GUI, but it doesn't offer the ability to enable filtering.Language: GDScriptRenderer: GLES 2

Supported Engine Version
3.5
Version String
3.5-9e68af3
License Version
MIT
Support Level
featured
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