I have not tried to load a 3D object in a popup.
I did see that there is a new layer type "krpano" which loads a new krpano with... a transparent background
But I don't think the popup example is already adjusted to support this.
So the easiest way to approach this is to set the bgcolor of the pano to transparent: see:
https://krpano.com/docu/embedpano/#bgcolor
So in your HTML:
|
Source code
|
1
2
3
|
<script>
embedpano({xml:"tour.xml", bgcolor:"transparent", target:"pano", html5:"only", mobilescale:1.0, passQueryParameters:"startscene,startlookat"});
</script>
|
I also had to remove all background-color, and other background related attributes from the css style.
You can then inlucde the tour as an iframe like this:
|
Source code
|
1
|
<layer type="text" name="btn" text="popup" onclick="popup('iframe', 'http://localhost/index.html/', 800, 600, true);"></layer>
|
And it will show as transparent
Result:
this is basically loading the tour, and then loading the same tour in a popup :)
To summarize:
- clean your html to leave out any background color settings
- set the bgcolor:"transparent" in the embedpano
- load the tour in an iframe poup
--> the obj is shown in a floating popup!
Let me know if it worked out for you or if you need additional help.
gr,
Kristof