POV-Ray : Newsgroups : povray.programming : Texture problem : Texture problem Server Time
29 Jul 2024 08:10:52 EDT (-0400)
  Texture problem  
From: Alan Grainger
Date: 9 Apr 1998 01:29:34
Message: <6ghmcb$lfl$1@oz.aussie.org>
I've never done this before, so I'm probably doing it all wrong, but here's
my problem:

I'm doing a sky which has 3D clouds (an height_field turned upside down, and
put in the sky) and I want the colour of it to go from 'white to gray,
gradient y' in the foreground to 'gold to gray, gradient y' in the
background, to simulate the early morning sun lighting up the bottoms of the
clouds.  Heres the code, what's wrong?

#declare cloudsfore = pigment
{
 gradient y
 color_map
 {
  [0.00 color rgb <1, 0.8, 0> transmit 0.1]
  [0.50 color rgb 0.8 transmit 0.1]
  [0.98 color rgb 0.8 transmit 1.0]
 }
 scale 2.063
}
#declare cloudsback = pigment
{
 gradient y
 color_map
 {
  [0.00 color rgb <0.9, 0.5, 0.0>+White*0.4 transmit 0.1]
  [0.50 color rgb 0.8 transmit 0.3]
  [0.98 color rgb 0.8 transmit 1.0]
 }
 scale 2.063
}
#declare Clouds = texture
{
 pigment
 {
  gradient z
  pigment_map
  {
   [0.00 cloudsfore]
   [1.00 cloudsback]
  }
  scale <1,1,500>
 }
}

Thanks a lot  : )

--
Alan Grainger
Member of DNRC
E-mail - scy### [at] geocitiescom
Homepage - http://alansworld.home.ml.org


Post a reply to this message

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