• Website
  • Search
  • Member List
  • Help
  • Old Forum
  • Social Media
    •   @Wings3dOfficial
    •   @Wings3dOfficial
    •   Wings3dOfficial
    •   Wings3dOfficial
  • Register
  • Login
  • Website
  • Search
  • Member List
  • Help
  • Old Forum
  • Register
  • Login
Wings 3D Development Forum Wings 3D Gripes & Grumbles v
1 2 3 4 5 … 8 Next »
Collada exporter

 
  • 0 Vote(s) - 0 Average
Collada exporter

ismacou
Offline

Junior Member

Posts: 27
Threads: 6
Joined: Apr 2019
#1
11-12-2024, 11:01 PM
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.
micheus
Offline

Forum's Admin and Support | Bug fixer
Posts: 3,675
Threads: 183
Joined: Jun 2012
#2
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 ...".
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]
[Image: tw.png] @MicheusVieira [Image: yt.png] @MicheusVieira [Image: da.png] Micheuss [Image: ig.png] micheus4wings3d
* Wings3D Team stands for: Björn and Dan
ismacou
Offline

Junior Member

Posts: 27
Threads: 6
Joined: Apr 2019
#3
11-24-2024, 07:47 PM
Hi Micheus.  Smile
Thanks for your reply.
For not knowing what Blender style was, you can say that you were very well oriented.
Exactly, that is the beautiful code I was referring to.
You have a gift. It would be wonderful to find it in Collada's XMLs.
Regards and thank you very much.
micheus
Offline

Forum's Admin and Support | Bug fixer
Posts: 3,675
Threads: 183
Joined: Jun 2012
#4
11-26-2024, 09:55 PM
ismacou, could you please try this to ensure it works in a real-case scenario?

Download: wpc_collada.erl

* p.s.: use the File->Install Plugin/Patch option.
[Image: tw.png] @MicheusVieira [Image: yt.png] @MicheusVieira [Image: da.png] Micheuss [Image: ig.png] micheus4wings3d
* Wings3D Team stands for: Björn and Dan
ismacou
Offline

Junior Member

Posts: 27
Threads: 6
Joined: Apr 2019
#5
12-24-2024, 12:09 AM
Hi Micheus.
Sorry for the delay. I was a bit distant.
I deeply appreciate your help and effort with this development.
I can only answer with total sincerity.
I intended to use the Camera functionality in
collada, mainly in the design of HDR environments from the camera point of view (HDR Light Studio). 
Also to import the models to some renderer without having to fight with cameras to achieve the same frame (that's why I like Pov Ray, or Yafaray, or Kerkythea Wink ).
The truth is that until now I have tested dae files from several programs (including yours), but the only one that manages to correctly position the camera is Blender.
The others present difficulties that I cannot understand or describe.
Many, many thanks
Greetings and happy holidays.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D - Powered by MyBB

Linear Mode
Threaded Mode