You are not logged in.

myuhanna

Beginner

  • "myuhanna" started this thread

Posts: 31

Location: USA

Occupation: Professional Photographer

  • Send private message

1

Wednesday, October 28th 2009, 4:28am

How to pass lookto and lookat to another pano

Have a pretty standard virtual tour with multiple panos. Using loadpano in a drop down combo to display various panos.
What is the best way to pass the lookto/lookat parameter to a certain pano so that they load according to the lookto/lookat values whenever selected from the drop down box. I have tried using loadxml with onstart values but it passes the values to the "NEXT" pano that loads.
Currently I have to insert "onstart..." line in the beginning of every xml file that I load. Would like to avoid this
Can anyone please assist. Thanks

2

Wednesday, October 28th 2009, 8:05am

Hi,

just make a lookat() call after the loadpano() call:

Source code

1
loadpano(....); lookat(...);


best regards,
Klaus

myuhanna

Beginner

  • "myuhanna" started this thread

Posts: 31

Location: USA

Occupation: Professional Photographer

  • Send private message

3

Wednesday, October 28th 2009, 9:10pm

Thanks for the response Klaus.
I'm calling the loadpano from combobox. How will lookat() know what pano to set the parameter for? Is there a pano parameter I need to pass to lookat?
This is the code i'm using to setup the dropdown:
<action name="setupitems">
removeall();
additem(Front Yard, loadpano(front.xml,null,KEEPALL,BLEND(1),); );
additem(Foyer, loadpano(pano/foyer.xml,null,KEEPALL,BLEND(1)); );
additem(Living Room, loadpano(pano/livingrm.xml,null,KEEPALL,BLEND(1)); );
additem(Kitchen, loadpano(pano/kitchen.xml,null,KEEPALL,BLEND(1)); );
additem(Master Bedroom, loadpano(pano/masterbr.xml,null,KEEPALL,BLEND(1)); );
additem(Master Bath, loadpano(pano/masterbath.xml,null,KEEPALL,BLEND(1)); );
additem(Lower Level, loadpano(pano/lowerlevel.xml,null,KEEPALL,BLEND(1)); );
additem(Deck View, loadpano(pano/deck.xml,null,KEEPALL,BLEND(1)); );
</action>
Thanks

michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

4

Wednesday, October 28th 2009, 9:44pm

Hi myuhanna,

<action name="setupitems">
removeall();
additem(Front Yard, loadpano(front.xml,null,KEEPALL,BLEND(1),); lookat(atH,atV,fov); );
additem(Foyer, loadpano(pano/foyer.xml,null,KEEPALL,BLEND(1)); lookat(atH,atV,fov); );
.....

More info about lookat(atH,atV,fov)

Salut.