0 votes

Hi...,

I want to project my 3D spatial world to a viewport, like described here:
https://docs.godotengine.org/en/stable/tutorials/viewports/viewports.html

I don't understand this description: "Or it can be assigned in the editor by selecting "New ViewportTexture""

Where can I create and assign the "New ViewportTexture" to the viewport? In the Inspector, but where, and how?

Any help is appriciated. Thanks

Mike

Godot version 3.4
in Engine by (146 points)

1 Answer

+1 vote
Best answer

You have it in the image below. Wherever you set texture in editor for any object ( sprite, control nodes) You get to choose what kind of texture it will be. One of those textures is viewporttexture. The same goes for simply calling ViewportTexture.new() in script.

You dont assign viewporttexture to the viewport, viewport is source of viewporttexture.
What do You mean You want to project 3d space to viewport ? WHat do you exactly want to happen ?

by (7,447 points)
selected by

Hi Inces,

I have this scene:

+-Node2D
 +-Viewport
  +-Spatial
   +-Camera
   +-MeshInstance

I am too dumm, where to create the "New ViewportTexture"? Is it in the Inspector or in the Scene? Where to click for "New ViewportTexture"? I don't get it.

Thanks

Mike

Hi Inces,

I've found it. I have forgotten to create a Sprite node. In the sprite Texture I can create my "New ViewportTexture"

Thanks

Mike

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.