POV-Ray : Newsgroups : povray.general : Omni-directional Stereo Content : Re: Omni-directional Stereo Content Server Time
3 May 2024 05:38:02 EDT (-0400)
  Re: Omni-directional Stereo Content  
From: clipka
Date: 9 Mar 2016 04:50:37
Message: <56dff1ed$1@news.povray.org>
Am 08.03.2016 um 20:29 schrieb Clodo:

> 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

Sorry, my bad, I should have explained the syntax in more detail.

Like in the `parametric` shape, the functions' parameter list is fixed,
and cannot be changed. Use

    function { EXPRESSION }

and use `x` and `y` or, alternatively, `u` and `v` to reference the
parameters, e.g.

    camera {
      user_defined
      location {
        function { sin(x) }
        function { sin(y) }
        function { 1 }
      }
      direction {
        function { 0 }
        function { 1 }
        function { -10 }
      }
    }


Post a reply to this message

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