Revolutionary-Games / Thrive

The main repository for the development of the evolution game Thrive.
https://revolutionarygamesstudio.com/
Other
2.7k stars 484 forks source link

Generated images of organelles are sometimes cutoff (Photostudio organelle image positioning is not exact) #5188

Open hhyyrylainen opened 1 month ago

hhyyrylainen commented 1 month ago

This causes issues like this:

image

HexapodPhilosopher commented 1 month ago

It seems that all the affected organelles are ones offset from the base hex - i.e. the image is focussed on hex 0,0, but many parts cover hexes 0,0 and -1,0, etc. Adding a per-organelle offset could fix this.

hhyyrylainen commented 1 month ago

Organelles can already specify an offset given to their model, but I think those image generation places don't use them.

The correct thing to do would be to enforce that all organelle models have to be at 0,0 and the organelle offset property is then used to align it properly in the game.