RcCameraTransformExample

About Truespace Archives

These pages are a copy of the official truespace forums prior to their removal somewhere around 2011.

They are retained here for archive purposes only.

RcCameraTransformExample // SDK, Plug-in & 3rd Party Area

1  |  

Post by mbonk // Nov 5, 2008, 4:37am

mbonk
Total Posts: 2
Hi,


I just had another look at the RcCameraTransformExample supplied with the SDK and I am not sure about the code relating to the expanded connectors.


The matrix used to set the CON_OBJ_TRANSFORM_INP_MATRIX has the parent transform removed: the camera matrix is multiplied with the parent's inverse and then the CON_OBJ_TRANSFORM_INP_MATRIX connector is set.


However, the values fed to the expanded connectors i.e. CON_TRANSFORM_Z_YAW are retrieved from the camera matrix before it is multiplied with the parents inverse.


Is this correct and if so how does one know when to remove the parents transform?


Markus
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn