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.
![]() |
Source code |
1 2 3 4 5 6 7 8 |
<layer name="test" type="text" align="top" html="Test1" onclick="add_layer()" /> <action name="add_layer" > addlayer('hhh', txm); set(txm.type, text); copy(txm.html, 'krpano'); trace(txm.html); </action> |
This post has been edited 1 times, last edit by "San7" (Feb 13th 2023, 4:00pm)
I think you should specify the type of layer and its positionWhy is the layer not being created dynamically, what am I doing wrong?![]()
![]()
Source code
1 2 3 addlayer('hhh', txm); copy(txm.html, 'krpano'); trace(txm.html);
example
![]() |
Source code |
1 2 3 4 5 6 7 8 |
<layer name="test" type="text" align="top" html="Test1" onclick="add_layer()" /> <action name="add_layer" > addlayer('hhh', txm); set(txm.type, text); set(txm.html, 'krpano'); trace(txm.html); </action> |
Location: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
![]() |
Source code |
1 2 3 |
addlayer('hhh', txm); set(txm,type=text,text='krpano'); trace(txm.text); |
I'm already working on that (with maskchildren support).if one day it will be possible to set up a parent hotspot-hotspot then do you have plans to add maskchildren for webgl hotspots?
Thanks!Hi Klaus, people noticed one typo in the Layer documentation: align="lefftop"
It's not a big deal, but it's still a big deal)
Try setting the subdiv setting to 0:I try to 1.21 with my old depthmap project. But look like there is a limit for stl files now. obj files already has this limit before 1.21
![]() |
Source code |
1 2 3 4 |
<image ...> .. <depthmap ... subdiv="0" /> </image> |
![]() |
Source code |
1 |
<depthmap url="%FIRSTXML%/panos/plan.obj" /> |
![]() |
Source code |
1 2 3 4 5 6 7 8 9 10 |
newmtl plan Ns 0.000000 Ka 1.000000 1.000000 1.000000 Kd 0.800000 0.800000 0.800000 Ks 0.000000 0.000000 0.000000 Ke 0.000000 0.000000 0.000000 Ni 1.450000 d 1.000000 illum 1 map_Kd plan.jpg |
![]() |
Source code |
1 |
GET http://192.168.1.24:59282/%FIRSTXML%/panos/plan.jpg 404 (Not Found) |
![]() |
Source code |
1 |
<depthmap url="../../panos/plan.obj" /> |
![]() |
Source code |
1 2 3 4 5 6 7 |
<hotspot name="hs1" url="red.png" ath="-20" scale="2" onclick="set(layer[point].parent, hotspot[hs1]);" /> <hotspot name="hs2" url="red.png" ath="20" scale="2" onclick="set(layer[point].parent, hotspot[hs2]);" /> <layer name="point" align="center" url="green.png" /> |
This post has been edited 1 times, last edit by "San7" (Mar 18th 2023, 7:05am)
Quoted from "San7"
and when the text floats close to the edge, it starts to sway quickly, trying not to hide behind the edge of the screen
That's a feature - see the noclip setting, but it shouldn't 'sway'...
Hi Klaus,
Thank you so very much for this upgrade.![]()
However, question: can we now play background sounds on Linux
(reference to my earlier post:
https://krpano.com/forum/wbb/index.php?p…threadID=18639&)?
Because I have downloaded the pre-release version and it looks like it doesn’t work: I got error messages while it works fine when the tour is online.
Kind Regards,
Emmanuel
Do you have an example for testing?Playsound error, only play the first enter the scene, the scene switching is an error, it's 1.20.11 it's work
Hmm... that doesn't look nice, might be related to the new pixel-grid-fitting (intented for sharper texts and edges) but in such case counterproductive... I will check it.Started converting tours with latest release and I have a question about hotspot rendering.
When tweening scale/alpha the result is a bit jerking when rendering in css3d witch is default now.
Here is an example : https://360images.fr/barebone_hs_121/
Is it normal ?
I've noticed that recently too and it's already fixed for the next build.Switched deeplinking to true in the vtourskin.xml and got following error in the console:
WARNING: js() - calling Javascript "history.replaceState(null, document.title, get(adr));" failed: TypeError: Can only call History.replaceState on instances of History [3x]
![]() |
Source code |
1 |
jscall(('history.replaceState(null,null,"'+adr+'");')); |
Thanks, will be fixed in the next build.when a model has an mtl file and the code has "placeholders" in the model path, the browser has an error when loading the testcore specified in the mtl file.
I assume you mean the new autoscrollbars feature - that's only for automatic controlling and sizing the scrollbars, but they will not change the layout of the scrollarea or other layers.However I notice some big diffrence: The Scrollarea even displays the scrollbars when there is nothing to scroll.
This is very counter intuitive and kinda annoying.
![]() |
Source code |
1 |
onoverflowchange="if(hoverflow GT 0, show the scrollbar, adjust the layout..., hide the scrollbar... );" |
Thanks for the exampe, that's a bug! Will be fixed.there is a strange resizing happening when I dynamically assign a parent hotspot to a layer.
This happens when the hotspot has a scale different from one.
here is an example , click on hotspots: