This post has been edited 1 times, last edit by "panomaster" (Mar 30th 2021, 3:48am)
Hi,
here an idea how that could done:
- embed the second pano as <layer> with an iframe into the first, size it like the fullpage and make only the size of the layer visible
- create another layer that can be dragged and would resize that layer
- add js to sync the movement between both panos
I will try making such example when I find some time.
Best regards,
Klaus
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
<scene name="scene_AAAAA" title="AAAAA"> <image> <cube url="panos/AAAAA.tiles/pano_%s.jpg" /> </image> <layer name="iframe" url="white.png" align="center" renderer="css3d" onloaded="add_iframe(loadscene(scene_BBBBB, null, MERGE, BLEND(1));" /> </scene> <scene name="scene_BBBBB" title="BBBBB"> <image> <cube url="panos/BBBBB.tiles/pano_%s.jpg" /> </image> </scene> |
This post has been edited 1 times, last edit by "TSchmiesing" (May 20th 2021, 7:37pm)
|
|
Source code |
1 2 3 4 5 6 |
<layer name="iframe2" url="white.png" align="center" renderer="css3d" onloaded="iframe_embed(iframe2, BBBBB, http://sbpanohost.com/Testing/Slider/BBBBB-Only/index.html );" /> |
Hi,
here an idea how that could done:
- embed the second pano as <layer> with an iframe into the first, size it like the fullpage and make only the size of the layer visible
- create another layer that can be dragged and would resize that layer
- add js to sync the movement between both panos
This post has been edited 10 times, last edit by "indexofrefraction" (May 27th 2021, 12:45pm)
https://steelblue.media/Testing/Slider/S…ionK/index.html
krpanoLeftDiv and krpanoRightDiv need fixed widths and you cant use width="900px" for a div, thats for images only.
not all solved with this, yet... but first replace width/height with stlye="width:900px;height:900px;"
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
<div class="wrapper"> <div class="viewersDiv"> <div id="krpanoLeftDiv" draggable="false"></div> </div> <div class="viewersDiv after"> <div id="krpanoRightDiv" draggable="true"></div> </div> <div class="scroller"> <svg class="scroller__thumb" width="100" height="100" viewBox="0 0 100 100"><polygon points="0 50 37 68 37 32 0 50" style="fill:#fff"/><polygon points="100 50 64 32 64 68 100 50" style="fill:#fff"/></svg> </div> </div> |
Great example! Very nice work. Thanks for sharing it.I made some progress today. If I define the pano using a left-justified "area" with defined x/y, then the pano doesn't scale as the slider moves.
I am going to parse through some of the forum posts regarding resizing and pulling the browser data dynamically. I'll likely have some follow-up questions tomorrow.
Current Progress:
https://steelblue.media/Personify/100Altair/WIP/20210603_BeforeAfter/index.html