Skip to content

Unisphere :: Queens, New York City by Sam Rohn.

Click in/on a hotspot to make an image appear

Hi,

I have a panorama of the inside of a small auditorium for a local Japanese traditional dance; I've created a large hotspot that basically covers the stage and a small area in front of it, which is where professional dancers and audience members dance. The performers' area of the panorama is largely empty of people (just one Awa Odori female dancer in the wings). What I want to do--if possible--is allow users to click inside the hotspot to summon a PNG image of dancers and audience mingling. I had thought MouseDown would be good to show the image and MouseUp to again conceal it; however, I cannot figure out how to make an image appear.

At present I have a sprite track that places a white box (the size of the PNG image(s)) right in the middle of the QTVR window, its location fixed to the window, not the viewing angle. I thought I could have the sprite invisible then, on MouseDown inside the hotspot, make the sprite visible and make it show its image. Apparently, I thought wrong.

Leaving the sprite visible, as a white box, if I scroll around inside the QTVR, eventually I reach a point where the sprite's first image appears, distorting as if it were part of the QTVR track itself. Thus the white box glides over the PNG, as if the sprite were binoculars scanning a scene. My guess is that the sprite's image has a reference point location of 20,20, which is being interpreted as 20,20 of the equirectangular image of the QTVR track. But I don't know.

I've also tried to post this same request at the Yahoo! QT group, because I'm in dire need of aid!

Thank you heartily in advance.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Re: Click in/on a hotspot to make an image appear

Ah, here's one way to do it. Under QT 7.3.1, the images appear with mouse down, but only if you drag just a little bit while in/on the hostspot. If this is boring old hat stuff, sorry.

1. Drag an image to the stage/work space. This will automatically create a Picture track. Double-click the track and give it a name, perhaps "Groovy_Pic". Control-click the track and select Disable Track.

2. Double-click the picture track then click the Spatial tab to set the coordinates for where the picture will appear in the window (Left, Top) and its Height, Width.

3. Double-click the QTVR sample to open the VR Editor.

4. Click the Hot Spots button then click on the colored hotspot button you want to use to trigger the action.

5. Click the Scripts button under the colored hotspots.

6. For Mouse Down, type: TrackNamed("Groovy_Pic").ToggleEnabled

7. For Mouse Up, type: TrackNamed("Groovy_Pic").ToggleEnabled