Stripped out the site’s html as best as I could and managed to get the popup showing! Just need to figure out why I can’t close the boxes now. Does this always load a page from a website? Is there a way to have a plain text input with shortcodes [postid=18] [pluginxyzexample]?
The matter is that you cannot just paste a Wordpress shortcode to JS - there should be some JS functions created which will transform your WP IDs into HTML.
I’ve got it working as I need but I wonder if I’ll have the same issue as the highlight layer, where I can only use the mesh as the layer to select rather than the object name. It seemed to only like the mesh names when I tried which would be a show stopper.
It would mean that different buildings with the same mesh would bring the same info up.
The thing is that if it is all instances of a mesh would be highlighted when you highlight this mesh.
Yo may need additional trick, basically the same as with highlight layer (substitute an instance with a clone).
I need to look into this a bit more I think. Trying to get it to work for https://playground.babylonjs.com/#9Z476P#9 this basic model. I have 500 buildings and 50 or so are all duplicate buildings with the same mesh so there’s a lot of duplicates. If this would work that would be perfect. I’m not 100% sure how to implement it as there aren’t too many examples of this use that I’ve found on my first search.
I like the idea, I’ve tried to implement some of the code here but it’s not working (due to my lack of knowledge/coding skills ha). https://playground.babylonjs.com/#9Z476P#10
I definitely need some performance improvement on my main model as it’s running around 4-6 fps atm.
The scene isn’t too big. I had thought about incremental loading with a closer camera but in the end I decided that it would be better if all the buildings where in view.