text: [{"Owner":"darcome","Date":"2016-03-13T12:22:31Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tHello everyone_co_\n_lt_/p_gt_\n\n_lt_p_gt_\n\tHow do i set the initial lookat or direction or I don_t_t know how to call it of the VRDeviceOrientationFreeCamera?\n_lt_/p_gt_\n\n_lt_p_gt_\n\tHere are 2 examples_dd_\n_lt_/p_gt_\n\n_lt_p_gt_\n\t_lt_br_gt__lt_a href_eq__qt_http_dd_//www.ildema.com/vrdemo/vr.html_qt_ rel_eq__qt_external nofollow_qt__gt_http_dd_//www.ildema.com/vrdemo/vr.html_lt_/a_gt_ and _lt_a href_eq__qt_http_dd_//www.ildema.com/vrdemo/vr2.html_qt_ rel_eq__qt_external nofollow_qt__gt_http_dd_//www.ildema.com/vrdemo/vr2.html_lt_/a_gt_\n_lt_/p_gt_\n\n_lt_p_gt_\n\tthe only thing that changes between the two links is\n_lt_/p_gt_\n\n_lt_div contenteditable_eq__qt_false_qt__gt_\n\t_lt_pre_gt_\n_lt_code_gt__lt_span_gt_this_lt_/span_gt_.camera.setTarget   (_lt_span_gt_new_lt_/span_gt_ BABYLON.Vector3 (-_lt_span_gt_6.7_lt_/span_gt__co_ _lt_span_gt_1.2_lt_/span_gt__co_ -_lt_span_gt_1.3_lt_/span_gt_))_sm__lt_/code_gt__lt_/pre_gt_\n\t_lt_span style_eq__qt_background_dd_url(&quot_sm_//www.html5gamedevs.com/applications/core/interface/ckeditor/ckeditor/plugins/widget/images/handle.png&quot_sm_) repeat scroll 0% 0%_sm__qt__gt__lt_/span_gt_\n_lt_/div_gt_\n\n_lt_p_gt_\n\tin vr.html and\n_lt_/p_gt_\n\n_lt_pre_gt_\n_lt_code_gt_this.camera.setTarget   (BABYLON.Vector3.Zero ())_sm__lt_/code_gt__lt_/pre_gt_\n\n_lt_p_gt_\n\tin vr2.html\n_lt_/p_gt_\n\n_lt_p_gt_\n\tbut when I load them in my iphone the camera points always in the same direction\n_lt_/p_gt_\n\n_lt_p_gt_\n\tCan you tell me what is the right code to use?\n_lt_/p_gt_\n\n_lt_p_gt_\n\tThanks in advance\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"Wingnut","Date":"2016-03-13T14:43:01Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tHi again_co_ Darcome!  I_t_m not very experienced with these things... but... take a look at this...\n_lt_/p_gt_\n\n_lt_p_gt_\n\t_lt_a href_eq__qt_https_dd_//github.com/BabylonJS/Babylon.js/search?utf8_eq_%E2%9C%93&amp_sm_q_eq_metrics_qt_ rel_eq__qt_external nofollow_qt__gt_https_dd_//github.com/BabylonJS/Babylon.js/search?utf8_eq_%E2%9C%93&amp_sm_q_eq_metrics_lt_/a_gt_\n_lt_/p_gt_\n\n_lt_p_gt_\n\tFancy input devices like headsets and orienters... have a _qt_pile of data_qt_ that they _qt_communicate_qt_... called a _qt_metrics_qt_ object.  Goof-around until you can display all the _qt_metrics_qt_ that are set... when you plug-in your orienter/phone.  You may find an .initialViewVector (or similar) metric/property ... existing on the phone_t_s metrics object.\n_lt_/p_gt_\n\n_lt_p_gt_\n\tI could be wrong_co_ but it is one idea to try.  Keep us posted.\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"Deltakosh","Date":"2016-03-13T15:16:03Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tHello!\n_lt_/p_gt_\n\n_lt_p_gt_\n\tIn order to help you_co_ can you try to reproduce your issue in the PG?\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"darcome","Date":"2016-03-13T15:45:04Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\thello deltakosh!\n_lt_/p_gt_\n\n_lt_p_gt_\n\tHere they are_dd_\n_lt_/p_gt_\n\n_lt_p_gt_\n\t_lt_a href_eq__qt_http_dd_//www.babylonjs-playground.com/#2HNDXP_qt_ rel_eq__qt_external nofollow_qt__gt_http_dd_//www.babylonjs-playground.com/#2HNDXP_lt_/a_gt_\n_lt_/p_gt_\n\n_lt_p_gt_\n\tand\n_lt_/p_gt_\n\n_lt_p_gt_\n\t_lt_a href_eq__qt_http_dd_//www.babylonjs-playground.com/#SISOS_qt_ rel_eq__qt_external nofollow_qt__gt_http_dd_//www.babylonjs-playground.com/#SISOS_lt_/a_gt_\n_lt_/p_gt_\n\n_lt_p_gt_\n\tThey are the same except for the camera and in the second I added a cube to be sure on the phone i was loading a different PG\n_lt_/p_gt_\n\n_lt_p_gt_\n\tBut when i load in to the phone_co_ the position of the camera is the same\n_lt_/p_gt_\n\n_lt_p_gt_\n\tThanks in advance for your help\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"Deltakosh","Date":"2016-03-13T18:34:02Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tThis is not a bug but the standard behavior of the vrDeviceOrientationCamera.\n_lt_/p_gt_\n\n_lt_p_gt_\n\tOn first start_co_ the device orientation event is called to get the correct orientation.\n_lt_/p_gt_\n\n_lt_p_gt_\n\t \n_lt_/p_gt_\n\n_lt_p_gt_\n\tIf you still want to force a target_co_ you can use this trick_dd_\n_lt_/p_gt_\n\n_lt_p_gt_\n\t_lt_a href_eq__qt_http_dd_//www.babylonjs-playground.com/#2HNDXP%231_qt_ rel_eq__qt_external nofollow_qt__gt_http_dd_//www.babylonjs-playground.com/#2HNDXP#1_lt_/a_gt_\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"darcome","Date":"2016-03-13T20:08:33Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tI admit I haven_t_t tried it yet_co_ but what I am looking for is the following_dd_\n_lt_/p_gt_\n\n_lt_p_gt_\n\tImagine this use case_dd_\n_lt_/p_gt_\n\n_lt_p_gt_\n\tA virtual tour of a museum... the camera moves automatically through the corridors and the user can look around moving the phone... At a certain moment the camera stops because it is in front of a painting and an mp3 starts with the description of the painting. But the painting is facing RIGHT while the user is facing  LEFT. What I want is to stop the movement of the camera from phone input_co_ and move it to the RIGHT automatically. After that I want to reactivate the phone movements but limit them so the user will always face the painting. After the mp3 has finished_co_ the tour restarts_co_ so the camera will move automatically and the user will be able to look around moving the phone... after a while_co_ another painting is coming and so on....\n_lt_/p_gt_\n\n_lt_p_gt_\n\tHow can I accomplish it?\n_lt_/p_gt_\n\n_lt_p_gt_\n\tI think this would be useful for all sorts of virtual tours...\n_lt_/p_gt_\n\n_lt_p_gt_\n\tThanks in advance for your help\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"Deltakosh","Date":"2016-03-13T20:14:53Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tHehe this is the perfect use case for the new input system!\n_lt_/p_gt_\n\n_lt_p_gt_\n\tYou can disable vr input when you want to control the POV manually_dd_\n_lt_/p_gt_\n\n_lt_pre_gt_\n_lt_code_gt_camera.inputs.removeByType(_qt_FreeCameraVRDeviceOrientationInput_qt_)_sm__lt_/code_gt__lt_/pre_gt_\n\n_lt_p_gt_\n\tor by reference_dd_\n_lt_/p_gt_\n\n_lt_pre_gt_\n_lt_code_gt_camera.inputs.remove(camera.inputs.attached.VRDeviceOrientation)_lt_/code_gt__lt_/pre_gt_\n\n_lt_p_gt_\n\tAnd then restore it_dd_\n_lt_/p_gt_\n\n_lt_pre_gt_\n_lt_code_gt_camera.inputs.addVRDeviceOrientation()_sm__lt_/code_gt__lt_/pre_gt_\n\n_lt_p_gt_\n\t_lt_a href_eq__qt_http_dd_//www.babylonjs-playground.com/#2HNDXP%232_qt_ rel_eq__qt_external nofollow_qt__gt_http_dd_//www.babylonjs-playground.com/#2HNDXP#2_lt_/a_gt_\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"darcome","Date":"2016-03-13T20:35:15Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tSorry to bother you....\n_lt_/p_gt_\n\n_lt_p_gt_\n\tbut I have some questions_dd_\n_lt_/p_gt_\n\n_lt_p_gt_\n\t1) Is it avalaible in 2.3 or in 2.4 alpha?\n_lt_/p_gt_\n\n_lt_p_gt_\n\t2) Where I can find some documentation?\n_lt_/p_gt_\n\n_lt_p_gt_\n\t3) If I remove the vr camera_co_ what camera remains active?\n_lt_/p_gt_\n\n_lt_p_gt_\n\t4) or I have to add two cameras... a FreeCamera and a VrOrientationDeviceFreeCamera_co_ so when i remove the vr camera_co_ the free camera takes its place?\n_lt_/p_gt_\n\n_lt_p_gt_\n\t5) In any case... When I remove the vr camera and move the freecamera.... when I reactivate the vr camera_co_ it takes the current position as its starting position or it moves the camera using global device orientation? What I mean is... let_t_s suppose the user is facing down with the phone.... I remove the vr and move the camera up by 180°_co_ then i reactivate vr... the phone is still facing down... what will happen to the camera? Will it continue to face up_co_ so if I rotate the phone up by 90° the new camera orientation will be 180° + 90° or it will _qt_reset_qt_ to facing down + 90° up movement?\n_lt_/p_gt_\n\n_lt_p_gt_\n\tI hope I_t_ve been clear _lt_img alt_eq__qt__dd_)_qt_ data-emoticon_eq__qt_true_qt_ height_eq__qt_20_qt_ src_eq__qt_http_dd_//www.html5gamedevs.com/uploads/emoticons/default_smile.png_qt_ srcset_eq__qt_http_dd_//www.html5gamedevs.com/uploads/emoticons/smile@2x.png 2x_qt_ title_eq__qt__dd_)_qt_ width_eq__qt_20_qt__gt_ it_t_s not easy to explain in english.... eheheh\n_lt_/p_gt_\n\n_lt_p_gt_\n\tAs usual_co_ thanks in advance for the answers!\n_lt_/p_gt_\n\n_lt_p_gt_\n\t \n_lt_/p_gt_\n\n_lt_p_gt_\n\t \n_lt_/p_gt_\n\n_lt_p_gt_\n\tThanks in advance for your answers!\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"Deltakosh","Date":"2016-03-14T01:55:38Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\t1. Only 2.4\n_lt_/p_gt_\n\n_lt_p_gt_\n\t2. Documentation is under construction (this is a brand new feature) so expect it within a couple of days\n_lt_/p_gt_\n\n_lt_p_gt_\n\t3. None (but in my example you did not remove a camera_co_ just an input method..the camera remains active)\n_lt_/p_gt_\n\n_lt_p_gt_\n\t4.This is also a solution but less elegant than mine _lt_img alt_eq__qt__dd_)_qt_ data-emoticon_eq__qt_true_qt_ height_eq__qt_20_qt_ src_eq__qt_http_dd_//www.html5gamedevs.com/uploads/emoticons/default_smile.png_qt_ srcset_eq__qt_http_dd_//www.html5gamedevs.com/uploads/emoticons/smile@2x.png 2x_qt_ title_eq__qt__dd_)_qt_ width_eq__qt_20_qt__gt__lt_/p_gt_\n\n_lt_p_gt_\n\t5.this is why removing only input methods is better\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"darcome","Date":"2016-03-14T18:29:04Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tGood! I hope to see documentation as soon as possie_co_ because I_t_m eager to try this new input method _lt_img alt_eq__qt__dd_)_qt_ data-emoticon_eq__qt_true_qt_ height_eq__qt_20_qt_ src_eq__qt_http_dd_//www.html5gamedevs.com/uploads/emoticons/default_smile.png_qt_ srcset_eq__qt_http_dd_//www.html5gamedevs.com/uploads/emoticons/smile@2x.png 2x_qt_ title_eq__qt__dd_)_qt_ width_eq__qt_20_qt__gt__lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"Deltakosh","Date":"2016-03-15T02:12:41Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tHere is the doc_dd_ _lt_a href_eq__qt_http_dd_//doc.babylonjs.com/tutorials/19._Customizing_Camera_Inputs_qt_ rel_eq__qt_external nofollow_qt__gt_http_dd_//doc.babylonjs.com/tutorials/19._Customizing_Camera_Inputs_lt_/a_gt_\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"darcome","Date":"2016-03-15T06:03:27Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tThank you very much Deltakosh!\n_lt_/p_gt_\n\n_lt_p_gt_\n\tI_t_ll try it ASAP!\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"darcome","Date":"2016-03-15T07:56:13Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tHello Deltakosh_co_\n_lt_/p_gt_\n\n_lt_p_gt_\n\tI tried these PGs\n_lt_/p_gt_\n\n_lt_p_gt_\n\t_lt_a href_eq__qt_http_dd_//www.babylonjs-playground.com/#7WKBJ_qt_ rel_eq__qt_external nofollow_qt__gt_http_dd_//www.babylonjs-playground.com/#7WKBJ_lt_/a_gt_\n_lt_/p_gt_\n\n_lt_p_gt_\n\tand\n_lt_/p_gt_\n\n_lt_p_gt_\n\t_lt_a href_eq__qt_http_dd_//www.babylonjs-playground.com/#DZTQH_qt_ rel_eq__qt_external nofollow_qt__gt_http_dd_//www.babylonjs-playground.com/#DZTQH_lt_/a_gt_\n_lt_/p_gt_\n\n_lt_p_gt_\n\tbut when viewed with a phone_co_ I obtain the same result_co_ despite of the different setTarget...\n_lt_/p_gt_\n\n_lt_p_gt_\n\tWhat am I doing wrong?\n_lt_/p_gt_\n\n_lt_p_gt_\n\tThanks in advance for your help\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"jerome","Date":"2016-03-15T08:30:32Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tCongrats\n_lt_/p_gt_\n\n_lt_p_gt_\n\tEvery new feature is always a good surprise\n_lt_/p_gt_\n\n_lt_p_gt_\n\tEvery new doc about a new feature is always a damn good surprise _lt_img alt_eq__qt__dd_D_qt_ data-emoticon_eq__qt_true_qt_ height_eq__qt_20_qt_ src_eq__qt_http_dd_//www.html5gamedevs.com/uploads/emoticons/default_biggrin.png_qt_ srcset_eq__qt_http_dd_//www.html5gamedevs.com/uploads/emoticons/biggrin@2x.png 2x_qt_ title_eq__qt__dd_D_qt_ width_eq__qt_20_qt__gt__lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"Deltakosh","Date":"2016-03-15T23:07:14Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tI think I misunderstood your ask. As long as you attachControl_co_ the VrDeviceOrientation will align with the device orientation info NO MATTER what you defined as a target before.\n_lt_/p_gt_\n\n_lt_p_gt_\n\t \n_lt_/p_gt_\n\n_lt_p_gt_\n\tBut you can hijack the system like this_dd_ _lt_a href_eq__qt_http_dd_//www.babylonjs-playground.com/#DZTQH%232_qt_ rel_eq__qt_external nofollow_qt__gt_http_dd_//www.babylonjs-playground.com/#DZTQH#2_lt_/a_gt_\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"}]