Sign in to follow this  
PAndersson

Generating spheres with unifrom vertex density

Recommended Posts

PAndersson    394
Hi, I'm in the fairly early stages of creating a 4x space strategy game, though it will have a fair bit of ground action as well. For many of the planets, I will need to use heightmapped 3d spheres as the basic mesh. The problem is that the most straightforward method of creating these meshes results in spheres with a non-uniform vertex density with more vertices around the poles. I was wondering if there are any well known methods for generating spheres with a unifrom vertex density, where the density is customizable?

Share this post


Link to post
Share on other sites
alvaro    21246
Search the web for something like `equidistant points sphere' and you'll find lots of information about this problem.

Also, if you use a 3D texture for height displacement, the variability of vertex density becomes much less of an issue.

Share this post


Link to post
Share on other sites
clb    2147
If geospheres might be adequate for this purpose, see e.g. [url="http://paulbourke.net/miscellaneous/sphere_cylinder/"]this[/url] and [url="http://freespace.virgin.net/hugo.elias/models/m_landsp.htm"]this[/url].

Share this post


Link to post
Share on other sites
Postie    1559
Though I've never used the technique myself, I'm a fan of the cube to sphere mapping. It'd be the first thing I'd try if I wanted to render a globe.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this