Floating menu is disrupting the lens flare effect in VR Stereoscopic Tour for web and Meta Quest 3

  • Hi all

    Please could someone help me with this issue, I am pulling my hair out.

    I have created a Stereoscopic virtual tour using cube maps, which runs and looks great online and in the Meta Quest 3.

    I have now added a floating pop up menu that follows the user, that works great, taken and adapted from the webvr example from Krpano.

    Some scenes also use the lensflare.js script, that also works amazing. But both wont work together?

    I have attached some screenshots and the code for each. The lensflare code is added into the individual scenes code in the tour.xml, but the code for the floating menu will work in both the tour.xml or the vtourskin.xml. If I remove the code for the menu the lens flares work perfectly, as soon as I add the menu back in the lens flare breaks, with different affects in each scene even though the lens flare code settings are the same?

    I am not a coder but a 3D artist so any help needs to be in layman's terms, I understand it could be to do with using JavaScript and webgl and layering within the scene? If it comes to it the menu works and is more important so could drop the lens flare, but it does help to tour.

    If there are any problems with the code I would like to make it better and more streamlined so please be free to condense. The lensflare is the main issue but some further questions are below. I have cut the code for menu down for posting.

    • Would the paid zFlare Plugin fix the issue, though still a JavaScript?
    • The menu "vr_menu_over" works but the "vr_menu_out" doesn't put the menu back to start depth and stays at the over depth size from then on?
    • Is the action name="vr_menu_setvisibility" doing anything? I change settings but nothing seems happen, is it required?
    • Is the code for the menu better in the vtourskin.xml or tour.xml, or is that just editing preference?
  • One update, I have managed to condense the

    • "vr_menu_over"
    • "vr_menu_out"
    • "vr_menu_setvisibility"

    right down and get the over and out to rollover and change size, but no luck yet with the lensflare?

  • Hi Klaus

    I am using the latest version 1.23.3, with the Lensflare free plugin. I have stripped out the scene and uploaded two versions, one with the pop up menu and one without so you can see the difference. I tried setting exposure to false but no change in the bokeh effect.

    krpano - Without Pop Up Menu

    krpano - With Pop Up Menu

    There is no difference in code only the pop up added to the vrtourskin.xml

    I only assume it must be a conflict with how the lensflare plugin works. I have since built a custom image driven lensflare which is adequate but not ideal in comparison.

    Regards

    James

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!