You are not logged in.

Umalo

Professional

  • "Umalo" started this thread

Posts: 1,047

Location: Osijek, Croatia, EU

  • Send private message

1

Monday, April 12th 2010, 12:34am

Radar with multiple masks

Hi

Newbee here, so don't find my questions stupid. There will be probably many good candidates for...

So..I am lerning and stucked trying to make multiple masks for radar plugin.

<plugin name="mapmask" url="map_mask.png" keep="true"
parent="map"
enabled="false"/>

I have map_mask_1.png and map_mask_2.png that should change from Scene1 and Scene2.

Tried example with:

Scene1...

<plugin name="mapmask" url="map_mask_1.png" parent="map" enabled="true" onloaded="updatemask(get(name));" />

..

Scene2...

<plugin name="mapmask" url="map_mask_2.png" parent="map" enabled="true" onloaded="updatemask(get(name));" />

..

<action name="updatemask">
set(plugin[radar].mask, %1);
</action>

but no luck....

Please help or post some xml to learn faster with example of switching masks.

Thanks in advance.

Anton

2

Monday, April 12th 2010, 11:54am

Hi,

the code itself look okay,
do you mask images have an alpha channel?

also take a look the "scenes-with-imagemap" example,
there similar will be done:

http://krpano.com/examples/108b9/example…h-imagemap.html

best regards,
Klaus

Umalo

Professional

  • "Umalo" started this thread

Posts: 1,047

Location: Osijek, Croatia, EU

  • Send private message

3

Monday, April 12th 2010, 3:04pm

This should do. thx. Will try at evening.
One small more: What tool you use for homedesign used in exmple -> map.jpg
Umalo has attached the following image:
  • map.jpg

Umalo

Professional

  • "Umalo" started this thread

Posts: 1,047

Location: Osijek, Croatia, EU

  • Send private message

4

Monday, April 12th 2010, 6:23pm

Thanks for hint. How it is working

In your example: Scene text is dispayed only on first scene. When switching to next scene via hotspots than works ok, but when using mappoint in mapimage/radar than not. What´s the catch. Any alternative to onstart? How to start in anytime scene is called?

<scene name="scene1" onstart="action(startscene);">

<action name="startscene">
showtext(Scene Text, infostyle);
action(activatespot,scene1, 270);
</action>

5

Friday, April 16th 2010, 6:24pm

Hi,

the not showing of the text has a other reason,
at the moment only one text can be shown by the showtext() action,
and here's the hovering text of the map point and will remove the text,

best regards,
Klaus

6

Sunday, May 16th 2010, 2:37pm

ok

i have visited a web site http://www.skydome360.com who have multiple alpha chanel on map with radar.


If you go on http://www.skydome360.com and play with map, you will see the cone of radar is not the same (multiple alpha map) on each scene, and there are two floor plan.

Great work, it makes two weeks that I try to reproduce it without success.

Umalo

Professional

  • "Umalo" started this thread

Posts: 1,047

Location: Osijek, Croatia, EU

  • Send private message

7

Monday, May 17th 2010, 10:36pm

Even newbe I will try to help you.
Key is in changing mapmask in every scene. What I did wrong at the beggining was that my PNG was not correct. I tried to hide layer in PSP when exporting mask in PNG. That was wrong. Now I open main map, create new layer for mask, create selection, fill it with white, delete main layer with map, export mask as png and than undo delete last layer to keep them all in one psd for later usage.

I am updating mask like this:

<!-- SET RADAR MASK -->
set(plugin[mapmask].url,"%HTMLPATH%/images/mapmask_mask1.png" );
action(updatemask);
action(activatespot, mappoint_room1_tour2,180);

Hope this help. If not than gurues will jump in.
regards

8

Tuesday, October 26th 2010, 8:30am

This should do. thx. Will try at evening.

One small more: What tool you use for homedesign used in exmple -> map.jpg

I like to know also how you have created the nice plan in your examples?
 

*whistling* mail: Bludream@gmail.com,