Sign in to follow this  
Binary Boy

Spherical Terrain Algorithm

Recommended Posts

Hi All,

Haven't posted that many threads here (I do more reading than posting). I'm working on a game design that requires a deformable terrain mapped onto a large sphere (think Populous 3), but I have a problem choosing the terrain type.

I'm using Blender, and I can generate two types of sphere that I can use for this purpose - a UV Sphere or an Icosphere.

Now, the Icosphere is made up of equal triangles and every polygon on the surface is the same. This is ideal as it means that the entire sphere can be used as usabe terrain, however, applying a texture to specific areas of an icosphere is proving to be difficult.

On the other hand, the UV Sphere is made up of quads which is ideal for texturing, but the quad size stretches as the sphere approaches to "poles" at either end, which probably means that those areas will be unusable as terrain.

I have two images here as examples:

[img]http://www.rab3d.com/rab3d/tutorial/608/608_066a.png[/img]
UV Sphere


[img]http://img76.exs.cx/img76/1622/5660.jpg[/img]

Icosphere

My question is, are there any well-known techniques to apply a texture to specific areas of the icosphere and has anybody been successful with this? Or do I have to use the UV Sphere and isolate the stretched areas from gameplay?

Just to clarify, the kind of effect I am trying to achieve can also be seen in the game Sacraboar:

[img]http://img.brothersoft.com/screenshots/softimage/s/sacraboar-304725-1258349069.jpeg[/img]


Any help would be appreciated.

Thanks

Share this post


Link to post
Share on other sites
when you are playing, is the camera vector always pointing dead-center on the sphere?
also assuming the sphere isnt flat, but more like a small spherical world

heres what i would do:
i would implement world curvature in a vertex shader, and keep the world big enough to fool anyone
problem solved

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