POV-Ray : Newsgroups : povray.newusers : halo command error : Re: halo command error Server Time
28 Jul 2024 16:15:32 EDT (-0400)
  Re: halo command error  
From: Tim Attwood
Date: 16 May 2008 20:34:50
Message: <482e282a@news.povray.org>
> I did that but it still generates a solid white sphere.  It is not 
> transparent,
> and does not fade at the edges.  There must be another setting or command 
> that
> has to change.  The planet and the atmosphere get put together with this:
>
> #declare Planet = union {
>  object { PlanetSphere }
>  #ifndef (Quick)
>    object { PlanetCloudSphere0 }
>    object { PlanetAtmosphere }
>  #end
> }
>
> Is this a good way to do it?

This media is intended to be around a unit sphere.
If you wish to use a different size, scale it after union...

#declare PlanetSurface = sphere { <0,0,0>, 1
   pigment {
      image_map {
         jpeg "earth02.jpg"
         map_type 1
      }
      rotate <0,-150,0>
   }
};

#declare Planet = union {
   object {PlanetAtmosphere}
   object {PlanetSurface}
};

object {
   Planet
   scale 2
   translate <-1.5,-0.5,0>
}


Post a reply to this message

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