Wings 3D Development Forum
Collada exporter - Printable Version

+- Wings 3D Development Forum (https://www.wings3d.com/forum)
+-- Forum: Wings 3D (https://www.wings3d.com/forum/forumdisplay.php?fid=1)
+--- Forum: Gripes & Grumbles (https://www.wings3d.com/forum/forumdisplay.php?fid=4)
+--- Thread: Collada exporter (/showthread.php?tid=3178)



Collada exporter - ismacou - 11-12-2024

Hello. Me again.
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 think it would be very useful, at least for me, obvious.
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 ...".
What does that mean? ).
Greetings and thank you very much.


RE: Collada exporter - micheus - 11-14-2024

(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 <cameraelement 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 ...".
What does that mean? ).
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.

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).
[Image: w3d-camera-lookat.png]