function Collada_SaveCams(strFileName,T,I,strUnits,strAxisUP)
Description: Generate and save a Collada file with all cameras defined by T and I. The collada syntax is based in XML syntax.
In parameters:
- strFileName = Collada file name (it can include path) to save.
- Rw2oc = Rotation matrix [mat 3x3xnCams]
- Twoc = Translation vector (camera position) [X Y Z] [mat nCamsx3] (row based)
- I : Camera information matrix. One camera per row.
- Optional strUnits = Specify the magnitude of Longitude units in collada file. The allowed values are: ‘Centimeter’, ‘Meter’, ‘Milimeter’. (Default: ‘Centimeter’)
- Optional strAxisUP = Specify what is the UP axis in collada file. The allowed values are: ‘Z’, ‘Y’, ‘X’. (Default: ‘Z’)
Example (collada file), it defines 2 cameras with following parameters:
CamID1:
– Pos: [7.071 -7.071 0]
– LookAt: [0 0 0]
– Up vector = +Z [0 0 1]
– xFov = 49.134mm
– Display Aspect Ratio = 16:9
– CCD resolution: 720 x 576
– Inverted image = 0 (NO)
– Original view axis: -1 (-Z)
CamID2:
– Pos: [7.071 7.071 0]
– LookAt: [0 0 0]
– Up vector = +Z [0 0 1]
– xFov = 49.134mm
– Display Aspect Ratio = 16:9
– CCD resolution: 720 x 576
– Inverted image = 0 (NO)
– Original view axis: -1 (-Z)