Exporter for Eyeshot from Devdept
Posted: Mon May 14, 2012 11:08 pm
Hello,
I am currently working on an XML exporter for Eyeshot.
www.devdept.com
Now I have a question regarding the camera properties.
In Eyeshot there are the following camera parameters:
AngelOfView - Gets the camera vertical angle of view (in degrees)
Distance - gets or sets the distance between camera an target point.
Far - Gets the far clipping plane position
FirstPerson - If true, enables camera rotation on location (eye) point.
FocalLength - Gets or sets the camera focal length. Applies only to Perspective projection mode
Location - Gets or sets the camera location (eye) point.
LocationWithoutOffset
Near - Gets the near clipping plane postion.
ProjectionMode - Gets or sets the camera projection mode
Rotation - 3D rotation
Target - Gets or sets camera aiming point.
ZoomFactor - Gets or sets the current zoom factor. Applies only to Orthographic projection mode.
Currently I just use these 4 parameters for the export:
Location -> Pos
Target -> forwards
Rotation -> up
FocalLenght ->lens_sensor_dist
Now these are the exportet camera parameters like I understand it:
<camera>
<forwards>
0 0 -7.10542735760111 // Target in Eyeshot
</forwards>
<aperture_radius>
0.00218750002845326
</aperture_radius>
<focus_distance>
10.0
</focus_distance>
<pos>
3.52357077516967 -6.10300360665872 4.06866907110581 // Location in Eyeshot
</pos>
<up>
0.12940952255126 0.224143868042013 0.4892962913144534 // Rotation in Eyeshot
</up>
<aspect_ratio>
1.7777777777777777
</aspect_ratio>
<white_balance>
E
</white_balance>
<exposure_duration>
0.008
</exposure_duration>
<lens_sensor_dist>
0.050 // Focal lenght in Eyeshot (50)
</lens_sensor_dist>
<autofocus/>
<sensor_width>
0.032
</sensor_width>
</camera>
In the center is the small box from Blender's standard scene. At least, should be.
Now obviously my current understanding of camera parameters is wrong.
But after trying out a lot, I can not find the error. That's why I ask if somebody could
help me out with this.
Thanks a lot.
Kind regards,
Heinz
I am currently working on an XML exporter for Eyeshot.
www.devdept.com
Now I have a question regarding the camera properties.
In Eyeshot there are the following camera parameters:
AngelOfView - Gets the camera vertical angle of view (in degrees)
Distance - gets or sets the distance between camera an target point.
Far - Gets the far clipping plane position
FirstPerson - If true, enables camera rotation on location (eye) point.
FocalLength - Gets or sets the camera focal length. Applies only to Perspective projection mode
Location - Gets or sets the camera location (eye) point.
LocationWithoutOffset
Near - Gets the near clipping plane postion.
ProjectionMode - Gets or sets the camera projection mode
Rotation - 3D rotation
Target - Gets or sets camera aiming point.
ZoomFactor - Gets or sets the current zoom factor. Applies only to Orthographic projection mode.
Currently I just use these 4 parameters for the export:
Location -> Pos
Target -> forwards
Rotation -> up
FocalLenght ->lens_sensor_dist
Now these are the exportet camera parameters like I understand it:
<camera>
<forwards>
0 0 -7.10542735760111 // Target in Eyeshot
</forwards>
<aperture_radius>
0.00218750002845326
</aperture_radius>
<focus_distance>
10.0
</focus_distance>
<pos>
3.52357077516967 -6.10300360665872 4.06866907110581 // Location in Eyeshot
</pos>
<up>
0.12940952255126 0.224143868042013 0.4892962913144534 // Rotation in Eyeshot
</up>
<aspect_ratio>
1.7777777777777777
</aspect_ratio>
<white_balance>
E
</white_balance>
<exposure_duration>
0.008
</exposure_duration>
<lens_sensor_dist>
0.050 // Focal lenght in Eyeshot (50)
</lens_sensor_dist>
<autofocus/>
<sensor_width>
0.032
</sensor_width>
</camera>
In the center is the small box from Blender's standard scene. At least, should be.
Now obviously my current understanding of camera parameters is wrong.
But after trying out a lot, I can not find the error. That's why I ask if somebody could
help me out with this.
Thanks a lot.
Kind regards,
Heinz