|
|
"Tor Olav Kristensen" <tor### [at] TOBEREMOVEDgmailcom> wrote:
> ingo <ing### [at] tagpovrayorg> wrote:
> > in news:5c54fe9a$1@news.povray.org clipka wrote:
> >
> > > think about it
> >
> > The back pixel in the middle makes sense,
>
> To achieve this you can make the camera look another way when u equals zero,
> e.g. like this:
>
> direction {
> function {
> select(
> u,
> D1L_X_Fn(u*image_width/AspectU + 0.25, v),
> 0,
> D1R_X_Fn(u*image_width/AspectU - 0.25, v)
> )
> }
> function {
> select(
> u,
> D1L_Y_Fn(u + 0.25, v),
> 1,
> D1R_Y_Fn(u - 0.25, v)
> )
> }
> function {
> select(
> u,
> D1L_Z_Fn(u + 0.25, v),
> 0,
> D1R_Z_Fn(u - 0.25, v)
> )
> }
> }
>
> - and then place something small with a black pigment, no_shadow and
> no_reflection close to the camera in that direction (e.g. right above the
> camera).
The position for the camera when u is zero is pLocationL.
I suggest that you change it to pLocation by doing this:
#local <LocationX, LocationY, LocationZ> = pLocation;
location {
function { select(u, LocationXL, LocationX, LocationXR) }
function { select(u, LocationYL, LocationY, LocationYR) }
function { select(u, LocationZL, LocationZ, LocationZR) }
}
--
Tor Olav
http://subcube.com
Post a reply to this message
|
|