POV-Ray : Newsgroups : povray.general : Stars... Server Time
2 Aug 2024 10:19:39 EDT (-0400)
  Stars... (Message 1 to 10 of 10)  
From: Rarius
Subject: Stars...
Date: 23 Nov 2004 14:49:30
Message: <41a3944a@news.povray.org>
Does anyone know of  agood way to produce a background star field? I need to 
be able to pan and zoom the camera with the stars staying as small as 
possible...

Things I've tried:
    Sky_sphere with a granite texture, but it goes flickery when animated 
and it doesn't like Antialias!
    Sky_sphere with a bitmap texture, but it needs a very big bitmap and the 
"stars" don't resize as the camera zooms
    A cloud of spheres centered on the camera... This works, but is quite 
slow to parse

Any other suggestions?

Rarius


Post a reply to this message

From: Mike Thorn
Subject: Re: Stars...
Date: 23 Nov 2004 17:10:44
Message: <41a3b564$1@news.povray.org>
Rarius wrote:
> Does anyone know of  agood way to produce a background star field? I need to 
> be able to pan and zoom the camera with the stars staying as small as 
> possible...
> 
> Things I've tried:
>     Sky_sphere with a granite texture, but it goes flickery when animated 
> and it doesn't like Antialias!
>     Sky_sphere with a bitmap texture, but it needs a very big bitmap and the 
> "stars" don't resize as the camera zooms
>     A cloud of spheres centered on the camera... This works, but is quite 
> slow to parse
> 
> Any other suggestions?

Look up stars.inc and stars2.inc...they're exactly what you want.

~Mike


Post a reply to this message

From: Rarius
Subject: Re: Stars...
Date: 23 Nov 2004 18:05:52
Message: <41a3c250@news.povray.org>
"Mike Thorn" said
> Look up stars.inc and stars2.inc...they're exactly what you want.

I've looked in my includes directory. I have a stars.inc file, but that just 
uses the granite texture method... That doesn't work well with a panning 
camera or with AA turned on...

I don't appear to have a Stars2.inc! Could you post your copy please?

Rarius


Post a reply to this message

From: Andrey Skvortsov
Subject: Re: Stars...
Date: 23 Nov 2004 20:26:23
Message: <41a3e33f$1@news.povray.org>
Rarius wrote:
> "Mike Thorn" said
> 
>>Look up stars.inc and stars2.inc...they're exactly what you want.
> 
> 
> I've looked in my includes directory. I have a stars.inc file, but that just 
> uses the granite texture method... That doesn't work well with a panning 
> camera or with AA turned on...
> 
> I don't appear to have a Stars2.inc! Could you post your copy please?
> 
> Rarius 
> 
> 
I'd also be happy to have a good star texture. Unfortunately AA kills 
all the stars with granite pattern method. I don't know any other way.


Post a reply to this message

From: Mark Ulrich
Subject: Re: Stars...
Date: 23 Nov 2004 20:50:01
Message: <web.41a3e8ab688aa7e297161a780@news.povray.org>
Andrey Skvortsov <sti### [at] yahooca> wrote:

> I'd also be happy to have a good star texture. Unfortunately AA kills
> all the stars with granite pattern method. I don't know any other way.


Hello,

this image
http://bilder24.parsimony.net/forum54930/bilder/dorf06.jpg

