0 votes

How can i render part of the map to the texture? From what I understood I add viewport and specify the nodes to render by setting the world2d to the existing one. The thing is I'm setting the root.world2d to just use all nodes in the scene. But it seems to not work. Is this a bug or I just cant use in other viewport the root's node world_2d.


in Engine by (12 points)

What do you mean - render to texture? Do you want to take snapshot of the part of your screen and use it as a texture for some node or do you want to have sub viewport which will dynamically show part of your screen?
You can't assign world of parent viewport to child viewport world because child is part of parent world.

Please log in or register to answer this question.

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 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 webmaster@godotengine.org with your username.