VictorF Posted November 30, 2018 Share Posted November 30, 2018 My final intention is to create something like Marzipano (http://www.marzipano.net/) then why I don't want to use Marzipano itself? since I want to introduce 3d elements and so. I'll post lots of questions in this topic some of them will be replied by me when I archive to do the work and hopefully other people will contribute (without that people I'm sure I won't be able to do it!) First part the cameras: here is the base code: https://www.babylonjs-playground.com/#2MDWH7 that is a modified version of a code I've found in the forums but cannot locate no more so I cannot give proper credits to the author It has right now some initial problems: Zooming in a mobile device, I introduced zoom with the mouse wheel for computers but I still need to figure how to deal with two finger zooming in mobile devices (probably this is a good start http://www.html5gamedevs.com/topic/15369-panning-and-support-for-click-event-on-line-in-babylonjs/?page=2 ) first test made: https://www.babylonjs-playground.com/#2MDWH7#1 Mixing mobile orientation with drag-drop rotation, currently after onPointerUp and inertia is empty the mobile orientation takes the control again but it resets to the original orientation instead continue the current orientation. The same in VR mode. Second part resources: (code to come) If you need several cubemaps how to deal with the loading? It should be asynchronous? loading on demand? Can you use multi-resolution cubemaps like in Marzipano? The journey starts and I hope that I could design a functional solution. Wingnut 1 Quote Link to comment Share on other sites More sharing options...
Wingnut Posted November 30, 2018 Share Posted November 30, 2018 Coool! Hi VF! Be sure to search the forum and playgrounds for 'panorama' and 'equirectangular' and fun things like that. PG search for latter... https://doc.babylonjs.com/playground/?code=equirectangular A few returns. I dunno much about VR, but I love texture-on-a-sphere (a bit different from skyboxes) https://www.babylonjs-playground.com/#14KRGG#18 A "photoDome"? I never knew about that one. https://www.babylonjs-playground.com/#23IQHK#3 That is an equi-rectangular on a skybox. https://www.babylonjs-playground.com/#HH1U5#88 That's an 'equi-dome' that I used, once, while testing anim utils. ------------- I'm only providing some possibly-useful links. I dunno about ANY of those fancy/difficult questions you asked. Sorry. Stay tuned for more/wiser comments. Quote Link to comment Share on other sites More sharing options...
Sebavan Posted November 30, 2018 Share Posted November 30, 2018 About the second part : If you need several cubemaps how to deal with the loading? It should be asynchronous? loading on demand? You could load them as texture This would be asynchronous and you can use the onLoad callback to detect the end of the loading sequence. Can you use multi-resolution cubemaps like in Marzipano? Yes you can load the smaller res 1st for fast loading and once the bigger res have been loaded, you could swap the texture on demand I bet @trevordev who loves VR might have more insights on the rest of the questions. Quote Link to comment Share on other sites More sharing options...
MarianG Posted November 30, 2018 Share Posted November 30, 2018 Hi. I did something similiar here. It should work on VR as well. I think here is the source. Quote Link to comment Share on other sites More sharing options...
VictorF Posted November 30, 2018 Author Share Posted November 30, 2018 Ok I've made my first test of two finger zoom https://www.babylonjs-playground.com/#2MDWH7#1 I had to disable the device orientation control for a while to test it properly Wingnut and trevordev 2 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.