You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

mindlessboss

Professional

  • "mindlessboss" started this thread

Posts: 1,081

Location: Russia, Kaliningrad

  • Send private message

1

Thursday, June 2nd 2011, 5:24am

Automatic Map (XML plugin)

Hi!
I want to represent you automap XML plugin.
Made for easy creating map for virtual tours.
DEMO
just add this code and map wil apear automaticaly:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<include url="%CURRENTXML%/automap/automap.xml" />
<map name="map1"
    map="%CURRENTXML%/map_images/map.jpg"
    mask="%CURRENTXML%/map_images/mapmask.png"
    radar_alpha="0.5"
    onclick="switch(map[map1].scale,1,0.2); tween(plugin[map1].scale,get(map[map1].scale), 0.3);"
>
    <viewpoint name="p1" scene="liv" x="182" y="75" heading="-10" scale="1"
           mask="%CURRENTXML%/map_images/maskliv.png"
           onclick="gotoscene(liv);" onhover="showtext(Living,maponhovertext);" 
    />

    <viewpoint name="p2" scene="kit" x="290" y="54" heading="10" scale="1"
           mask="%CURRENTXML%/map_images/maskkit.png"
           onclick="gotoscene(kit);" onhover="showtext(Kitchen,maponhovertext);"
    />
    
    ......


</map>

full list of available attributes:
keep="true"
editmode="false"
edge="righttop"
align="righttop"
x="10" y="10"
path="%CURRENTXML%/automap/"
map="%CURRENTXML%/map_images/map.jpg"
mask="%CURRENTXML%/map_images/mapmask.png"
zorder="1"
scale="1"
alpha="1"
radar_alpha="0.5"
point_url="%CURRENTXML%/map_images/viewpoint.png"
point_crop="32"
onclick="switch(map[map1].scale,1,0.2); tween(plugin[map1].scale,get(map[map1].scale), 0.3);"
viewpoint_auto="false"
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

mindlessboss

Professional

  • "mindlessboss" started this thread

Posts: 1,081

Location: Russia, Kaliningrad

  • Send private message

2

Thursday, June 2nd 2011, 5:38am

One more thing...

1) You can add more than one map in one tour. (for different levels for example)
2) Add viewpoints automaticaly (from scene node attributes)
3) Each radar can have own mask
4) Each radar can be scaled
5) Map own mask
6) Map has EDIT MODE - shows X/Y and radar heading for current scene (easy to place viewpoints and radar direction)
7) And this is only XML plugin (no swf plugins needed) HTML5 version coming soon

It seems everything *thumbup*

Almost forgot, here you can BUY this plugin.

Andrey!
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

This post has been edited 1 times, last edit by "mindlessboss" (Jun 2nd 2011, 10:06am)


3

Saturday, June 4th 2011, 1:34pm

Nice plugin. The edit mode is really cool! How do you "submit" the changes done in edit mode? Copy them from the XML with the editor plugin?
PanoTag: Facebook tagging for krpano

KRPano development and more: http://www.digisfera.pt/en/development

mindlessboss

Professional

  • "mindlessboss" started this thread

Posts: 1,081

Location: Russia, Kaliningrad

  • Send private message

4

Saturday, June 4th 2011, 6:22pm

Hi! *smile* thanks. It's simple.
Get X and Y and heading, and after that write it in viewpoint attributes.
It can't be done fully automaticaly, and it's little manualy.
EDIT MODE - just for easy detect X/Y/Heading

Andrey *thumbup*
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

abuethe

Beginner

Posts: 21

Location: Geesthacht

Occupation: Systemadministrator

  • Send private message

5

Wednesday, August 17th 2011, 9:20pm

viewpoint_auto="true" on load doesnt activate the first viewpoint

Any ideas how to activate the first viewpoint after loading has completed, i.e. the map is displayed for the first time? gotoscene(xy); afterbuildmap(); just didnt work for me ?!
Thx for a respone - great job so far, the plugin is really usefull!
Regards,

Arndt

mindlessboss

Professional

  • "mindlessboss" started this thread

Posts: 1,081

Location: Russia, Kaliningrad

  • Send private message

6

Thursday, August 18th 2011, 4:55am

Hello!
Show me your xml - i will try to findout why it's not activate.
You can contact me by e-mail mail@atlas-is.ru
after fixing this problem (is it's problem ;-) ) i will post it here

Andrey *thumbup*
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

abuethe

Beginner

Posts: 21

Location: Geesthacht

Occupation: Systemadministrator

  • Send private message

7

Thursday, August 18th 2011, 2:45pm

Yes here we go, I inserted viewpoints instead of using the info from the scenes at the moment - same problem :)

Thx for looking into it!
abuethe has attached the following file:
  • tour.xml (48.72 kB - 58 times downloaded - latest: Nov 20th 2017, 2:13pm)

mindlessboss

Professional

  • "mindlessboss" started this thread

Posts: 1,081

Location: Russia, Kaliningrad

  • Send private message

8

Friday, August 19th 2011, 3:18am

