Great and Small Circles

Tips for creating and manipulating planet textures for Celestia.
Topic author
ajtribick
Developer
Posts: 1855
Joined: 11.08.2003
With us: 21 years 3 months

Great and Small Circles

Post #1by ajtribick » 09.07.2004, 18:19

I'm trying to create a randomised cratered texture, just wondering if there are any equations to describe how a circle appears when it is represented in the cylindrical projection used in Celestia?

granthutchison
Developer
Posts: 1863
Joined: 21.11.2002
With us: 22 years

Post #2by granthutchison » 09.07.2004, 18:48

Craters that are small in comparison to the planetary radius become ellipses with vertical dimension = (crater radius) and horizontal dimension = (crater radius)/cos(latitude).
Large craters become noticeably distorted from a simple ellipse, as (of course) do those that actually contain a rotation pole within their rimwall. When I played with this myself I ended up writing a routine that plotted the rims of large craters in short segments - it wasn't a huge computational overhead, since large craters are rare.

Grant


Return to “Textures”