![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | Supatier |
I need to create an icon for a button from a scene, is there anyway of creating it in godot without using screenshots?
Thank you
Can only think of Screenshot related solutions so will reserve an answer provided you don’t get a better one
Wakatta | 2023-02-21 02:49
Is it a 3D scene?
Then you can use Orthagonal or Perspective shot?
Or 2D scene?
I’m guessing you’re wanting to “render” a scene to a single image because of resolution limits of a screenshot? e.g. you want a 4K vs a 1440p image?
3D: If you’re on Godot 4, you could export the scene as a GTLF scene and import into Blender and do it that way.
If you’re trying to use a scene as an icon for a button inside another godot scene then you can use Camera and Viewport to achieve this. This may impact performance so it’s better to export to an image first if the image doesn’t need to be live regenerated.
TheNormandyProject | 2023-02-21 11:58
@ TheNormandyProject had the exact same thinking to use a Viewport container so if there exists a camera in the scene any type 2D or 3D can be linked.
Got the idea from an internal plugin called MeshEditor. Problem is though, just as you’ve said the image is better exported (saved) because ViewportTextures do really wierd things even when duplicated
Wakatta | 2023-02-21 14:23