Skip to main content
gamedev.net
🔒 Locked

Heightmapping spheres?

Started by sipickles 2 replies 500+ views
Original Post
sipickles
sipickles
Hi, Has anyone ever tried heightmapping spheres from a greyscale texture? Si
matthughson
matthughson
I haven't myself, but I'm sure it would work exactly the same as a height mapped plane (assuming you've done that before). If you haven't done that before, maybe try that first and see how it would apply to a sphere. The main problem I see is in making the map line up nicely with a sphere, but that's not too big of a deal for an artist.

Matt Hughson
__________________________________[ Website ] [ Résumé ] [ [email=contact[at]matthughson[dot]com]Contact[/email] ][ Have I been Helpful? Hook me up! ]
Fen
Fen
I've tried it...
It looks very cool and it isnt hard to do. I've even created a morphing system so that on a "normal", flat sphere hills are being rised....

Steps to do this effect:
- you should have a flat plane ( square will be good, N x N grids)
- than use some math and create a sphere from that plane
- add height from the heightmap to the radius when calcing position of the point on a grid
- thats all... :)

It was some time ago. I used the Allegro library.

Have a nice fun with that effect :)
Se my programming blog: Code and Graphics
acid2
acid2
Could you not just move out the vertices of the sphere in the direction of the normal?

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.