Tugcga / Sycles

Cycles render integration into Softimage
5 stars 1 forks source link

Wrong time stamp for rendering frame #18

Closed Tugcga closed 1 month ago

Tugcga commented 10 months ago

When render the frame the engine get the time stamp by

eval_time = render_context.GetTime();

and then use it like

XSI::MATH::CMatrix4 camera_tfm_matrix = xsi_camera.GetKinematics().GetGlobal().GetTransform(eval_time).GetMatrix4();

When Frame Rate in Play Control is not equal to 30 fps, then the rendered moment is different with respect to the Softimage viewport. It needs to find the way how to read parameters from Play Control and apply it to the render time stamp.