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