Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Starting position #2

Open
codecowboy opened this issue Nov 11, 2013 · 10 comments
Open

Starting position #2

codecowboy opened this issue Nov 11, 2013 · 10 comments

Comments

@codecowboy
Copy link

Is there a way to have the panorama initialise on the front image rather than the back? I guess this could be done by re-sorting the image array?

@youami
Copy link
Member

youami commented Nov 11, 2013

I'm not sure I understand what you mean. The "spectator" point is placed in the center of a cube, creating a feeling of the viewer being within the scene. If you'd like to view the scene as a cube from the outside, just translate the viewing point to be outside the scene (more than 512px in any direction) and you'll get a scene "wrapped" on a cube.

@codecowboy
Copy link
Author

When the panorama loads, I would like it to start with the front image, not the back. The spectator will remain in the centre. If you look at http://testing.lukem.co.uk, the page loads with a view of the sun flaring. I would like the page to initialise with this view http://testing.lukem.co.uk/panorama-ally-pally/PANO_20131110_141430.front.jpg. Hope that makes sense
?
On 11 Nov 2013, at 07:17, Alon Rapaport [email protected] wrote:

I'm not sure I understand what you mean. The "spectator" point is placed in the center of a cube, creating a feeling of the viewer being within the scene. If you'd like to view the scene as a cube from the outside, just translate the viewing point to be outside the scene (more than 512px in any direction) and you'll get a scene "wrapped" on a cube.


Reply to this email directly or view it on GitHub.

@youami
Copy link
Member

youami commented Nov 11, 2013

Got it. You mean the initial view of the panorama.
Use the lon and lat parameters to set the intial view to the desired angel, bot horizontally and vertically.
Also, both links load looking at the same view (not the sun flare, but the city view).

@codecowboy
Copy link
Author

Could you give me an example? This, for example, has no effect:

       ``` $('#pano').leanorama({
         /* ... params ... */
            sides : imgSides,
            lon: 180,
            lat: 90
        });```

@ztorage
Copy link
Contributor

ztorage commented Nov 11, 2013

Hi,
I've tested this against your panorama, Setting lat: 90 is useless in your case, but lon: 180 does exactly what you were trying to do.

@ztorage
Copy link
Contributor

ztorage commented Nov 11, 2013

Also, on a sidenote, this panorama doesn't seem to be 360x180. You might want to try these settings instead:

$('#pano').leanorama({
            sides : imgSides,
            lon: 180,
            scale: 2.2,
            limit: { top: 0, bottom: 0 }
        });

@codecowboy
Copy link
Author

Thanks. the lon parameter seems to have no effect on Chrome Canary Version 33.0.1705.0 canary. Setting it to 360 seems to get me what I wanted in Safari. Am on OSX Mountain Lion 10.8.5

@ztorage
Copy link
Contributor

ztorage commented Nov 11, 2013

Sorry for the stupid question, but have you cleared your cache?

@codecowboy
Copy link
Author

yes, tried that - I also just installed the standard Chrome build for Mac (Version 30.0.1599.101) and lon also has no effect

On 11 Nov 2013, at 09:09, ztorage [email protected] wrote:

Sorry for the stupid question, but have you cleared your cache?

Reply to this email directly or view it on GitHub.

@ztorage
Copy link
Contributor

ztorage commented Nov 11, 2013

Don't want to utter the cliche, but it works fine on my machine :) If you'll bug me later today or tomorrow, I will take a closer look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants