|
|
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
|
|