Giter VIP home page Giter VIP logo

cobweb's People

Contributors

andreasplesch avatar coderextreme avatar create3000 avatar sgeo avatar

Watchers

 avatar  avatar

cobweb's Issues

v0.0.2 tests

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

Potential reworking of WebVR

The following issues may be related to the hacky approach of separate vrViewMatrix in shaders + using X3DRenderObject to drive all VR:

  • Background not properly shaded
  • Objects incorrectly not getting added to list of objects to draw
  • Lighting shifts with head movement in the Mall
  • Cobweb deciding not to draw new frames. Most observable in the Club. Cobweb needs to be informed that moving stuff exists?

Might be better to rework to have WebVR modify existing internal matrices.

First test

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:
image
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 ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.