POV-Ray : Newsgroups : povray.binaries.images : IRTC Entry : Re: IRTC Entry Server Time
4 Nov 2024 20:14:51 EST (-0500)
  Re: IRTC Entry  
From: Bruno Cabasson
Date: 7 Feb 2006 09:15:01
Message: <web.43e8aab7cd6ad91582fc96790@news.povray.org>
"Roman Reiner" <lim### [at] gmxde> wrote:
> "Bruno Cabasson" <bru### [at] alcatelaleniaspacefr> wrote:
> > Thanks Verm for your reply. The thing on the top left is a star-cluster, a
> > bit like our Hercule's cluster. Obviously, I did not succeed much for this
> > object :( and I'll try someting else. One will find herafter a photo of the
> > actual Hercule's cluster.
>
> it seems to me as if the particles are placed evenly (homogenious?) in the
> sphere. you're probably using the VRand_In_Sphere macro in rand.inc.
> in any case i would recommend to raise the vectors to the power of two or
> even a larger number. as the vectors in a sphere (with radius 1) are
> shorter than one they get sort of blackhole warped towards the center. this
> should look more like what you want it to look. higher exponents strengthen
> the effect.
>
> just my 2 cents
> Roman

The cluster is done with emitting media and turbulenced spherical density,
controled by another spherical density. I think I just have to play with
the settings until I get a better effect (might be very sensitive).

Here is the code:

//
----------------------------------------------------------------------------
#declare CLUSTER_RADIUS = 6*SUN_RADIUS;
#declare COLOR = White;
#declare O_Cluster = sphere
{
    0, 1
    pigment {rgbt 1}
    hollow
    interior
    {
        media
        {
            emission 200*COLOR/CLUSTER_RADIUS // Small dense areas ==> 200
for lightness
            samples 20
            density
            {
                spherical
                scale 5 warp {turbulence 1 omega 2} scale 1/5 // this makes
the stars
            }
            density
            {
                spherical
                color_map {[0 rgb 0] [0.7 rgb 0.07] [0.8 rgb 0.6] [1 rgb 1]}
// This makes the thing look like a cluster
            }
        }
    }
    scale CLUSTER_RADIUS
    translate SUN_DISTANCE*z
    rotate -12*x - 17*y
}
//
----------------------------------------------------------------------------

For render time reasons, I used a blob for the stars rather than hundreds of
spheres.

Thanx for advise.

    Bruno


Post a reply to this message

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