POV-Ray : Newsgroups : povray.general : What to do with the pixel in the middle : Re: What to do with the pixel in the middle Server Time
28 Apr 2024 22:11:45 EDT (-0400)
  Re: What to do with the pixel in the middle  
From: Tor Olav Kristensen
Date: 2 Feb 2019 15:20:01
Message: <web.5c55fae0738ba468c143b2b0@news.povray.org>
"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

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