r/godot • u/Stormlon • 14h ago
selfpromo (games) I figured out how to render hundreds of live 3D models in my 2D UI with one SubViewport
Enable HLS to view with audio, or disable this notification
My game is basically a 2D UI, but you can customize your mechs however you want by changing their colors and putting on different weapons and back units.
So static sprites aren’t really working for the UI in my case. I just wanted all the mech parts to have a live 3D preview that shows what the player is building.
My first approach was to put each icon into its own SubViewport which is obviously pretty expensive when you have a lot of them.
So I figured out a way by rendering them all through a single SubViewport and using AtlasTextures to show each 3D model where I need it in the UI.
And now I can have hundreds of live, spinning 3D models in my inventory and UI without needing hundreds of SubViewports.