Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
Location: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
Location: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
it seems the rz rotation (camroll or bring ear to shoulder) of the flying is missing since 1.21.
2 barebones to be watched in vr headset:I'm testing the version with my plugin, I'm facing a problem that I don't understand:
in desktop verion, everything is OK, but in VR the different hotspot crees are not positioned correctly, here is an example.
Please try the new pre-release from above.
![]() |
Source code |
1 2 3 4 5 6 7 8 9 10 11 |
<cssstyles> <![CDATA[ .test {} ]]> </cssstyles> <layer name="text1" type="text" text="test 1" x="30" y="30" cssclass="test" css="background-color: #a8a8a8; color: #ff0000; font-family: Times New Roman, serif; font-size: 24px;" /> <layer name="text2" type="text" text="test 2" x="30" y="80" css="background-color: #a8a8a8; color: #ff0000; font-family: Times New Roman, serif; font-size: 24px;" /> |
This post has been edited 1 times, last edit by "ctt360" (Mar 22nd 2023, 9:10am)
Hi Klaus,
Perfect works again, congrats.
Do you have a plan for merge multiple .obj file in same scene?
https://products.aspose.app/3d/merger/obj like this idea? but editor will be krpano.
Thanks.
![]() |
Source code |
1 2 3 4 |
<layer name="test" type="text" align="top" html="looktohotspot(hs1)" onclick="looktohotspot(hs1); showlog(true)"/> <hotspot name="hs1" url="red.png" ath="-50" /> |
This post has been edited 1 times, last edit by "San7" (Mar 18th 2023, 7:50am)
Good morning San7![]()
Confirmed. I had this also in the first preview of 1.21, but somehow forgot to report it.
Just add a second parameter (fov) to work around it for now... Does break compatibility with 1.20 though as there it seems to work without adding parameters.
gr,
K.
![]() |
Source code |
1 2 |
window.krpano.set(`hotspot[name].onhover`, () => { window.krpano.set(`hotspot[name].bgborder`, '50 0xFF0000 1.0 dashed') }); window.krpano.set(`hotspot[name].onout`, () => { window.krpano.set(`hotspot[name].bgborder`, '') }); |
I create an image hotspot with
...
hotspot[name].bgborder`, '50 0xFF0000 1.0 dashed'
...
the result is the hotspot is only bigger everytime it's hover and no border display at all,
the extra size is exactly equal to the border size.
Hi,the bgborder setting isn't supported for WebGL 'image' hotspots yet.
Currently only layers, CSS3D-hotspots and textfield-hotspots (WebGL and CSS3D) are supporting it.The layout/size-calculation is already done, but the WebGL-hotspot-rendering doesn't draw the borders yet.
But this is in works and will come in one of the next versions.Best regards,
Klaus
i have tested the new preview-2 and I have new error - padding did't work with my tooltips anymore (no problems with preview-1)
in 1.21 (2023-03-16) some properties from the 'css' attribute are not applied to text layers when the 'cssstyles' attribute is set (it worked as expected in 2023-02-09). Some properties like 'background-color' work, but others like 'color', 'font-family' and 'font-size' are filtered.
WARNING: lookto() - invalid parameters!
![]() |
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
<layer name="test1" type="text" align="top" x="-30" html="on infohs" onclick="hid_show_hs(1)"/> <layer name="test2" type="text" align="top" x="30" html="off infohs" onclick="hid_show_hs(0)"/> <hotspot name="infohs" keep="true" type="image" url="i.png" /> <hotspot name="hsp_1" type="image" url="arrov.png" ath="-30" /> <action name="hid_show_hs" scope="local" args="stat" > for(set(i, 0), i LT hotspot.count, inc(i), copy(hs, hotspot[get(i)]); if(hs.name == 'infohs', trace(hs.name); tween(hs.alpha, get(stat)); ); ); </action> |