Hello!
Important - buildmap must be in krpano onstart=""
in your xml you put it into onloadcomplete="" event.
First point activate by onloadcomplete :)

Hope it help
Andrey *thumbup*
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

abuethe

Beginner

Posts: 21

Location: Geesthacht

Occupation: Systemadministrator

  • Send private message

9

Friday, August 19th 2011, 10:21pm

Yes that solved it - needs to be the very first action, even before the default startup action is called.. Thx for helping me out, now I can put a lot of maps online with this little problem gone...
Nice support, thx!

abuethe

Beginner

Posts: 21

Location: Geesthacht

Occupation: Systemadministrator

  • Send private message

10

Saturday, August 20th 2011, 10:49am

<Uhh one more thing>

The xml version already work with the ipad - only the radar beams look.. very special :( So I need to get rid of radar when viewed on non-flash devices.. What about the html5 update mentioned above? You´re on it yet?
Kind regards,

Arndt

mindlessboss

Professional

  • "mindlessboss" started this thread

Posts: 1,081

Location: Russia, Kaliningrad

  • Send private message

11

Sunday, August 21st 2011, 5:49am

Hi!
This special radar view becouse the mask is not supported on HTML5 *unsure* this is limitation
And no way to make it as on flash, sorry..

Andrey
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

abuethe

Beginner

Posts: 21

Location: Geesthacht

Occupation: Systemadministrator

  • Send private message

12

Monday, August 22nd 2011, 4:08pm

Mhh after a hard day of trial-and-error I quit trying to get it going by myself. Can you think of a proper way to simply disable the radarbeams when client (isflash=false)? I tried to set radar_alpha to zero and played with the zorder.. Didn´t work for me :(
I think most users of this plugin will need such a solution?
Best regards,

Arndt

mindlessboss

Professional

  • "mindlessboss" started this thread

Posts: 1,081

Location: Russia, Kaliningrad

  • Send private message

13

Monday, August 22nd 2011, 4:31pm

Hi!
i add radar_visible attribute for hide radar on map.

contact me by email mail@atlas-is.ru i will send you new version.

shareit files will update toworow.


Andrey *thumbup*
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

abuethe

Beginner

Posts: 21

Location: Geesthacht

Occupation: Systemadministrator

  • Send private message

14

Tuesday, August 23rd 2011, 10:14am

Thumbs up!

Great support again, with the added switch I can now disable the (html5 non-working) radarbeams for iPad/iPhone with a simple line in automap.xml

if(isflash, set(map[%1].radar_visible,true); );

The map still shows on iPad and the viewpoints are active and functional, only the beams are not visible anymore..

Thanks from a very content customer!

Arndt
*love*

15

Wednesday, September 21st 2011, 6:39pm

Hi!

I have another problem: How can I switch between for ex. 2 maps (for 2 floors)?
Is there any "visible" parameter for map?
Is there any option to auto-change the map according to data in scene node (auto_viewpoint)?

simon

mindlessboss

Professional

  • "mindlessboss" started this thread

Posts: 1,081

Location: Russia, Kaliningrad

  • Send private message

16

Thursday, September 22nd 2011, 6:42am

Hi!
thanks abuethe *smile*
SimonK - about two or more maps


Just make few maps 'map1', 'map2', 'map3' (levels maps)
And for example simple action code

<action name="showhidemaps">
if(%1 == "map1",
set(plugin[map1].visible,true);
set(plugin[map2].visible,false);
set(plugin[map3].visible,false);
);

if(%1 == "map2",
set(plugin[map1].visible,false);
set(plugin[map2].visible,true);
set(plugin[map3].visible,false);
);

if(%1 == "map3",
set(plugin[map1].visible,false);
set(plugin[map2].visible,false);
set(plugin[map3].visible,true);
);
</action>

In scene add this action to onstart event:
If scene belongs to level3, code will be
<scene name="sc1" title="sc1" onstart="showhidemaps(map3);">


Hope it help, and regards

Andrey *thumbup*

PS - about auto-viewpoint, yes, plugin has this feature (look in readme.txt in package)
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

17

Friday, September 23rd 2011, 2:12pm

Thanks a lot!
I've tried to turn off the map using

Source code

1
set(map[map1].visible,false);


so that is why it didn't work :)

simon

18

Wednesday, October 12th 2011, 5:30pm

Disable Radarbeams on iPad

Hello,

I tried to use this code to disable radarbeams in htrml 5 version: if(isflash, set(map[%1].radar_visible,true); );
Unfortunately it didn`t work.

I put it in like this:

<action name="mapdefault">
...
if(isflash, set(map[%1].radar_visible,true); );
...
</action>

Do I have to put it in another place, is there another document to change too, or what went wrong?

Josh

mindlessboss

Professional

  • "mindlessboss" started this thread

Posts: 1,081

Location: Russia, Kaliningrad

  • Send private message

19

Thursday, October 13th 2011, 4:44am

Hello!

try
ifnot(isflash, set(map[%1].radar_visible,false); );
note! - you must to do it before map build

Hope it help

Andrey *thumbup*
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

20

Thursday, October 13th 2011, 2:25pm

Perfect!
Thanks