Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

Montag, 12. April 2010, 00:34

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

Montag, 12. April 2010, 11:54

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

3

Montag, 12. April 2010, 15:04

This should do. thx. Will try at evening.
One small more: What tool you use for homedesign used in exmple -> map.jpg
»Umalo« hat folgendes Bild angehängt:
  • map.jpg

4

Montag, 12. April 2010, 18:23

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

Freitag, 16. April 2010, 18:24

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

Sonntag, 16. Mai 2010, 14:37

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.

7

Montag, 17. Mai 2010, 22:36

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

Dienstag, 26. Oktober 2010, 08:30

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,