hello!
At startup open cube:
<preview type="grid(cube,16,32,512,0xCCCCCC,0xF6F6F6,0x999999);" />
I want to make that by clicking on the button, I redirected to this cube
whether it can be done through the command onclick="" and how?
hello!
At startup open cube:
<preview type="grid(cube,16,32,512,0xCCCCCC,0xF6F6F6,0x999999);" />
I want to make that by clicking on the button, I redirected to this cube
whether it can be done through the command onclick="" and how?
Hi,
there are several possibilities,
e.g. make a scene with only that preview pano and load it:
<scene name="preview">
<preview type="grid(cube,16,32,512,0xCCCCCC,0xF6F6F6,0x999999);" />
</scene>
...
<layer ...
onclick="loadscene(preview, null, MERGE, BLEND(0.5));"
/>
Display More
Best regards,
Klaus
xml parsing failed
I'm doing something wrong doing it.
<include url="skin/vtourskin.xml" />
<scene name="preview">
<preview type="grid(cube,16,32,512,0xCCCCCC,0xF6F6F6,0x999999);" />
</scene>
<plugin name="planopen" keep="true"
url="plan.png"
align="topright"
x="15"
y="15"
alpha="0.9"
onclick="loadscene(preview, null, MERGE, BLEND(0.5));"
onhover="set(plugin[name].alpha,1);tween(scale,0.9); showtext('Открыть план техникума', STYLE12);"
onout="set(plugin[name].alpha,1); tween(scale,0.9);"
When your posted code is the exactly the same as in your xml file, then the closing /> for the plugin element is missing.
E.g. just drag the xml into the browser to see what and where the syntax error is.
Additionally have also a look here:
https://krpano.com/docu/xml/syntaxrules/#top
Thank You Klaus. I make. Сan not remove the loader.
when the button is pressed and does not disappear
Hi,
the vtourskin.xml is hidding the loading text on the 'onloadcomplete' event.
And when there is no pano image, that event doesn't get called.
The loading text of the vtourskin will be hidden by this call:
So you could put that into the 'onstart' event of that <scene> - e.g:
<scene name="preview" onstart="skin_showloading(false);">
<preview type="grid(cube,16,32,512,0xCCCCCC,0xF6F6F6,0x999999);" />
</scene>
Best regards,
Klaus
Don’t have an account yet? Register yourself now and be a part of our community!