Hi all,
Each of my panoramas are in <scene> tags, that I load with loadscene. The thing is I want the scene to load different images depending on a parameter I could provide in the loadscene(). For instance, I have a kitchen, which can be viewed classic, modern, old style...
So my question is: can I modify my actual code below to send a parameter to the scene from loadscene()?
Or do you think I have to write the same code thrice, one for modern, old, and classic style? It would be almost the same code, which is not very nice I think...
my call to loadscene:
my kitchen scene:
Code
<scene name="kitchen" onstart="action(startscene);">
<action name="startscene">
action(activatespot, kitchen, 40);
set(plugin[radar].heading, 0);
</action>
<image type="CUBE">
<left url="../images/kitchen/classic/left.jpg" />
<front url="../images/kitchen/classic/front.jpg" />
<right url="../images/kitchen/classic/right.jpg" />
<back url="../images/kitchen/classic/back.jpg" />
<up url="../images/kitchen/classic/top.jpg" />
<down url="../images/kitchen/classic/bottom.jpg" />
</image>
</scene>
Display More
Thanks a lot!