POV-Ray : Newsgroups : povray.general : media tester scene : Re: media tester scene Server Time
28 Apr 2024 02:37:14 EDT (-0400)
  Re: media tester scene  
From: Kenneth
Date: 9 Sep 2017 17:55:01
Message: <web.59b46207252f876e883fb31c0@news.povray.org>
"Kenneth" <kdw### [at] gmailcom> wrote:

>
> // long box embedded in media
> box{-.37,.55 scale <3.5,.15,.15>
>         pigment{
>             gradient x
>             scale .7
>             color_map{
>                 [0.0 rgb <1,0,0>]
>                 [.333 rgb <1,0,0>]
>                 [.333 rgb <0,1,0>]
>                 [.666 rgb <0,1,0>]
>                 [.666 rgb <0,0,1>]
>                      }
>                 }
>         // OR...
>         // pigment{rgb .5}
>
>     rotate -60*y
>     rotate -15*x
>     translate .1*y
>     }
> // END

Oops, a small mistake: This box shouldn't have the 'default' finish (although it
doesn't really affect the scene.) But substitute this for it...

// long box embedded in media
box{-.37,.55 scale <3.5,.15,.15>
        texture{
        pigment{
            gradient x
            scale .7
            color_map{
                [0.0 rgb <1,0,0>]
                [.333 rgb <1,0,0>]
                [.333 rgb <0,1,0>]
                [.666 rgb <0,1,0>]
                [.666 rgb <0,0,1>]
                     }
                }
        // OR...
        // pigment{rgb .5}
        finish{ambient .2 diffuse .8}
        }

    rotate -60*y
    rotate -15*x
    translate .1*y
    }
// END


Post a reply to this message

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