Godot 4: Viewport

Godot 4.2.1

I have made a 2d scene for a card template that gets change based off the 3d card scene, and the way am doing it is with viewport and the 2d card scene as a child, then in a mesh3d node assign the viewport as the card texture.

The problem is that the texture is not being displayed and I get 2 error messages asking for the viewport’s texture height and weight (so far they’ve caused nothing), if you can help thank you.

Have you tried using a Sprite3D with the viewporttexture? Or do you need a meshinstance?

Maybe this tutorial could help.

1 Like