VictorF

A journey: trying to implement a VR Panorama viewer

Recommended Posts

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:

 

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.