简体   繁体   中英

AFRAME - Overlay scene

I am trying to understand how I could create an overlay menu on top of an A-FRAME scene.

This website illustrates really well what I am trying to do -> https://vr.with.in/

If you click on one of the tiles from the home menu, you will notice that the previous scene is put into background and additional information are put into foreground on top of a semi-transparent overlay.

It will be much appreciated if someone could take me in the right direction. Cheers.

When you click any item, a new entiy with the details is created closer to the camera.

At the same time, you create a sphere around the camera, which imitates "putting" into background:

<a-sphere id="overlay" radius="2" material="opacity:0.4; color: black; side: back"></a-sphere>

Check it out here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM