Coordinates in yscene #1234
-
Hello! I'm trying to perform some basic rendering experiments using yscene and json file defining a scene. Kind regards, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The "lookat" syntax for expressing frames in the json format matches the arguments of the function Let's say you want to set a camera that, from point
|
Beta Was this translation helpful? Give feedback.
The "lookat" syntax for expressing frames in the json format matches the arguments of the function
lookat_frame()
inlibs/yocto/yocto_math.h
, with vector values unpacked.Let's say you want to set a camera that, from point
(1, 2, 3)
, looks at point(0, 0, 0)
, with up vector(0, 1, 0)
.In the json format you will write: