ian Posted June 20, 2017 Share Posted June 20, 2017 Is there any example/playground how to make arc camera as VR arc camera? Greetings Ian Quote Link to comment Share on other sites More sharing options...
Wingnut Posted June 20, 2017 Share Posted June 20, 2017 Greetings, Ian. https://www.babylonjs-playground.com/#CV4CX#3 (lines 6/7) Take note of the interaxialDistance settings in both lines. More about that... in a moment. Most/All camera "rig modes" are listed here. Do you know about camera "metrics"? [link] (see console for dump of default metrics) Notice that interaxialDistance is NOT a property included-with BABYLON.VRCameraMetrics.GetDefault(). Perhaps others know WHY it is not included, but I don't, sorry. Perhaps interaxialDistance is considered non-standard... available on SOME VR gear, but not in "official" industry-standard metrics specifications. Not sure. Hope this helps. ian 1 Quote Link to comment Share on other sites More sharing options...
ian Posted June 22, 2017 Author Share Posted June 22, 2017 how can we switch between arc an arcVR? How are settings for arc? greetings Ian Quote Link to comment Share on other sites More sharing options...
Wingnut Posted June 22, 2017 Share Posted June 22, 2017 Hi Ian. Check this demo. Line 8... sets rig mode to none. Line 7... sets rig mode to VR. Earlier, I gave you a link to https://github.com/BabylonJS/Babylon.js/blob/master/src/Cameras/babylon.camera.ts It shows all available rig modes. (It was a little link, you might have missed it.) Line 12 of camera.ts... shows the RIG_MODE_NONE option. Perhaps I have misunderstood the question. If so, please explain a bit more. thx. There are MANY things that I don't know... such as.... What is the difference between RIG_MODE_VR and RIG_MODE_WEBVR? Just because we have found a way to "stereograph" an arcCam, does not mean we can control it with head movements sent-from VR head gear. Anyway, notice line 17 of this demo. camera._vrEnabled = false; Likely, this property is NOT AVAILABLE on your VR-rigged arc cam(s). I think this property is for WebVR only, but not sure. WebVR is a browser-related thing... I believe. Read about it here. I think I will ping @davrous and see if he has comments (thx Dav!). He knows lots about cameras and VR. We are "hacking" the arcCam here (forcing it/them to be (somewhat) VR enabled), and there's many things that I am unsure-about. Hopefully, smarter people than I... will comment soon. Quote Link to comment Share on other sites More sharing options...
satguru Posted June 22, 2017 Share Posted June 22, 2017 how about VRDeviceOrientationArcRotateCamera ? http://doc.babylonjs.com/classes/2.5/vrdeviceorientationarcrotatecamera ian and Wingnut 2 Quote Link to comment Share on other sites More sharing options...
Wingnut Posted June 22, 2017 Share Posted June 22, 2017 Yep, yep, yep. Thanks @satguru. Yeah, after thinking about this more, and getting some words from Satguru and DK... it is best to change camera types, and not change rig_modes, Ian. I should NOT have force VR-rigged the arcRotate cam in my earlier PG. That was a bad hack. It is better to switch camera types... than to switch rig modes. Sorry for misleading you down a bad trail. GameMonetize 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.