HomefieldOfView | SPi-V dev

Navigation

user

load / unload Images related to scene

Hello!

I have made a tour with several scenes. In the global nodes I have 3 slidemenus, one with a map and a preview image. Hovering hotspot XY shows a preview image in the maps uigroup. Without hovering a hotspot the preview image of the actual scene should be shown. This works when I start the tour. In the "box" the scenes preview, hovering a hotspot the related preview. When I skip to the next scene, their is the preview of the actual scene, but if I hover a hotspot the related preview, the actual preview AND the preview of the scene before appears.

This code is attached to the hotspots; the first three actions are individual, the two actions at the end are the same for every hotspot:

<uielement id="hotspot_06" zorder="3" halign="center" valign="center" hoffset="-108" voffset="80" image="hs_lageplan">
<behavior>
<action event="release" type="setView" scene="scene06" pan="0" tilt="0"/>
<action event="enter" type="setProperty" property="visible" target="vorschau_06" value="true"/>
<action event="leave" type="setProperty" property="visible" target="vorschau_06" value="false"/>
<action event="leave" type="setProperty" property="visible" target="vorschau_12" value="true"/>
<action event="enter" type="setProperty" property="visible" target="vorschau_12" value="false"/>
</behavior>
</uielement>

This code is attached to the maps uigroup:

<uielement id="vorschau_12" zorder="3" visible="true" halign="center" valign="center" hoffset="-210" voffset="50" image="aktuellevorschau"/>

This code is attached to EVERY scene and with individual "src":

<scene id="scene01">
<image id="aktuellevorschau" width="176" height="148">
<layer class="base" type="bitmap" src="vorschau/eingang.png"/>
<layer class="hover" type="bitmap" src="vorschau/eingang.png"/>
<layer class="press" type="bitmap" src="vorschau/eingang.png"/>
<layer class="disabled" type="bitmap" src="vorschau/eingang.png"/>
</image>

What went wrong?

I´ll have a nice day with a little help...THANKS!

Re: load / unload Images related to scene

I am sorry. Without a link I really can not determine what is going wrong.

Re: load / unload Images related to scene

Re: load / unload Images related to scene

First, for almost all of your ui images, you are specifying the same png image for each layer. Don't do that... Due to an 'oversight' (something I have not had a chance to do yet), SPi-V downloads the image again for each layer. The same image also gets uploaded to video memory 4 times. In short: it's a waste of resources.

Why are you changing the blend of vorschau12 on each map hotspot? The 'aktuellevorschau' element should show, not vorschau12. Basically you want 'aktuellevorschau' to be always visible, and when you hover/leave a hotspot, you want the respective vorschau element to show, obscuring 'aktuellevorschau'. When you hide the vorschau again, 'aktuellevorschau' will show again automatically, because it has been underneath all this time.

Finally, instead of changing the 'blend' attribute between 0 and 100, I would change the 'visible' attribute between 'false' and 'true'.