This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

I'm trying to follow this tutorial in the documentation, but my viewport texture is just black.

The color rect appears blank even after pasting the shader from the documentation, and when I specify the Viewport in the ViewportTexture, this is printed in the terminal:

ERROR: get_data: Viewport Texture must be set to use it. At: scene/main/viewport.cpp:127.

What am I doing wrong? Here's my project, if that helps.
Thanks!

in Engine by (28 points)

1 Answer

+1 vote
Best answer
- Give the MeshInstance a new SpatialMaterial
  - Set flags transparent and unshaded maybe
  - Set albedo texture to new viewport texture and pick your viewport
    - Error so set Resource->LocalToScene first
  - Clear/reset geometry material override

enter image description here

by (1,945 points)
selected by
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.