POV-Ray : Newsgroups : povray.binaries.images : random Earth-like planet generator Server Time
5 Nov 2024 10:20:56 EST (-0500)
  random Earth-like planet generator (Message 1 to 10 of 17)  
Goto Latest 10 Messages Next 7 Messages >>>
From: Zeger Knaepen
Subject: random Earth-like planet generator
Date: 13 Nov 2006 13:12:59
Message: <4558b5ab@news.povray.org>
I made a random-planet generator that can create earth-like planets.  Still
struggling with the clouds (they're very hard to do convincingly :-/) but I
think it doesn't look too bad the way it is now.

Comments welcome!

cu!
--
#macro G(b,e)b+(e-b)*C/50#end#macro _(b,e,k,l)#local C=0;#while(C<50)
sphere{G(b,e)+3*z.1pigment{rgb G(k,l)}finish{ambient 1}}#local C=C+1;
#end#end _(y-x,y,x,x+y)_(y,-x-y,x+y,y)_(-x-y,-y,y,y+z)_(-y,y,y+z,x+y)
_(0x+y.5+y/2x)_(0x-y.5+y/2x)            // ZK http://www.povplace.com


Post a reply to this message


Attachments:
Download 'planetgenerator.jpg' (74 KB)

Preview of image 'planetgenerator.jpg'
planetgenerator.jpg


 

From: Tek
Subject: Re: random Earth-like planet generator
Date: 13 Nov 2006 13:43:41
Message: <4558bcdd@news.povray.org>
Wow that looks awesome!

I may be able help with the clouds, I had a go at doing a similar thing a 
while ago and got a good cloud effect but could never get the land right! 
I've attached a picture of my attempt, and the source for it.

-- 
Tek
http://evilsuperbrain.com

"Zeger Knaepen" <zeg### [at] povplacecom> wrote in message 
news:4558b5ab@news.povray.org...
>I made a random-planet generator that can create earth-like planets.  Still
> struggling with the clouds (they're very hard to do convincingly :-/) but 
> I
> think it doesn't look too bad the way it is now.
>
> Comments welcome!
>
> cu!
> --
> #macro G(b,e)b+(e-b)*C/50#end#macro _(b,e,k,l)#local C=0;#while(C<50)
> sphere{G(b,e)+3*z.1pigment{rgb G(k,l)}finish{ambient 1}}#local C=C+1;
> #end#end _(y-x,y,x,x+y)_(y,-x-y,x+y,y)_(-x-y,-y,y,y+z)_(-y,y,y+z,x+y)
> _(0x+y.5+y/2x)_(0x-y.5+y/2x)            // ZK http://www.povplace.com
>


Post a reply to this message


Attachments:
Download 'cheapworld.inc.txt' (4 KB) Download 'cheapworld.jpg' (99 KB)

Preview of image 'cheapworld.jpg'
cheapworld.jpg


 

From: Ross
Subject: Re: random Earth-like planet generator
Date: 13 Nov 2006 14:57:02
Message: <4558ce0e$1@news.povray.org>
"Zeger Knaepen" <zeg### [at] povplacecom> wrote in message
news:4558b5ab@news.povray.org...
> I made a random-planet generator that can create earth-like planets.
Still
> struggling with the clouds (they're very hard to do convincingly :-/) but
I
> think it doesn't look too bad the way it is now.
>
> Comments welcome!
>
> cu!

That's pretty cool. I'd like to see what the function is for generating the
continents. I tried this once and couldn't come up with anything realistic
or even stylized and unrealistic but visually appealing.

nice work


Post a reply to this message

From: Zeger Knaepen
Subject: Re: random Earth-like planet generator
Date: 13 Nov 2006 15:32:52
Message: <4558d674@news.povray.org>
"Tek" <tek### [at] evilsuperbraincom> wrote in message news:4558bcdd@news.povray.org...
> Wow that looks awesome!

thanks :)
 
> I may be able help with the clouds, I had a go at doing a similar thing a 
> while ago and got a good cloud effect but could never get the land right! 
> I've attached a picture of my attempt, and the source for it.

hmm, seems like a good start, I might just be able to use your code! :)
thanks !

cu!
-- 
#macro G(b,e)b+(e-b)*C/50#end#macro _(b,e,k,l)#local C=0;#while(C<50)
sphere{G(b,e)+3*z.1pigment{rgb G(k,l)}finish{ambient 1}}#local C=C+1;
#end#end _(y-x,y,x,x+y)_(y,-x-y,x+y,y)_(-x-y,-y,y,y+z)_(-y,y,y+z,x+y)
_(0x+y.5+y/2x)_(0x-y.5+y/2x)            // ZK http://www.povplace.com


Post a reply to this message

From: Zeger Knaepen
Subject: Re: random Earth-like planet generator
Date: 13 Nov 2006 15:34:19
Message: <4558d6cb$1@news.povray.org>
"Ross" <rli### [at] speakeasynet> wrote in message
news:4558ce0e$1@news.povray.org...
> That's pretty cool.

thanks :)

