You are not logged in.

1

Friday, January 6th 2012, 10:38pm

Load scene dynamically

I would like to load scene dynamically, i have an image with 10 UIButton and i have 10 panorama images, every button must take me to a specific panorama image. how can i achieve this ?

I've load the panorama using this

Quoted

[webView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"tour" ofType:@"html" inDirectory:@"vtour"]]]];










how can i send an info to the html file that i wanna load a specific panorama image.

thx in advance.

mindlessboss

Professional

Posts: 1,082

Location: Russia, Kaliningrad

  • Send private message

2

Saturday, January 7th 2012, 4:17am

Hi!
Main idea - You can do this throw url and JS krpanoCall.
example:
url - bla.com/tour1?scene=Scene_1
after tour loading call krpano action "loadscene" with scene name from url.

PS - (sorry if i misunderstood something)

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