Posts by venca.venca

    Hi,

    I would need to render a polygonal hotspot above an iframe hotspot in css3d layer. I've researched this in the documentation and forum, but I didn't find any reasonable explanation for why this is not working. Both hotspots are rendered in css3d using zorder. But for some reason, the iframe is always rendered above the hotspot, it seems there is some other priority in rendering these elements. Is there any way to render the polygonal hotspot over the iframe hotspot?

    Here is an XML:

    Code
    <krpano>
        
        <preview type="grid" />
        <hotspot name="iframeweb01" type="iframe" renderer="css3d" zorder="1" ath="0" atv="0" width="1600" height="1200" scale="0.3" distorted="true" zoom="true" iframeurl="https://www.wikipedia.com/" />
        <hotspot name="polyhs" polyline="true" renderer="css3d" zorder="2" capture="false"  borderwidth="10.0" bordercolor="0xff0000" borderalpha="1">
            <point ath="-30" atv="-30" /> 
            <point ath="30" atv="30" /> 
        </hotspot>
    </krpano>

    Thanks in advance for any ideas.

    Hi,

    Could someone please help me to fix this issue between krpano versions 1.20.11 and 1.21.2?

    I have a “relatively far” iframe hotspot with a webpage in it (zoom=”true”). In krpano version 1.20.11 this was functioning as expected, by width and height you define the resolution of the iframe hotspot and by scale its size (very small in my case). But in version 1.21.2 I am struggling and the iframe-d website is displayed in poor low resolution.

    Here is my XML hotspot code, you can try how it behaves differently with viewer versions 1.20.11 (this is the result I am aiming for) and 1.21.2. I haven’t found any info on this in the release notes.

    Code
    <krpano>
    	
    	<preview type="grid" />
    
    	<hotspot name="iframeweb01" type="iframe" ath="0" atv="0" width="1600" height="1200" scale="0.1" distorted="false" zoom="true" iframeurl="https://www.wikipedia.com/" renderer="css3d" capturewheel="true" />
    	
    </krpano>

    I would need to get this working (high resolution web viewing in hotspot) in version 1.21.2 because of the new functionalities.

    Many thanks in advance.

    Code
    txtsplit(image.depthmap.origin, '|', ox,oy,oz);
    tween(ox|oy|oz, '1|2|3', 0.5, default, null, txtjoin(image.depthmap.origin, '|', ox,oy,oz));

    Hi Klaus,

    I would like to apply the same code on cropping the image hotspot using the tween action. Something like:


    Code
    <hotspot name="myimage" type="image" url="image.png" crop="0|0|50|300" edge="bottom" ... />
    
    <action name="tweencropmyimage" >
    	txtsplit(hotspot[myimage].crop, '|', hotspot[myimage].x-position|hotspot[myimage].y-position|hotspot[myimage].width|hotspot[myimage].height);
    	tween(hotspot[myimage].x-position|hotspot[myimage].y-position|hotspot[myimage].width|hotspot[myimage].height, '0|0|50|150', 3, linear, null, txtjoin(hotspot[myimage].crop, '|', hotspot[myimage].x-position|hotspot[myimage].y-position|hotspot[myimage].width|hotspot[myimage].height));
    </action>	


    In this example, my hotspot image resolution is 50 x 300 px (width x height) and I would like to smoothly crop it by tween action to 50 x 150 px.

    My gut feeling is telling me that the krpano variables hidden in crop="0|0|50|300" are not "x-position|y-position|width|height"

    Could you please help me to identify the correct variables used in the image crop="?|?|?|?"

    Thanks

    Hi, could someone please help me with my novice question?

    I have the following setup: A virtual tour with two scenes, with split screen, both scenes displayed at the same time - scene1 on the left half of the screen and scene2 on the right half. I would like to use the left screen scene (scene1) to control the right scene (scene2). How can I simply call actions from one scene to be performed in another scene? Thanks in advance for your advice.

    something like:

    Good morning, I noticed in other chat threads that the support for multiple depthmaps (.obj 3D objects) is under development. It would be absolutely awesome to get this functionality prepared for simple 3D animations (show/hide individual models, change origin, rotation and scale of individual models by tweening). And thus be able to make basic linear animations such as piston moving in a cylinder, nut screwed on a bolt, etc.

    depthmap.visible would be great for hiding components.

    Thanks

    Hi,

    is there a way to tween composite strings like "x|y|z" ? I have a depthmap (*.obj) and I would like to change its origin (all 3 coordinates at once) using the tween. E.g. from "0|0|0" to "2|-3|1" Something like this ... which obviously doesn't work. Thanks

    Code
    tween(image.depthmap.origin, 'x|y|z', 2);

    Just test a few panos with cube-conversion and without. For doing that e.g. just change the 'converttocube=true' setting in the vtour-multires.config.

    Klaus, is there any rationale behind the "converttocubemaxwidth =60000" https://krpano.com/docu/tools/config/#converttocubemaxwidth I mean the default value 60000px? And are there any limits for "converttocubemaxwidth"? I often work with high resolutions (360x180) above 60000 so I adjusted converttocubemaxwidth to my values in order to get cubes. Is it OK to have it set this to 300000 (as a limit for *.psb resolution)? Now it's working fine for me with 300000 set, but just after the change of the converttocubemaxwidth in the config files I got few error messages in MakeVTour and that made me wonder if there are any limits. Thx


    Venca

    I managed to do it using a modified version of the syncscreen example.
    Basically, I modified the sync.xml to take an array of syncviewers and loop through the array to update the other views:

    Code

    and for the html:

    Code
    embedpano({html5:"only", consolelog:true, basepath:"../../../", id:"pano1viewer",  target:"div1",  xml:"pano1.xml", vars:{syncside:"pano1",syncviewer:"pano2viewer,pano3viewer,pano4viewer"}, passQueryParameters:true});
    		embedpano({html5:"only", consolelog:true,basepath:"../../../", id:"pano2viewer", target:"div2", xml:"pano2.xml", vars:{syncside:"pano2",syncviewer:"pano1viewer,pano3viewer,pano4viewer"}, passQueryParameters:true});
    		embedpano({html5:"only", consolelog:true,basepath:"../../../", id:"pano3viewer", target:"div3", xml:"pano3.xml", vars:{syncside:"pano3",syncviewer:"pano1viewer,pano2viewer,pano4viewer"}, passQueryParameters:true});
    		embedpano({html5:"only", consolelog:true,basepath:"../../../", id:"pano4viewer", target:"div4", xml:"pano4.xml", vars:{syncside:"pano4",syncviewer:"pano1viewer,pano2viewer,pano3viewer"}, passQueryParameters:true});

    Awesome, working fine here, thanks kme, highly appreciated *w00t*

    Hi,

    a good, and relative simple, option is to use the layer type krpano for such.
    https://krpano.com/docu/xml/#layer.type

    I have done this and it works just great.

    Tuur *thumbsup*

    Hi Tuur!
    it seems reasonable to use layers in this case, but how do you then synchronise all the views (in individual layers) in a way that all (in my case 4) views are synchronised and the view can be controlled from any one of them. That's what I have been struggling with, I have been trying to modify sync.xml from https://krpano.com/releases/1.20.5/examples/#js-sync-viewer, but I haven't really sucseeded *pinch* . Thanks

    Venca