POV-Ray : Newsgroups : povray.general : Omni-directional Stereo Content : Re: Omni-directional Stereo Content Server Time
3 May 2024 08:11:50 EDT (-0400)
  Re: Omni-directional Stereo Content  
From: Clodo
Date: 8 Mar 2016 14:30:00
Message: <web.56df278a976329954e8811590@news.povray.org>
> It adds a new function-based user-defined camera:
>
>     camera {
>       user_defined
>       location {
>         FUNCTION, // x-coordinate of ray origin
>         FUNCTION, // y-coordinate of ray origin
>         FUNCTION  // z-coordinate of ray origin
>       }
>       direction {
>         FUNCTION, // x-coordinate of ray direction
>         FUNCTION, // y-coordinate of ray direction
>         FUNCTION  // z-coordinate of ray direction
>       }
>       CAMERA_MODIFIERS
>     }
>
> where each FUNCTION takes the screen coordinates as parameters, ranging
> from -0.5 (left/bottom) to 0.5 (right/top).

Hi, i'm missing something here about syntax...

camera {
    user_defined
    location {
        function (sx,sy) { sx*sy },
        function (sx,sy) { sx*sy },
        function (sx,sy) { sx*sy }
        }
    direction {
        function (sx,sy) { sx*sy },
        function (sx,sy) { sx*sy },
        function (sx,sy) { sx*sy }
    }
}

give a
Parse Error: Missing { after 'location', ( found instead
on both 3.7.1-alpha binaries of your message, and also on my GitHub updated
clone. Currently lost in debugging Parse_User_Defined_Camera...
Anyone have tried user_defined camera and can post an example? Thanks.


Post a reply to this message

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