POV-Ray : Newsgroups : povray.general : brightnessproblem : brightnessproblem Server Time
5 Jul 2024 10:30:17 EDT (-0400)
  brightnessproblem  
From: layaya
Date: 20 Feb 2015 13:55:01
Message: <web.54e7823dc066c0c89cbd5880@news.povray.org>
Hello all, I have the following code (easy one)

camera {
  location  <0.0, 2.5, -10.0>
  look_at   <0.0, 0.0,  0.0>
}

light_source {
  0*x                  // light's position (translated below)
  color rgb <1,1,1>    // light's color
  translate <-50, 40, -50>
}

/*cylinder that works as ground*/
cylinder { <0,-60,0>,<0,0,0>, 20
           texture { pigment { color rgb<0.77 , 0.4, 0.13> }
           scale <1,1,1> rotate<0,0,0> translate<-2,0,-20>
         }
/* front wall*/
 plane{
 z, 90
 pigment {color /*rgb<1,1,0>*/ blue 1}
 }



Ok, everything is ok until here. But when I add the following figure, all the
colors of the picture become brighter! Somebody can tell me why?

The code I add, and mess up everything is this one:

//--------------------------------------------------------------------------
#include "shapes3.inc"
//--------------------------------------------------------------------------


declare g1 = union{
object {Segment_of_CylinderRing( 1.0, // major radius,
                                 0.60, // minor radius,
                                 0.40, // height H,
                                 180  // angle (in degrees)
                               ) //-----------------------------------------
        texture{ pigment{ color /*rgb<0.6,1,0>*/ red 1}
                 finish { phong 0.0 reflection 0.00}
               } // end of texture
        scale <1,1,1> rotate<90,0,-50> translate<0,1,0>
 }



object{ Segment_of_CylinderRing( 1.70, // major radius,
                                 1.3, // minor radius,
                                 0.40, // height H,
                                 85  // angle (in degrees)
                               ) //-----------------------------------------
        texture{ pigment{ color /*rgb<0.6,1,0>*/ red 1}
                 finish { phong 0.0 reflection 0.00}
               } // end of texture
        scale <1,1,1> rotate<90,0,222>  translate<-1.35,2.86,0>
      }
}



declare g2 = union {

object {Segment_of_CylinderRing( 2.0, // major radius,
                                 1.60, // minor radius,
                                 0.40, // height H,
                                 160  // angle (in degrees)
                               ) //-----------------------------------------
        texture{ pigment{ color /*rgb<0.6,1,0>*/ red 1}
                 finish { phong 0.0 reflection 0.00}
               } // end of texture
        scale <1,1,1> rotate<90,0,160> translate<-0.78,1.63,0>
        }

object{g1}

 }





declare gota_final = difference {
 object{g2}

cylinder { <0,0,0>,<0,0,2.00>,1.3
           texture { pigment { color /*rgb<0.6,1,0>*/ red 1}
                   //normal  { bumps 0.5 scale 0.005}
                     finish  { phong 0.0 reflection{ 0.00 metallic 0.00} }
                   } // end of texture
           scale <1,1,1> rotate<0,0,0> /*translate<-1.5,2.85,-1>*/
translate<-1.5,2.82,-1>
         } // end of cylinder  ------------------------------------


  scale <0.5,0.5,0.5>
  rotate <0, -20, 0 >

}



object{gota_final translate <-1.2, 0.2, -3.6>}


Post a reply to this message

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