POV-Ray : Newsgroups : povray.programming : Texture problem Server Time
29 Jul 2024 10:29:51 EDT (-0400)
  Texture problem (Message 1 to 2 of 2)  
From: Alan Grainger
Subject: Texture problem
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

From: Ronald L  Parker
Subject: Re: Texture problem
Date: 9 Apr 1998 11:41:26
Message: <3531e9c8.8111153@10.0.2.33>
On Thu, 9 Apr 1998 17:29:34 +1200, "Alan Grainger"
<scy### [at] geocitiescom> wrote:

>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?

This group is for discussing the source to POVRay itself, and its
modifications (mostly C code.)  Scene files are down the hall, third
door on the left.  While someone here might have the answer, that
someone there would is far more likely.

Povray.general is probably where you need to go, though either of the
scene-files groups might work as well (I don't hang out there, so I
don't know whether there are any regular readers of that group and
discussions of this sort, or whether it's just a place to post working
scenes.)


Post a reply to this message

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