found where !!
bad : if(xml.scene != get(trueId),
good : if(xml.scene != trueId,
:)
found where !!
bad : if(xml.scene != get(trueId),
good : if(xml.scene != trueId,
:)
it's ok, i found a solution,
but i have a WARNING: Unknown function: get [2x]
and i could'nt find where the line is , any function for that in showlog ?
Hi Klaus, after 1.20 update , i have a black screen , console returns no error, everything is loading except the images scene...
and trace show me nothing (i'm using an old license) :
INFO: krpano 1.20 (build 2019-09-02)
INFO: HTML5/Desktop - Chrome 76.0 - WebGL
INFO: Registered to: PREVISITE (old license)
true, with NaN , it's ok !! Thank you ! :)
where are you defined y and with what ?
i have created a do_camera_object_hittest based on do_object_hittest when i rollover rollout object !
the objects are a shape with extruding options * by number of hotspots (and replace them) !
its a simple raycast from camera not from mouse :)
@jj
I have made my own 3D arrows with three.js and i have an issue in vr with last version : viewport vertical camera bug, any solution ?
( i found that migration guide : https://github.com/mrdoob/three.js/wiki/Migration-Guide)
Hello,
If I use values beyond 180 hlookatmax and -18O hlookatmin, onautorotateoneround bug, see the ex : hlookatmin="-288" hlookatmax="-44"
there is no detection in this left-right case ! Autorotate still works, but if a set hlookatmax / min in normal value, it works!
I will look that, thx !
the shaders (from a filters plugins) seem to suppress the anti-aliasing effect on the 3d generated by three.js...
someone has an idea ?
When i update three js to latest , krpano webgl generates black screen (no error in console.log),
Is there any plan to update krpano for latest three js ?
Hi , all
Is it possible to exceed the values hlookatmin / max, in order to block the angle ?
in some cases customers require a special angle for example between 180 and 250 or -200 and 10, but hlookatmin / max are limited to -180 / 180
I dont found a solution :(
Hi all, i have a sound issue on chrome (last update?) at start of my tour :
Sound doesn't start automaticaly, but need interact on play sound button
VM182:7 Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first. https://goo.gl/xX8pDD
any solution ?
Hi !
Is it possible to use a post processing shader , without include hotspost ? (and without to render hotspot in css3d)
My filter plugin works but include hotspot.
reverse is possible ? effect on view , not on hotspot ?
added in js
function doTouch(e) { e.preventDefault();
var touch = e.touches[0];
krpano.set('touchX',touch.screenX);
krpano.set('touchY',touch.screenY);
}
krpano.addEventListener('touchstart', function(e) {doTouch(e);}, false);
krpano.addEventListener('touchmove', function(e) {doTouch(e);}, false);
Display More
and do this on my drag function :
<action name="HpFollowMouse" scope="local" args="layerhp, layerplan, rl,boolean"> if(boolean,
if(device.desktop,
screentolayer(get(layerplan),mouse.stagex,mouse.stagey,lx,ly);
,
screentolayer(get(layerplan),touchX,touchY,lx,ly);
);
set(layer[get(layerhp)].x,get(lx));
set(layer[get(layerhp)].y,get(ly));
if(rl,
set(plugin[radar].x,get(lx));
set(plugin[radar].y,get(ly));
);
delayedcall(HpFpFollow,0.01,
HpFollowMouse(get(layerhp),get(layerplan),get(rl),true);
);
,
stopdelayedcall(HpFpFollow);
);
</action>
Display More
because the mouse position only work inside area and not outside area + (layer parent = stage) on mobile :)
ok that's it, if block not parent="STAGE" it works good... but i need parent="STAGE" any solution ?
Hi !
On mobile, the layer don't take the touch position in real time , and stop !
desktop it's works ... any idea ?
<layer name="test" type="text" html="test-drag" edge="center" align="topleft" bg="true" bgcapture="false" capture="true" handcursor="true" selectable="true"
height="20" width="100" vcenter="true" zorder="100" parent="blockFp"
ondown="dragTest(get(name),true);"
onup="dragTest(get(name),false);"
/>
<action name="dragTest" scope="local" args="layerhp,boolean">
if(boolean,
screentolayer(blockFp,mouse.stagex,mouse.stagey,lx,ly);
set(layer[get(layerhp)].x,get(lx));
set(layer[get(layerhp)].y,get(ly));
delayedcall(testFollow,0.01,
dragTest(get(layerhp),true);
);
,
stopdelayedcall(testFollow);
);
</action>
same issue with asyncloop:
<action name="dragTest" scope="local" args="layerhp">
showlog();
asyncloop(global.dragtestlayer,
screentolayer(blockFp,mouse.stagex,mouse.stagey,lx,ly);
set(layer[get(layerhp)].x,get(lx));
set(layer[get(layerhp)].y,get(ly));
);
</action>
on mobile it return the x/y pos of blockFp and stop
layer blockFp is parent="STAGE" and is outside area