-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Clipboard -> Print Current Camera" output is incomplete #54
Comments
…ewpoint, support to generate centerOfRotation / fieldOfView See castle-engine/castle-model-viewer#54
Fixed! We now output The new build will be available on https://jenkins.castle-engine.io/public/builds/view3dscene/ , but please give it some time (even 20 hours) -- Jenkins needs to build both new CGE modification, and new view3dscene modification, And I see Jenkins is now busy building and testing previous changes :) You can keep observing the page castle-engine/castle-engine@snapshot...master : when it will no longer show the commit "Expose camera string/node properties through more flexible TMakeX3DVi…" then this CGE commit is in snapshots, and latest view3dscene will include it in next ~15 minutes. |
Hi Michalis, I have just tested the latest View3DSsene from 10-May-2023 04:49. The "Print Current Camera" output for VRML and X3D now includes fieldOfView and centerOfRotation (if divergent from the default values) --- Thank you very much! ---I saw, that you had to change 3 files (castlescenecore.pas, x3dloadinternal3ds.pas and x3dcamerautils.pas) with 224 additions and 31 deletions, to do the fix, which is far more than I (in my naivity) assumed! I thought 2 additional With best regards, Elmar |
I reworked related pieces of code, to also better support possible future additions to viewpoint output :) |
Hi Michalis,
it's again me, Elmar!
Sorry, but I found another incovenience in conjunction with the fixes to issues #46 and #20.
Consider this code:
It should result in this:
But when I copy the current Viewpoint parameters to the clipboard to be able to re-use them in other X3D files, I get something like this:
This gives me
position
andorientation
, but for a correct re-creation of the original view,centerOfRotation
andfieldOfView
are also essential! Maybe evennearDistance
andfarDistance
should be included in the printout.Especially because I use a copyright tag in my X3D files, that is optimized for a certain
fieldOfView
and aspect ratio (3:2 for photo print-out), I have to copycenterOfRotation
andfieldOfView
manually (if they diverge from the standard), which is kind of inconvenient.Sadly X3D allows not to set the aspect ratio of the viewing-window, like a video does for a media player ...
Be that as it may, I herewith kindly ask for adding at least
centerOfRotation
andfieldOfView
to the print-out, if possible.With best regards,
Elmar
P.S.: Please don't forget issue #52 (PixelTexture3D as emissive texture), because I need that to work properly for my models!
The text was updated successfully, but these errors were encountered: