GameMonetize Posted February 24, 2017 Share Posted February 24, 2017 GearVR should work with VRDeviceOrientationCamera Quote Link to comment Share on other sites More sharing options...
juanmajr93 Posted February 24, 2017 Author Share Posted February 24, 2017 hi @Deltakosh I am loading my scene from samsung browser and WebVR API (v 1.1) is the library used to reproduce VR in this browser. If I test the camera that you said me VRDeviceOrientationFreeCamera I can only see over 2d panel (which appears in samsung browser) something like the follow image. Maybe must I code a full screen?? Also if I check this file http://david.blob.core.windows.net/babylonjs/SponzaVR/index.js you can see two declaration of cameras and I dont know what is the chosen camera by GearVR. if (navigator.getVRDisplays) { vrCamera = new BABYLON.WebVRFreeCamera("vrCam", engine.scenes[0].activeCamera.position, engine.scenes[0], false, { trackPosition: true, displayName: "HTC Vive MV", positionScale: 1 }); } else { vrCamera = new BABYLON.VRDeviceOrientationFreeCamera("vrCam", engine.scenes[0].activeCamera.position, engine.scenes[0]); } Although, the result with SponzaVR is the same... two divided screen.. Quote Link to comment Share on other sites More sharing options...
juanmajr93 Posted February 24, 2017 Author Share Posted February 24, 2017 After I test all posibilities my conclusion is that the camera which must be used with GearVR is Babylon.WebVRFreeCamera. However, this type of camera doesn't work with version 1.1 of WebVR API. I hope that this could be resolved early. Quote Link to comment Share on other sites More sharing options...
MrVR Posted February 24, 2017 Share Posted February 24, 2017 23 hours ago, juanmajr93 said: I have read in others topics about BabylonsJS and GearVR with webvrfreecamera and it must work fine. Are there any sample to test in my GearVR with Babylon? I hope that some developers know why doesnt it work? @AB95 @Wingnut I also have tested this demo http://david.blob.core.windows.net/babylonjs/SponzaVR/index.html developed by @davrous and when I active VR I can only see two divided screen Thank! hey man I will be working on this camera this weekend let me know if you still have issues Quote Link to comment Share on other sites More sharing options...
MrVR Posted February 24, 2017 Share Posted February 24, 2017 On 2/20/2017 at 6:30 PM, dbawel said: This is the real deal: https://www.amazon.com/POWER-MOGA-Pro-Electronic-Games/dp/B00FB5RBJM/ref=pd_sbs_63_t_0?_encoding=UTF8&psc=1&refRID=SPS0CX8V0DNMMH3AWQVA DB thanks for the link, I'm getting right now Quote Link to comment Share on other sites More sharing options...
juanmajr93 Posted February 24, 2017 Author Share Posted February 24, 2017 @MrVR this camera only works fine with version 1.0 of API WebVR. The browser of GearVR has 1.1 version of this API so I consider that it is the cause by this doesn't work Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 24, 2017 Share Posted February 24, 2017 @juanmajr93 the WebVRCamera is based on WebVR 1.1. So if the browser of GearVR is 1.1 you should be all fine. Can you just run a bit of JS to alert (navigator.getVRDisplays) ? Just to sure that you have to use the WebVR camera Quote Link to comment Share on other sites More sharing options...
juanmajr93 Posted February 25, 2017 Author Share Posted February 25, 2017 Hi @Deltakosh I have tested this code: if (navigator.getVRDisplays) { navigator.getVRDisplays().then(function (displays) { if (displays.length > 0) { vrDisplay = displays[0]; alert(displays[0].displayName); } }); } If I probe this in my gearVR, it shows me SAMSUNG SM-G920F. What must I know to be sure that I need WebVRCamera? The link to import BabylonJS is that:https://cdn.rawgit.com/BabylonJS/Babylon.js/master/dist/preview release/babylon.js" Maybe is it not the last? Quote Link to comment Share on other sites More sharing options...
juanmajr93 Posted February 26, 2017 Author Share Posted February 26, 2017 Hi all again, these days I have tested many options to manage that WebVRCamera works. I have detected the error in browser of GearVR. It is: Reference error: VRFrameData is not defined Later, I reviewed the babylon.max.js of 2.6 version and in the line 48541 is the error: _this._frameData = new VRFrameData(); This doesnt work in browser of GearVR, maybe do you know the cause? The examples of Three.js works fine with GearVR and use this class too. @davrous @MrVR @Deltakosh Quote Link to comment Share on other sites More sharing options...
davrous Posted February 26, 2017 Share Posted February 26, 2017 We need to spend time stabilizing our WebVR support. Thanks for your feedback. With @RaananW, we're planning to work on VR support in the next weeks. Stay tuned. David inteja 1 Quote Link to comment Share on other sites More sharing options...
RaananW Posted February 26, 2017 Share Posted February 26, 2017 @juanmajr93 Yes, I am going to work on Babylon's WebVR support in the very near future. The bug you are describing might shed some light as to why the current implementation doesn't work - we don't fall back to WebVR 1.0, but Three.js does. VRFrameData is part of the WebVR specifications - https://w3c.github.io/webvr/#interface-vrframedata . We have made a strategic decision back when 1.0 changed to 1.1 to support only the latest version of WebVR. It seems like Samsung's GearVR web browser is still using WebVR 1.0. I found this - https://uploadvr.com/samsung-updates-webvr-support-gear-vr/. The change between 1.0 and 1.1 is, IMO, a change from pre-alpha version to a stabler alpha. It is not 1.1, it is more of a 2.0 for me. They use different classes and different concepts. I will, however, say this - if I find and easy way to fall back to WebVR 1.0, I will do my best to support it in Babylon.js. I just don't want to get too much into "hacks" and spaghetti code in order to support a version that will be gone from the (VR) world in a few months. inteja 1 Quote Link to comment Share on other sites More sharing options...
dbawel Posted February 27, 2017 Share Posted February 27, 2017 Start with NOT plugging into the USB of the GearVR and use the browser of your choice using the VRDeviceOrientationCamera. Then work from there to access the sensor in the GearVR. But first get a simple scene in crappy 3D. And I only say this as current VR is about to change to real AR/VR soon. But there is still a market for Oculus in the next 2 years if you have compelling content. DB Quote Link to comment Share on other sites More sharing options...
RaananW Posted February 27, 2017 Share Posted February 27, 2017 34 minutes ago, dbawel said: But first get a simple scene in crappy 3D. What exactly is crappy 3D? How does it compare to the non-crappy one? Quote Link to comment Share on other sites More sharing options...
dbawel Posted February 27, 2017 Share Posted February 27, 2017 @RaananW - I'm glad you asked. Light field projectors on a molecular scale will be released in 2 years. Oculus and existing other crappy (and I mean this in the best possible way) will die a fast death, as the new technology is realistic light projection directly onto the retina of the eyball. This is not sciece fiction, as I work with Weta directly and have seen it working well. It's simply a matter of mass producing, and to add to this, Luckey Palmer used to be my PA, and took what we we developed for Lockheed Martin and made a fortune. Not to blame him, but there's nothinng new in VR to date. But very soon there will be a seachange in AR/VR. DB Quote Link to comment Share on other sites More sharing options...
RaananW Posted February 27, 2017 Share Posted February 27, 2017 Warning, personal opinion! @dbawel - let me first say - I believe you. New and better technology is already available. And it will arrive pretty soon! But from this to calling the current technology crappy? ... I know you are glad I asked, you really wanted to write the last paragraph. Let's just stop developing! WebGL 2.0 will soon be available, so why bother with WebGL 1.0? I say - stop using Babylon.js as a whole. It is using crappy technology. It is also using ES5. And callbacks! Ancient technologies. Better yet, I heard ES7 is coming pretty soon as a standard, so - let's just wait and not use javascript until then. We are always evolving. And the reason we are evolving is because we are learning. No Matter what we are using. The person who masters WebVR now, will be able to use this technology with better hardware in the future. People who wait and say "well, this is crappy" - they won't. dbawel and inteja 2 Quote Link to comment Share on other sites More sharing options...
inteja Posted February 27, 2017 Share Posted February 27, 2017 Some people will find fault with everything, no matter how fantastic it is (and Babylon.js is fantastic). There's always something better just round the next corner - it's the refrain of perfectionists everywhere. Perfection doesn't exist so it's impossible to ever be fully satisfied. I'm not picking on @dbawel here. I say this as a recovering perfectionist myself dbawel 1 Quote Link to comment Share on other sites More sharing options...
dbawel Posted February 27, 2017 Share Posted February 27, 2017 My apologies if I offended anyone. I'm personally developing for several VR / AR devices, and recommend everyone else to try thier hand at it; as much of the dev process will be similar. The only reason I mentioned the word "crappy", is that there is nothing new about this technology in over 10 years time, and I get a headache using the current devices. They are not truly 3D in any way, and simply trick the brain to sort of believe it's a 3D environment. But I'm working on these anyway, as I've been for many years. DB RaananW and GameMonetize 2 Quote Link to comment Share on other sites More sharing options...
MrVR Posted February 27, 2017 Share Posted February 27, 2017 Hi man how are you @dbawel I purchase the MOGA, (it came with the R2 button broken btw ) , and I install the app but it does not show as its connected with the Bluetooth but I can not make it work on the browser , is there something IM missing, I even read the instructions jaja but I still not figure it out how to make it work hey @MackeyK24 let us know how you connect yours when you get it thanks Quote Link to comment Share on other sites More sharing options...
dbawel Posted February 28, 2017 Share Posted February 28, 2017 @MrVR- Perhaps you received a defective contoller. Akways use mode A to connect, and there are no issues I've personally found using the GearVR Pro. Also connect using bluetooth after your GearVR and/or Oculus app is loaded. If I can be more help, please let me know. this is simple to fix if you have any issues. DB Quote Link to comment Share on other sites More sharing options...
MrVR Posted February 28, 2017 Share Posted February 28, 2017 1 hour ago, dbawel said: @MrVR- Perhaps you received a defective contoller. Akways use mode A to connect, and there are no issues I've personally found using the GearVR Pro. Also connect using bluetooth after your GearVR and/or Oculus app is loaded. If I can be more help, please let me know. this is simple to fix if you have any issues. DB Ok yes on the Gear VR it connects thanks Quote Link to comment Share on other sites More sharing options...
chicagobob123 Posted February 28, 2017 Share Posted February 28, 2017 The Gear VR is a pain to work with because of the $ they made it such a closed system. Quote Link to comment Share on other sites More sharing options...
dbawel Posted March 1, 2017 Share Posted March 1, 2017 @chicagobob123 - It's not a closed system - simply either use the Samsung browser or don't plug into the USB port at all. All of your Samsung sensors are accessible without launching the Oculus app. And then you can use any browser you like. DB Quote Link to comment Share on other sites More sharing options...
chicagobob123 Posted March 3, 2017 Share Posted March 3, 2017 think about it. You have to turn it into google cardboard to work around it. No USB no head tracking, All things they could feed into the browser and open up a huge 3D webgl game market. But eh.. Quote Link to comment Share on other sites More sharing options...
juanmajr93 Posted March 3, 2017 Author Share Posted March 3, 2017 @dbawel The most important problem that I have with GearVR is that BabylonJS is not compatible with the API (WebVR) version supported by Samsung browser. If I use the other camera (VRDevice OrientatioFreeCamera) and I stop the VR service of Oculus I can connect to my usb and test it with Chrome. In this example, I have another problem relatives to performance. FPS is so low... How can I improve this? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 3, 2017 Share Posted March 3, 2017 We (Actually @RaananW) are working on a way to support both webvr 1.0 and webvr 1.1 which should fix this issue davrous 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.