-
Notifications
You must be signed in to change notification settings - Fork 12
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
Magnum Player #6
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6 +/- ##
=======================================
Coverage 18.68% 18.68%
=======================================
Files 35 35
Lines 1450 1450
=======================================
Hits 271 271
Misses 1179 1179 Continue to review full report at Codecov.
|
src/player/player.html
Outdated
</head> | ||
<body> | ||
<h1>Magnum glTF Player</h1> | ||
<p style="max-width: 640px; text-align: center; margin-left: auto; margin-right: auto;">Drag & drop your <tt>*.glb</tt> (or an <em>embedded</em> <tt>*.gltf</tt>) file into the grey rectange below to play it. Refresh the browser if it gets stuck. I'm not responsible for anything :P</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"rectange" should be "rectangle" 😉
636eacc
to
6000b10
Compare
ea95753
to
f0c755a
Compare
b175dba
to
b1f561c
Compare
Looks like static build on Windows was never working properly.
Initial code is a plain copy of the Viewer example.
And if possible, import the initial TRS properties separately. Makes it better for handling animations.
Better than crashing during an animation.
For drag & drop.
The file will be specified through drag&drop, so this is not doing anything at the moment.
It needs Ui, which doesn't work on WebGL 1 / ES2.
Well, basically it's recreating it from scratch. Sorry, ugly, verbose and slow. Needs to be done properly later.
Reused from the Mouse Interaction example.
Again just a copy from the Mouse Interaction example.
But only 2x on HiDPI and allow the users to override that.
Apparently hierarchy is not preserved with browser D&D so if a file in subdir is not found, we try again using just the filename.
Otherwise the animation time might not get displayed when the destination random value would be matching animation progress.
This will become an extended version of the Viewer example with the end goal being an ability to view and play any 3D file you throw at it.
The initial goals, in scope of this PR, are:
doc/utilities.dox
Ability to specify aspect ratio of the viewAbility to full-size the viewScreenshot savingpostponedSome default scene for the web view (animated cube at least)postponedFigure out the depth issuespostponedSome better scene info (a modal) .. also cam count etc.postponed