was rendered using the following star-texture.
It is part of terraform (http://terraform.sf.net)


Greets, Mark (http://povfront.sf.net)


// Copyright (c) 2002 Raymond Ostertag
// Generated with Truevision
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
//

#declare stars_pigment =
pigment {
  granite
  color_map {
         [ 0.000000 rgbft<0.000000,0.000000,0.000000,0.000000,1.000000> ]
         [ 0.270000 rgbft<0.000000,0.000000,0.000000,0.000000,1.000000> ]
         [ 0.271000
rgbft<0.500000,0.500000,0.400000,0.000000,stars_transmit> ]
         [ 0.285000
rgbft<0.800000,0.800000,0.400000,0.000000,stars_transmit> ]
         [ 0.286000 rgbft<0.000000,0.000000,0.000000,0.000000,1.000000> ]
         [ 0.470000 rgbft<0.000000,0.000000,0.000000,0.000000,1.000000> ]
         [ 0.471000
rgbft<0.400000,0.400000,0.500000,0.000000,stars_transmit> ]
         [ 0.485000
rgbft<0.400000,0.400000,0.800000,0.000000,stars_transmit> ]
         [ 0.486000 rgbft<0.000000,0.000000,0.000000,0.000000,1.000000> ]
         [ 0.680000 rgbft<0.000000,0.000000,0.000000,0.000000,1.000000> ]
         [ 0.681000
rgbft<0.500000,0.400000,0.400000,0.000000,stars_transmit> ]
         [ 0.695000
rgbft<0.800000,0.400000,0.400000,0.000000,stars_transmit> ]
         [ 0.696000 rgbft<0.000000,0.000000,0.000000,0.000000,1.000000> ]
         [ 0.880000 rgbft<0.000000,0.000000,0.000000,0.000000,1.000000> ]
         [ 0.881000
rgbft<0.500000,0.500000,0.500000,0.000000,stars_transmit> ]
         [ 0.895000
rgbft<1.000000,1.000000,1.000000,0.000000,stars_transmit> ]
         [ 0.896000 rgbft<0.000000,0.000000,0.000000,0.000000,1.000000> ]
         [ 1.000000 rgbft<0.000000,0.000000,0.000000,0.000000,1.000000> ]
   }
   frequency 1.000000 phase 0.000000 sine_wave
   turbulence <1.000000,1.000000,1.000000>
   octaves 6
   lambda 2.000000
   omega 0.500000
   translate <0.000000,0.000000,0.000000>
   scale <0.500000,0.500000,0.500000>
   rotate <0.000000,0.000000,0.000000>
}


Post a reply to this message

From: Slime
Subject: Re: Stars...
Date: 23 Nov 2004 22:57:00
Message: <41a4068c@news.povray.org>
> Does anyone know of  agood way to produce a background star field? I need
to
> be able to pan and zoom the camera with the stars staying as small as
> possible...

This should suit your needs. It's a simple pattern (so it's fast to parse
and render), but it works great with antialiasing and should be perfectly
consistent in an animation.

The stars are perfectly circular (thanks to the crackle pattern with form
<1,0,0>), and you can control their size and density. One thing you cannot
control is the distribution of their size (you can't make them more likely
to be small than big), although it's possible that it could be tweaked to
make that option available.

#declare star_size = .002;
#declare star_density = 50;

sky_sphere {
 pigment {
  crackle
  form <1,0,0>
  color_map {
   [star_size*star_density rgb 1]
   [star_size*star_density rgb 0]
  }
  scale 1/star_density
 }
}

 - Slime
 [ http://www.slimeland.com/ ]


Post a reply to this message

From: Thomas de Groot
Subject: Re: Stars...
Date: 24 Nov 2004 03:10:27
Message: <41a441f3@news.povray.org>
"Rarius" <rar### [at] rariuscouk> schreef in bericht
news:41a3944a@news.povray.org...
> Does anyone know of  agood way to produce a background star field? I need
to
> be able to pan and zoom the camera with the stars staying as small as
> possible...
>
You could try also galaxy.inc by Chris Colefax. You can find it at:

www.geocities.com/SiliconValley/Lakes/1434/

Just now the site seems to be unavailable, though (...exceeded its allocated
data transfer). If this remains for some time, I can post it.
I don't know how it reacts with animation...

Thomas


Post a reply to this message

From: Shurakai
Subject: Re: Stars...
Date: 24 Nov 2004 11:00:00
Message: <web.41a4aedb688aa7e26b3522e90@news.povray.org>
"Thomas de Groot" <t.d### [at] internlnet> wrote:
> You could try also galaxy.inc by Chris Colefax. You can find it at:
> I don't know how it reacts with animation...

Galaxy.inc is working fine with animations, i already used it for some
animations. But my personal oppinion is that the starfield is not very
close to reality. But the galaxies and nebulas a very, very nice. And You
can make phantastic things with it.

Shu


Post a reply to this message

From: Mike Thorn
Subject: Re: Stars...
Date: 24 Nov 2004 11:15:17
Message: <41a4b395$1@news.povray.org>
Rarius wrote:
> "Mike Thorn" said
> 
>>Look up stars.inc and stars2.inc...they're exactly what you want.
> 
> 
> I've looked in my includes directory. I have a stars.inc file, but that just 
> uses the granite texture method... That doesn't work well with a panning 
> camera or with AA turned on...
> 
> I don't appear to have a Stars2.inc! Could you post your copy please?

Sorry, I must have been mistaken...I thought for sure thre was a stars2 
file in there somewhere. I guess fiddling with stones.inc (which 
references stones1.inc and stones2.inc) has me a little tweaked right 
now. :) Sorry about that!

~Mike


Post a reply to this message

From: Rarius
Subject: Re: Stars...
Date: 25 Nov 2004 13:53:47
Message: <41a62a3b@news.povray.org>
> #declare star_size = .002;
> #declare star_density = 50;
>
> sky_sphere {
> pigment {
>  crackle
>  form <1,0,0>
>  color_map {
>   [star_size*star_density rgb 1]
>   [star_size*star_density rgb 0]
>  }
>  scale 1/star_density
> }
> }
>
> - Slime
> [ http://www.slimeland.com/ ]


Thanks for this Slime. This was exactly what I was after... I'll post an 
image into povray.binaries.images and an animation into 
povray.binaries.animations when they are done...

Rarius


Post a reply to this message

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