Page 1 of 2

RE fix for "clear dom hotspots between scenes?" issue

Posted: Fri Nov 17, 2017 4:32 pm
by sstgerma
I am using a version of forge with a hotfix to address dom hotspots displaying when the scene is changed. I have not yet identified the pattern exactly but the dom hotspots are not appearing consistently. One case I found is if I landing on main page and go two scenes away without clicking any dom hotspots on the way the hotspots are not showing unless I reload the page. I thought maybe this was due my edits but if I reload the page in question (ie object/forge#1200-calder&uid=scene-1200-calder) the dom hotspots appear and work. If this is something that could be tweaked that would be most appreciated as these spots are critical to my project. Thank you!

Re: RE fix for "clear dom hotspots between scenes?" issue

Posted: Mon Nov 20, 2017 3:01 pm
by rroux
Hi,

I'll try to reproduce your issue asap :)
If you have an online project you can PM me the address.
How do you "go two scenes away without clicking any dom hotspots" ?

Have a nice day !

Re: RE fix for "clear dom hotspots between scenes?" issue

Posted: Mon Nov 20, 2017 5:53 pm
by sstgerma
Just sent PM with info on how to reproduce this. Thanks very much for checking into it!

Re: RE fix for "clear dom hotspots between scenes?" issue

Posted: Tue Nov 21, 2017 10:43 am
by rroux
Thanks, I'm on it :) Investigating

Re: RE fix for "clear dom hotspots between scenes?" issue

Posted: Tue Nov 21, 2017 2:52 pm
by rroux
Hi sstgerma,

Can you isolate the problem in a smaller project in order to be reproduced ?
Something with one hotspot per scene on a two or three scenes project ?
This could help to identify the issue.

Thanks

Re: RE fix for "clear dom hotspots between scenes?" issue

Posted: Wed Nov 22, 2017 7:15 pm
by sstgerma
Raphael,

Thanks for checking into this. I made a small project with a few scenes and a handful of dom hotspots. In this small example ... it works: I can go from main scene to second scene then onto third and the dom hotspots display and work. In my project there are lots of hotspots and a number of the spots are making ajax calls to an API, a database and iframes for sketchfab and youtube and there are many more scenes. I am seeing some errors/warnings in the browser console:

Uncaught ReferenceError: $ is not defined
at forge:65
three.r86.custom.min.js:166 THREE.WebGLRenderer 86
forge.min.js:4 [ForgeJS] FORGE.RenderDisplay: missing api navigator.getVRDisplays (@1705.32ms)
fa @ forge.min.js:4

I am not sure the best way to proceed. I don't think I have an open tag since my IDE typically highlights these and page works on reload. I may try to add a standard hotspot that reloads the page so I could show the spots if/when they don't show up.

Re: RE fix for "clear dom hotspots between scenes?" issue

Posted: Mon Nov 27, 2017 2:28 pm
by sstgerma
In case it is helpful I noticed that when I reload the scene before clicking to the one with all the hotspots (that are not showing up without reload the page) that they appear.

Re: RE fix for "clear dom hotspots between scenes?" issue

Posted: Mon Nov 27, 2017 2:52 pm
by rroux
I don't think that the " FORGE.RenderDisplay: missing api navigator.getVRDisplays " is important. It is just a warning that tells you that you can't access to VR with an oculus or HTC vive with your current web browser for example.

Can you add features after features to your project to know which one is causing the issue ?

Re: RE fix for "clear dom hotspots between scenes?" issue

Posted: Mon Nov 27, 2017 7:36 pm
by sstgerma
Raphael,

It is not an issue that is isolated to a single page. The landing page of the app has a couple dom hotspots. They always work however if I go to any other scenes no hotspots show. If I click off the landing page and reload the page all the hotspots on all the other pages work for a while. Is there anything in the fix that was implemented that might address this? If it were isolated to a single scene or scene not working I could see systematically removing and adding elements might help.

Re: RE fix for "clear dom hotspots between scenes?" issue

Posted: Mon Dec 11, 2017 4:44 pm
by rroux
Any news regarding your hotspot issue ?