Page 1 of 1

Render planet graphics from lua code

Posted: Wed Jun 24, 2026 9:28 am
by front
I did not see anything relevant in the api, but it would be nice if we could display a planet's space rendering from lua. Mainly to cover for one feature of visible planets in space, where it also displays planetslib moons around the planet you currently orbit.
Also to let Cerys use those graphics in the background as you look down at Fulgora, so it does not need to be a static sprite anymore.

Re: Render planet graphics from lua code

Posted: Wed Jun 24, 2026 5:04 pm
by FluidNatalie
+1

Re: Render planet graphics from lua code

Posted: Wed Jun 24, 2026 10:18 pm
by y.petremann
Added related request link in Setting Parent Body for a SpaceLocation thread.

Re: Render planet graphics from lua code

Posted: Fri Jun 26, 2026 2:19 pm
by front
I know exactly what I want now. Make this field an array, and let us add multiple backdrop definitions.

https://lua-api.factorio.com/latest/typ ... m_backdrop

It has a position and a radius, and we can use those to place and position multiple ones of them.

We also tried doing a ringworld, and this may work if we could place two, and flip the normals on one of them so it curves inside instead of outside forming a circle. That may also be hackable to make something visually orbit the planet.
06-26-2026, 16-17-42.png
06-26-2026, 16-17-42.png (614.18 KiB) Viewed 45 times