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 / 677
676  |  678
Subject: 
Re: background picture in POVRAY renderings
Newsgroups: 
lugnet.cad.ray
Date: 
Sat, 30 Dec 2000 01:45:15 GMT
Viewed: 
717 times
  
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 has 1 Reply:
  Re: background picture in POVRAY renderings
 
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 (...) (24 years ago, 30-Dec-00, to lugnet.cad.ray)

Message is in Reply To:
  Re: background picture in POVRAY renderings
 
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 (...) (24 years ago, 29-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

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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