Starting Little Planet  

Share your tips and tricks here or get help with any Panotour 2.0+ problem!
No bug reports (of any kind) in this forum!
no avatar
TRI60
Member
 
Topic author
Posts: 25
Likes: 0 post
Liked in: 0 post
Joined: Wed Oct 16, 2013 6:32 am
Location: The Netherlands
Info

Starting Little Planet

by TRI60 » Thu Aug 14, 2014 8:16 am

Dear all,
I have a VT of a Golfcourse, which is in total quite big (1,2GB) and I forgot to put on the start parameter for Little Planet with 10sec.
I can rebuild the complete tour and submit that to the customer, but thats to big to do that again.
So, what I need is the (hopefully) 1 xml file that contains the spec's to start the Little Planet including the 10sec duration.
If I have that, I only need to submit that file to the customer.

Please help and thanks in advance.

no avatar
benji33
Kolor Team
 
Posts: 5848
Likes: 92 posts
Liked in: 199 posts
Joined: Tue Apr 09, 2013 10:59 am
Location: France
Info

Re: Starting Little Planet

by benji33 » Thu Aug 14, 2014 11:03 am

It's the YOURTOUR_core.xml and the YOURTOUR.xml file too which must be impacted.

In YOURTOUR.xml file change theses lines
Code: Select all
<krpano tour_firststartactiondone="false" />
  <events name="startbehavioursevents" onxmlcomplete="startbehavioursxmlcompleteaction();" keep="true"/>

by
Code: Select all
<krpano tour_firststartactiondone="false" tour_firstlittleplanet="true"/>
<events name="startbehavioursevents" onxmlcomplete="startbehavioursxmlcompleteaction();" onloadcomplete="startLittlePlanetIntroEffect();" keep="true"/>


In YOURTOUR_core.xml file change theses lines
Code: Select all
<krpano tour_firststartactiondone="false" />

  <action name="startbehavioursxmlcompleteaction">
    events.dispatch(onPanoStart);
    ifnot (tour_firststartactiondone,
      events.dispatch(onTourStart);
      set(tour_firststartactiondone, true);
    );
  </action>

  <action name="skipintroaction">

by
Code: Select all
<krpano tour_firststartactiondone="false" tour_firstlittleplanet="true"/>

  <action name="startbehavioursxmlcompleteaction">
    if (skipintro !== null,
      events.dispatch(onPanoStart);
      ifnot (tour_firststartactiondone,
        events.dispatch(onTourStart);
        set(tour_firststartactiondone, true);
      );
    ,
    ifnot (tour_firststartactiondone,
      set(sceneisfull360, false);
      if (scene[get(xml.scene)].full360,
        sub(viewhfov, view.hlookatmax, view.hlookatmin);
        if (viewhfov == 360,
          sub(viewvfov, view.vlookatmax, view.vlookatmin);
          if (viewvfov == 180,
            set(sceneisfull360, true);
          );
        );
      );
      stoptween(view.fov);
      stoptween(view.fovmax);
      stoptween(view.vlookat);
      stoptween(view.fisheye);
      if (sceneisfull360,
       setlittleplanet();
      );
    ifnot (sceneisfull360,
      set(view.fovmax, get(panoview.fovmax));
      set(view.vlookat, get(panoview.v));
      set(view.fisheye, 0.0);
      set(view.architectural, 0.0);
      set(view.stereographic, false);
      set(view.pannini, false);
      set(view.fisheyefovlink, 0.5);
      set(view.fov, get(panoview.fov));
      events.dispatch(onPanoStart);
      ifnot (tour_firststartactiondone,
        events.dispatch(onTourStart);
      );
    );
    set(tour_firststartactiondone, true);
    ,
      events.dispatch(onPanoStart);
    );
    );
  </action>
  <action name="startLittlePlanetIntroEffect">
    if(tour_firstlittleplanet,
      set(sceneisfull360, false);
      if (scene[get(xml.scene)].full360,
        sub(viewhfov, view.hlookatmax, view.hlookatmin);
        if (viewhfov == 360,
          sub(viewvfov, view.vlookatmax, view.vlookatmin);
          if (viewvfov == 180,
            set(sceneisfull360, true);
          );
        );
      );
      if (sceneisfull360,
        wait(0);
        fromlittleplanetintrotonormalview();
      );
    );
  </action>
  <action name="setlittleplanet">
    set(view.architectural, 0.0);
    set(view.vlookat, 90);
    set(view.pannini, false);
    if(panoview.fovmax LE 150,
      set(view.fovmax, 150);
    ,
      set(view.fovmax, get(panoview.fovmax));
    );
    set(view.stereographic, true);
    set(view.fisheyefovlink, 1.5);
    set(view.fisheye, 1.0);
    set(view.fov, 150);
    events.dispatch(onStartLittlePlanetIntroduction);
  </action>
  <action name="fromlittleplanetintrotonormalview">
   tweennormalview();
  </action>
  <action name="tweennormalview">
    tween(view.fovmax, get(panoview.fovmax), 10, easeInOutQuad);
    tween(view.vlookat, get(panoview.v), 10, easeInOutQuad);
    if(panoview.fov LE view.fov, tween(view.fov, get(panoview.fov), 10, easeInOutQuad); );
    tween(view.fisheye, 0.0, 10, easeInOutQuad,
      set(view.architectural, 0.0);
      set(view.stereographic, false);
      set(view.pannini, false);
      set(view.fisheyefovlink, 0.5);
      events.dispatch(onPanoStart);
      events.dispatch(onEndLittlePlanetIntroduction);
      if (tour_firstlittleplanet,
        events.dispatch(onTourStart);
        set(tour_firstlittleplanet, false);
      );
    );
  </action>

  <action name="skipintroaction">
Benjamin

no avatar
TRI60
Member
 
Topic author
Posts: 25
Likes: 0 post
Liked in: 0 post
Joined: Wed Oct 16, 2013 6:32 am
Location: The Netherlands
Info

Re: Starting Little Planet

by TRI60 » Fri Aug 15, 2014 6:44 am

Thanks for you quick answer Benji33, this works.

no avatar
TRI60
Member
 
Topic author
Posts: 25
Likes: 0 post
Liked in: 0 post
Joined: Wed Oct 16, 2013 6:32 am
Location: The Netherlands
Info

Re: Starting Little Planet

by TRI60 » Fri Aug 15, 2014 6:50 am

Benji33, I did not create or change these files. I build the tour with the start of the Little Planet and copied those 2 files in the index.data directory to replace the old ones.
And that worked.

User avatar
pbetancourt
Member
 
Posts: 142
Likes: 25 posts
Liked in: 7 posts
Joined: Mon Oct 14, 2013 3:03 pm
Info

Re: Starting Little Planet

by pbetancourt » Sun Oct 19, 2014 1:44 pm

Is there anyway to customize the fov, yaw and pitch for the little planet effect? I would like to start with a custom view rather than the tiny little planet.

Many thanks!

Pablo

no avatar
benji33
Kolor Team
 
Posts: 5848
Likes: 92 posts
Liked in: 199 posts
Joined: Tue Apr 09, 2013 10:59 am
Location: France
Info

Re: Starting Little Planet

by benji33 » Tue Oct 21, 2014 9:15 am

Of course you can but be carreful with the fov value which can break the little planet effect.

Into the setlittleplanet action set your own view.hlookat (to add), view.vlookat (to modify), view.fov (to modify) values.
Benjamin


Who is online

Users browsing this forum: No registered users and 2 guests