> I'd like to see what the function is for generating the
> continents. I tried this once and couldn't come up with anything realistic
> or even stylized and unrealistic but visually appealing.

this is the pattern that determines the height of the landscape:

  pigment_pattern {
   pigment_pattern {
    crackle scale .75
    poly_wave .125
    warp {turbulence .125 lambda 3}
   }
   pigment_map {
    [0 rgb 0]
    [1 granite scale 10
    scale .5 warp {turbulence .75 lambda 3} scale .5
    ]
   }
  }

cu!
--
#macro G(b,e)b+(e-b)*C/50#end#macro _(b,e,k,l)#local C=0;#while(C<50)
sphere{G(b,e)+3*z.1pigment{rgb G(k,l)}finish{ambient 1}}#local C=C+1;
#end#end _(y-x,y,x,x+y)_(y,-x-y,x+y,y)_(-x-y,-y,y,y+z)_(-y,y,y+z,x+y)
_(0x+y.5+y/2x)_(0x-y.5+y/2x)            // ZK http://www.povplace.com


Post a reply to this message

From: mine
Subject: Re: random Earth-like planet generator
Date: 13 Nov 2006 18:30:00
Message: <web.4558ff6fe7514cf3599865c40@news.povray.org>
That's a very cool idea, I hope you get the clouds sorted out soon. :)


Post a reply to this message

From: Zeger Knaepen
Subject: Re: random Earth-like planet generator
Date: 13 Nov 2006 22:31:36
Message: <45593898$1@news.povray.org>
"mine" <nomail@nomail> wrote in message
news:web.4558ff6fe7514cf3599865c40@news.povray.org...
> That's a very cool idea, I hope you get the clouds sorted out soon. :)

I think I have: http://www.povplace.com/gallery/SciFi%20-%20Own/planeet3.jpg

cu!
--
#macro G(b,e)b+(e-b)*C/50#end#macro _(b,e,k,l)#local C=0;#while(C<50)
sphere{G(b,e)+3*z.1pigment{rgb G(k,l)}finish{ambient 1}}#local C=C+1;
#end#end _(y-x,y,x,x+y)_(y,-x-y,x+y,y)_(-x-y,-y,y,y+z)_(-y,y,y+z,x+y)
_(0x+y.5+y/2x)_(0x-y.5+y/2x)            // ZK http://www.povplace.com


Post a reply to this message

From: jtico
Subject: Re: random Earth-like planet generator
Date: 14 Nov 2006 08:08:54
Message: <4559bfe6@news.povray.org>
Zeger Knaepen wrote:
> "mine" <nomail@nomail> wrote in message
> news:web.4558ff6fe7514cf3599865c40@news.povray.org...
> 
>>That's a very cool idea, I hope you get the clouds sorted out soon. :)
> 
> 
> I think I have: http://www.povplace.com/gallery/SciFi%20-%20Own/planeet3.jpg
> 
> cu!
> --

Nice result, Zeger. Congratulations!

What about a close up? ;-)


Post a reply to this message

From: Zeger Knaepen
Subject: Re: random Earth-like planet generator
Date: 14 Nov 2006 08:38:43
Message: <4559c6e3@news.povray.org>
"jtico" <men### [at] gmailcom> wrote in message
news:4559bfe6@news.povray.org...
> Nice result, Zeger. Congratulations!

thanks :)

> What about a close up? ;-)

maybe if I add one more small turbulence, but now it all looks too fuzzy for
close ups :)

cu!
--
#macro G(b,e)b+(e-b)*C/50#end#macro _(b,e,k,l)#local C=0;#while(C<50)
sphere{G(b,e)+3*z.1pigment{rgb G(k,l)}finish{ambient 1}}#local C=C+1;
#end#end _(y-x,y,x,x+y)_(y,-x-y,x+y,y)_(-x-y,-y,y,y+z)_(-y,y,y+z,x+y)
_(0x+y.5+y/2x)_(0x-y.5+y/2x)            // ZK http://www.povplace.com


Post a reply to this message

From: Nekar
Subject: Re: random Earth-like planet generator
Date: 14 Nov 2006 09:46:16
Message: <4559d6b8@news.povray.org>
"Zeger Knaepen" <zeg### [at] povplacecom> wrote in message 
news:4558b5ab@news.povray.org...
>I made a random-planet generator that can create earth-like planets.  Still
> struggling with the clouds (they're very hard to do convincingly :-/) but 
> I
> think it doesn't look too bad the way it is now.
>
Fantastic! Now see how close you can get to the real continents this way ;oD


-- 
-Nekar Xenos
"The truth is out there"


Post a reply to this message

Goto Latest 10 Messages Next 7 Messages >>>

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.