aframe - WebVR A-frame: Recommended way to build scenes -


i have requirement build multiple scenes in web vr a-frame. each scene have button when clicked, load new scene different background. recommended way build scenes in a-frame?

  1. create 1 scene , swap entities @ runtime. each entity can correspond button, background, etc.
  2. create multiple pages(eg. index.html), each having own scene , load each page on click event.

approach (1) seems preferred 1 second approach mean 'back' button in browser enabled on loading new pages, undesirable , affects user experience in vr.

can confirm approach (1) preferred?

definitely better experience if can keep in "single-page app" (1) , swap out entities. if doing simple swapping background. couple browsers have implemented proper in-vr link traversal, , link traversal ux @ moment non-existent.

https://aframe.io/docs/0.6.0/guides/building-a-360-image-gallery.html


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -