• Content Count

  • Joined

  • Last visited

Everything posted by HoloLite

  1. I am using Babylon-3.1-rc0. The sample codes were essentially the same as ones from https://www.babylonjs-playground.com/#S7L7FE. In the vr headset though, the input text was not rendered correctly. You kinda saw double vision on the control. Is this a known issue ? Looks very easy to reproduce.
  2. The VR support works great on winmr. 3.1release will make bjs a formidable webvr framework! Please keep up the great work and look forward to the official release.
  3. @davrous Just tried the teleportation again. Overall works pretty well. One observation: during rotation the position sometimes got shifted a bit which is not expected.
  4. Thanks @davrous ! I will try out the links above. I did try it earlier today on the sponza demo with teleport codes, it looked pretty good and stable so far. Btw, do you support controllers for the Samsung Gear VR ?
  5. I heard it will be sometime in Dec, just checking to see how things are going. Any ETA for the release ? Really look forward to new VR functionalities/support like teleport, gaze etc.
  6. Thanks Ranaan. FYI, the amd/requirejs works too for me. It would be great to have es6 native loading support in the future. Maybe 3.2?
  7. Thanks for the reply. What I was trying to do is a bit different from what was described in that doc section. A few more data on my env: - I am using 3.1.0-beta1.1.1 - In the tsconfig.json, compilerOptions.module is set to 'es6' The es6 module loading term here implies 2 things: - The dependency syntax at build/design time (the 'import'/'export' keywords etc) - The actual module loading at run-time on the browser (thus completely eliminating the external loader like webpack, require etc) The index.html loads my main component using <script type="module" src="./mymodule.js></script> tags. As mentioned previously, I was able to make the browser es6-loads my own modules (w/o any external loaders), but get errors when loading babylonjs. Here is some relevant link on the new es6 module loading: https://jakearchibald.com/2017/es-modules-in-browsers/
  8. How about using es6 module loading? I can load my own ts module using es6 but not babylonjs. I posted separate question on this.
  9. Hello, I have been using the amd/requires to load the babylonjs and it's been working just fine. Today I tried to use the new es6 module loading, though I can make it works for my own module, I can't seem to load the babylonjs. My TS module which imports babylonjs looks like this at the top //// import 'babylon' // this is the same format I use for amd loading /// and chrome gave me error like this: Uncaught TypeError: Failed to resolve module specifier 'babylon'. Then I tried the following format ('./xxx.js') which works with my own module: /// import './babylon.js' /// and chrome gave me the following error: Uncaught TypeError: Cannot set property 'BABYLON' of undefined If anyone has the es6 module loading working with babylonjs, please help! thanks.
  10. Glad to find this posting. I struggled for a couple of days until I saw the solution here. Would be nice if someone update the doc to reflect the correct sample codes (for typescript).
  11. @brianzinn thanks for the tips! I ended up having to do the following codes. Not sure if this is the most efficient one, but it seems all lines are needed to make it actually works. var y = camera.rotation.y + xVal/30; camera.rotationQuaternion = BABYLON.Quaternion.RotationYawPitchRoll(-y, 0, 0); camera.rotation.y = y; camera.resetToCurrentRotation();
  12. I don't see the resetPose() method in camera. Did you mean the camera.resetToCurrentRotation() ? For the first time I am getting the real vr sickness after mucking around with headset rotation directly. Hehe, this has to be done carefully I guess
  13. Looks like the following does the trick camera.rotationQuaternion = BABYLON.Quaternion.RotationYawPitchRoll(-x, 0, 0);
  14. Hello, I am trying to rotate or change the orientation of the web vr camera programmatically. I am using the WinMR controllers. The base codes are from the sponza/mansion teleportation where we can change the camera position. I wonder if it's possible to change the camera orientation using thumbstick as well (like teleportation in the cliff house). Setting the camera's rotation (x, y, z) does not seem to make any impact. There has to be a way right ? Please help. Thanks
  15. @brianzinn thanks for the feedback. I did try your suggestion. I copied the assets dir (including the meshes dir) onto my local web server. In my local web server's root directory, the file 'assets\meshes\controllers\microsoft\045E-065B\right.glb' or left glb actually exists. Then I set: BABYLON.WindowsMotionController.MODEL_BASE_URL = "/assets/meshes/controllers/microsoft/"; But I am still getting the 404 error, even though the actual path to the .glb file actually exists. Any idea what went wrong ?
  16. @aWeirdo Ah yes I just noticed that too. Thanks for the tip! Now it's working... however the controllers are not showing. Looking at the errors, it looks like it can't download the controller assets ? Any ideas ?
  17. Hello, I was trying the http://playground.babylonjs.com/#E0WY4U#, demo and clicked the 'zip' button to save the source files. I then tried to hit the saved pages using local webserver, but I was getting exception (see the attached file). The generated index.html (also attached here) has the following external references: <title>Babylon.js sample code</title> <!-- Babylon.js --> <script src="https://www.babylonjs.com/hand.minified-1.2.js"></script> <script src="https://preview.babylonjs.com/gui/babylon.gui.min.js"></script> <script src="https://preview.babylonjs.com/cannon.js"></script> <script src="https://preview.babylonjs.com/oimo.js"></script> <script src="https://preview.babylonjs.com/babylon.js"></script> Looks like some GUI type is not defined, I guess the included gui.js is not correct ? Please help. Thanks. index.html
  18. Great, thanks for confirming that. I will look into the sample codes.
  19. Thanks for the reply! Ah yes I did read that great article. But the sample codes seem to be for oculus rift though, not specific to WinMR. I will re-read it again to see if it can be easily adapted for WinMR controller.
  20. Hello, I am new to babylonjs, and have a few questions for the windows mixed reality motion controllers. Are there good babylonjs sample/demo that shows how the controllers can be used ? Ideally the sample codes would show the following: - controller's input like trigger, menu, windows, thumbstick (xy and click), touchpad (xy and click), position and rotation. - using custom controller image (like gun, sword, etc) - teleportation codes. Thanks HoloLite