POV-Ray : Newsgroups : povray.binaries.images : adding a 'normal' to a camera-- some notes : Re: adding a 'normal' to a camera-- some notes Server Time
24 Apr 2024 14:32:45 EDT (-0400)
  Re: adding a 'normal' to a camera-- some notes  
From: Thomas de Groot
Date: 7 Jan 2022 02:14:00
Message: <61d7e838$1@news.povray.org>
Op 07/01/2022 om 03:49 schreef Kenneth:
[snip]
> 
> -----
> #version 3.8;
> global_settings{assumed_gamma 1.0}
> #default{finish{ambient .4 emission 0 diffuse 0}}
> 
> camera {
>    perspective
>    location  <0, 0, -20>
>    look_at   <0, 0,  0>
>    right     x*image_width/image_height
>    // direction z
>    // angle 67
> 
>    normal{
>    gradient x+y // a 45-degree pattern
>    sine_wave
>    scale .1
>    bump_size .4
>    / /scale <3/4,1,1> // for 4/3 render
>    // OR...
>    // scale <9/16,1,1> // for 16/9 render
>    // -- etc. --
>    }
> }
> 
> #declare S = seed(21);
> #for(i,1,100)
> sphere{0,1
>   pigment{rgb <.1 + .9*rand(S),.1 + .9*rand(S),.1 + .9*rand(S)>}
>   translate <-15 + 30*rand(S), -10 + 20*rand(S),0>
>   }
> #end

That is interesting indeed. I guess you could use the camera 'right' for 
the normal, like:

scale <image_height/image_width,1,1>

Don't you think?

-- 
Thomas


Post a reply to this message

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