Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Using a grayscale heightmap for vertexs on a sphere

Author
Message
JoeOh
16
Years of Service
User Offline
Joined: 25th Feb 2009
Location:
Posted: 31st Jul 2009 22:41
I've been doing some searches on this site to no avail on how I can use a grayscale map to dictate the vertexes height on the sphere. Can this even be done? The sphere I would use can be low res for now to work out the kinks.

I'm looking into this in order to make a Sim-Earth type game. One step at a time though

For now my other project "Distant Empires" will be put on hold until I know I can make that game stand out among others I seen on the net.

Joe-

Home is where my souped-up computer is...
Monk
16
Years of Service
User Offline
Joined: 25th Sep 2008
Location: Standing in the snow =D
Posted: 31st Jul 2009 23:02
You know how world maps tend to be a stretched circle shape? I reckon if you could make a heightmap that shape, you could read the values of it.

Youd need to figure out what position the vertices would be once the circle had been "unravelled" though...

Monk


I like work. It fascinates me. I sit and look at it for hours.
kaedroho
17
Years of Service
User Offline
Joined: 21st Aug 2007
Location: Oxford,UK
Posted: 31st Jul 2009 23:07 Edited at: 31st Jul 2009 23:10
I posted some code a while ago that does this:


Login to post a reply

Server time is: 2025-06-12 10:52:24
Your offset time is: 2025-06-12 10:52:24