Jump to content
  • Advertisement
Sign in to follow this  
Dave Blake

Tessellating a segment of a sphere

This topic is 3123 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am working on 2D rendering of various azimuthal projections (gnomonic, equidistant, orthographic etc.) of a sphere. The colour of the sphere generally varies with position, but one distinct colour boundary lies exactly along a great circle. I need to cover the equivalent region in my projected "map" of the sphere with an even triangular mesh. I could do with some help on this. One approach would be to approximate the boundary of the region (projected great circle, edge of sphere and any clipping by rectangular viewport) with a polygon and tessellate that. Suggestions for simple algorithms for tessellation of concave/convex polygons most welcome (I am a nubie to tessellation). However, I have tried another route: cover the sphere in a geodesic mesh derived from the bisection of an icosahedron (orientated such that there are vertices along the bounding great circle). This produces a nice evenly spaced triangulation, but I run into problems on the map at the projected edge of the sphere where triangles are only partly in view (depending on the angle it is viewed from). Maybe my adventure into geodesics has been a waste of time :( I am hoping that I can somehow adjust the geodesic mesh, to fit not only the colour boundary great circle but also the edge great circle that delimits the current view point of the sphere. Any advise, is this folly? I have not taken viewport clipping onto account here either, and an even triangulation on the sphere may not be so good when projected.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!