Raytracing

... with povray

Some examples in povray and further reading.

global_settings{
   ambient_light rgb<1,1,1>

   photons{ count 100000
     media 10
     autostop 0
     jitter .4
   }
}
light_source {<0,10,5>,1}

camera{location <30,30,5>
  right x*image_width/image_height look_at 0}


cylinder{<0,0,0>,<0,10,0>,2
  pigment{ color rgbf <1,1,1,1> }
  finish{
    reflection .1
    ior 1.2
    phong 0}
 photons { target reflection on }
  photons {
    target
    refraction on
    reflection on
    collect off
  }
}

plane{y,0
  pigment{
    color rgb <.3,.3,.3>
     }
  finish{
    diffuse .7
    reflection 0}
 }

global_settings{
   ambient_light rgb<1,1,1>
   photons{ count 100000
     media 10
     autostop 0
     jitter .4
   }
 }

light_source {<0,7,5>,.5
}

camera{location <30,30,5>
  right x*image_width/image_height look_at 0}

sphere{<-1,3,1>,5
  pigment{ color rgbf <1,1,1,1> }
  finish{
    reflection .1
    ior 1.2
    phong 0}
 photons { target reflection on }
  photons {
    target
    refraction on
    reflection on
    collect off
  }
}

plane{y,-2.5
  pigment{
    color rgb <.3,.3,.3>
     }
  finish{
    diffuse .7
    reflection 0}
 }
Palavras chave/keywords: povray, raytracing

Criado/Created: 03-03-2021 [10:10]

Última actualização/Last updated: 03-03-2021 [11:16]


Voltar à página inicial.


GNU/Emacs Creative Commons License

(c) Tiago Charters de Azevedo