To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.rayOpen lugnet.cad.ray in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Ray-Tracing / 678
677  |  679
Subject: 
Re: background picture in POVRAY renderings
Newsgroups: 
lugnet.cad.ray
Date: 
Sat, 30 Dec 2000 06:06:51 GMT
Viewed: 
1082 times
  
This code came pretty much straight out of the POV-Ray docs, so I'm sure you
can use it. It has many parameters. I was thinking about making a .dat file
with the POV code in it for different sky effects, but maybe it would be a good
L3P option instead.
You can set the color, the cloud color, the cloud fuzzyness, lumpyness, sky
color, sky fade, cloud angle, and all sorts of stuff.


-Amnon



In lugnet.cad.ray, Lars C. Hassing writes:
Amnon Silverstein wrote...
Edit in the code to make a background in POV-Ray. They have examples in the
documentation for making clouds, fog, rainbows, and other stuff. You can
also read in image files, check out the syntax for image map.

Just paste in this code at the end of the POV file to get a sky:

sky_sphere {
    pigment {
      gradient y
      color_map {
        [0.000 0.002 color rgb <1.0, 1.0, 0.5>
                     color rgb <1.0, 1.0, 0.5>]
        [0.002 0.200 color rgb <1.0, 1.0, 0.5>
                     color rgb <0.5, 0.5, 1.0>]
      }
      scale 2
      translate -1
    }
    pigment {
      bozo
      turbulence 0.65
      octaves 6
      omega 0.7
      lambda 2
      color_map {
          [0.0 0.1 color rgb <0.85, 0.85, 0.85>
                   color rgb <0.75, 0.75, 0.75>]
          [0.1 0.5 color rgb <0.75, 0.75, 0.75>
                   color rgbt <1, 1, 1, 1>]
          [0.5 1.0 color rgbt <1, 1, 1, 1>
                   color rgbt <1, 1, 1, 1>]
      }
      scale <0.2, 0.5, 0.2>
    }
    rotate -135*x
  }

Looks great.
Can I put it into L3P, and provide an option -bs (Background Sky)?
Of course with a comment: // Sky by Amnon Silverstein
Are there any parameters, that should be adjustable?
/Lars



Message is in Reply To:
  Re: background picture in POVRAY renderings
 
Amnon Silverstein wrote... (...) Looks great. Can I put it into L3P, and provide an option -bs (Background Sky)? Of course with a comment: // Sky by Amnon Silverstein Are there any parameters, that should be adjustable? /Lars (24 years ago, 30-Dec-00, to lugnet.cad.ray)

5 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR