• Welcome to Dark Bit Factory & Gravity.
 

MATHCOMP: Drawland

Started by Optimus, December 02, 2006

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Optimus

I don't know if the deadline is over or this is the last day, but here is my entry anyway. I finished it in a Pentium2 we have here in the army jff. Couldn't post it yesterday because only today I am out of the camp and heading home.

I rewrote from scratch an algorithm I had done in the past in Quickbasic to draw a random land. It used a simple algorithm I know as randomwalk, where there is equal possibility given for a pixel to move up, down, left, right and draw itself again. But here, the drawing was lake adding a small value to the color in the background, like shadebobs, and up limit 255, and an RGB pallete for 0 to 255 colors, from the sea to the white snow. There are also few parameters there, the random walk starts from a point and may teleport back to the starting point after some runs again (the central point of the island) and for few times. According to runs per return back and how many times this repeats, the islands are smaller or bigger.

Then, I decided to map the land to a sphere, like it's the earth and make with some low pass plasma some fuzzy space backround and put some pixel stars. Normally I wanted to improove this parts for blobs for brighter stars and sun, and more stuff, maybe another plannet with bump for moon or so, but time was not enough and I decided to stop here.

Each time you run the programm, a diferrent land is generated.
Challenge Trophies Won:

Jim

You're definitely in :D  Great idea for a demo too!
Jim
Challenge Trophies Won:

Clyde

Nifty stuff Optimus dude :)
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.


Challenge Trophies Won:

taj

Very nice picture, I wondered if anyone would submit a fractal planet. Good job. Amazing you found time given your circumstances! 
Challenge Trophies Won:

mind

thats a really neat idea for landscape generation i must say.. and a nice image :)

karma++

i will so steal that algorithm and use it for something cool in the future :)
Challenge Trophies Won:

MrP

Sweet. Like that, the landscapes look very convincing to... Nice Job

rdc


Rbz

Challenge Trophies Won:

Paul

Thats wonderfull
If you only look at it fast you think its earth.
I will bite you - http://s5.bitefight.se/c.php?uid=31059
Challenge Trophies Won:

Ghost^BHT

Looks nice Optimus....well done  :clap:

benny!

[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Shockwave

very, very good indeed! Wow!
Shockwave ^ Codigos
Challenge Trophies Won:

lilw4t3rdr0p

Quote from: Jim on December 02, 2006
You're definitely in :DÃ,  Great idea for a demo too!
Jim


I agree Jim.

Very nice. It reminds me of this great painting I saw one.

combatking0

Cool! They should use this in Sci-Fi shows for ideas for new planets. I would.
You are our 9001st visitor.
Challenge Trophies Won:

slinks

They'd need to add a way of altering the colours, not all land is going to be green and blue, though I could definatly see it being used for something like that
I love semi-colons way too much ^^;
Challenge Trophies Won:

combatking0

I'm doing a little sci-fi project myself.

It features eight worlds, and oh now I'm going off topic again.
You are our 9001st visitor.
Challenge Trophies Won:

Optimus

Thanks. Well yes, I hope I had time to change a lot of things, like the colors or makng diferrent kinds of surfaces (bumpy surface for moon, firey for sun, plasmoid for diferrent kinds of planets, etc.). It could be a nice thing for a strategy game with maps or space simulator like elite. I am having so many ideas but won't probably code any now. And I was wondering if this kind of making a random land has been used before, it just came out of my mind years ago when I experimented with random walkers in quickbasic. I must still have the old source.
Challenge Trophies Won: