javalang Posted July 9, 2017 Share Posted July 9, 2017 I want to use an ArcRotateCamera where the position and direction of the camera is determined by a parent object like in this rollercoaster playground where the player can additionally look around. So far so good, thaks to the creator @jerome I guess. I'd like to extend this szenario with a barrel distorted stereo output (using cameraRigMode_VR), but parenting the camera to an object (wagon in case of the playground) does not work, stereo output works, but no parenting. Can someone give me a hint please? Thanks in advance Quote Link to comment Share on other sites More sharing options...
javalang Posted July 9, 2017 Author Share Posted July 9, 2017 Uhhhh hard to find but easy solution, answering myself: in case using anyVR-camera (includes using RigMode_VRXXX ) there is an array created with two new cameras instantiated, one for the left and one for the right eye. The solution is: camera.rigCameras[0].parent=<parentobject>; camera.rigCameras[1].parent=<parentobject>; playground Quote Link to comment Share on other sites More sharing options...
Wingnut Posted July 9, 2017 Share Posted July 9, 2017 http://www.html5gamedevs.com/topic/31278-parent-mesh-with-vrdeviceorientationfreecamera/ Ever use forum search? heh. Just havin' fun with ya. Don't take is seriously. Really, thanks for sharing/teaching... I love it. Umm, umm... be sure to read my last post in that thread. I was astral-projecting (out-of-body) when I wrote it, so it was probably being typed by a dead coder, and they are usually much smarter than I. Might be worthy of heeding... but no promises. As best I can tell, it talks about how to avoid having your eyeballs bang-into each other... when looking hard-left/right. Quote Link to comment Share on other sites More sharing options...
javalang Posted July 9, 2017 Author Share Posted July 9, 2017 @Wingnut OMG, the next time I ask you directly!!! Well I take it not seriously, but believe me, I spent a lot of time in searching And you're right, after testing, searching, wearing glasses "you get a brain tumor after 15 minutes of game-play" . Thanks a lot @Wingnut Wingnut 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.