11-14-2024, 02:25 PM
(11-12-2024, 11:01 PM)ismacou Wrote: What a possibility that you consider adding to the collada exporter, the view camera (or stored views). Blender's style, for being more specific.I don't know nothing about the Blender style, but I think we can try to add camera support to export with the information we have from Wings3D (including the saved ones):
PHP Code:
Here is an example of a <camera> element that describes a perspective view of a scene with a 45-degree
field of view:
<camera id="#camera01" name="eyepoint">
<assets>
<lookat>
8.0 4.0 8.0 <!-- eye position (X,Y,Z) -->
0.0 0.0 0.0 <!-- interest position (X,Y,Z) -->
0.0 1.0 0.0 <!-- up-vector position (X,Y,Z) -->
</lookat>
</assets>
<optics>
<technique_common>
<perspective>
<yfov>45</yfov>
<aspect_ratio>1.33333</aspect_ratio>
<znear>1.0</znear>
<zfar>1000.0</zfar>
</perspective>
</technique_common>
</optics>
</camera>
Quote:I also take the opportunity to raise my difficulty to establish the "numerical position camera". I have not been able to decipher their behavior, nor know how to extract the coordinates of the camera or the focal point, not even from the information in the name of the saved view ("from the +z to the -x distance ...".That is barely informative and also not precise - of course. That is a suggested name just to make then different, but we should rename to something with meaning for us.
What does that mean? ).
This will not aggregate much, but it just says the "octant" in which camera is placed (From -X+Z+Y) and the quadrant its pointing at (towards -X+Y). The distance of 8.0 is the default one each time we reset the camera.
By default the camera will be pointing (look at) {0,0} (X,Y) (left image). We change the Look At by using the View->Aim command (right image).