sgeo / cobweb Goto Github PK
View Code? Open in Web Editor NEWThis project forked from create3000/cobweb
Cobweb WebGL X3D Browser
License: Other
This project forked from create3000/cobweb
Cobweb WebGL X3D Browser
License: Other
I updated tests to use v0.0.2 release:
https://rawgit.com/andreasplesch/cobweb/cc30beaeb64fae1fb88df65ddc33eb5b338d3d95/cobweb.js/tests/VR/Basic_Inline.xhtml
https://rawgit.com/andreasplesch/cobweb/783c67d2ca2a16302d926d7931469d16ed898feb/cobweb.js/tests/VR/world.html
https://rawgit.com/andreasplesch/cobweb/783c67d2ca2a16302d926d7931469d16ed898feb/cobweb.js/tests/VR/Basic.html
https://rawgit.com/andreasplesch/cobweb/783c67d2ca2a16302d926d7931469d16ed898feb/cobweb.js/tests/VR/PosInterp.html
As you have observed, the camera seems very close and performance is degraded. Are you traversing for each eye separately now ?
Only using the webvr emulator, I see that the canvas is now taking up the whole screen:
<canvas width="3024" height="1680" tabindex="0" style="display: block; width: 3024px; height: 1680px;"></canvas>
which would tend to slow down things.
Manually, in the developer tools, resetting the canvas size to the original:
<canvas width="768" height="432" tabindex="0" style="display: block; width: 768px; height: 432px;"></canvas>
actually gets the frame rate back up, so I guess the large canvas is a factor. Also, the distance looks better.
While HMD pose changes are ok and lead to continuous updates, mouse interactions now provoke a type error:
c08d02e4-2ddc-11e7-83ac-e7fe94008dad.js?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAISTNZ…:53 Uncaught TypeError: Cannot read property '0' of undefined(…)
assign @ …:67
traverse @ …:76
traverse @ …:67
onmotion @ …:67
dispatch @ …:50
The following issues may be related to the hacky approach of separate vrViewMatrix in shaders + using X3DRenderObject to drive all VR:
Might be better to rework to have WebVR modify existing internal matrices.
Thanks for providing the build.
I quickly put together a minimal scene using your build in a branch of my cobweb fork:
https://github.com/andreasplesch/cobweb/blob/vr-work/cobweb.js/tests/VR/Basic.html
rawgit lets you directly serve:
https://rawgit.com/andreasplesch/cobweb/vr-work/cobweb.js/tests/VR/Basic.html
With spites excellent webvr emulator chrome extension - https://github.com/spite/WebVR-Extension - the scene looks like this:
Nice ! What I noticed is that the frames are only updating on mouseover, at least with the webvr extension. Eg. if one moves the HMD (in the extension) the frame is only updated when mouse is over the canvas. With an actual HMD one could just leave the mouse pointer there. Is that what you do ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.