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.

1

Saturday, October 21st 2017, 12:17pm

rotating flat pano

I've made a pano for a client and loaded over 100 polygonal hotspots in, and now the client wants it rotated 90 degrees clockwise (changing from portrait to landscape orientation).

Is there any way to rotate the layout of the panorama without having to start again? As I reallllly don't want to have to load all those hotspots again!

Cheers

Tuur

Sage

Posts: 3,120

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

2

Saturday, October 21st 2017, 12:38pm

Hi,

not sure if it will work for your case but i think something with:
image.prealign
and when dynamical also using
updateobject(true,true);
could work.
https://krpano.com/docu/xml/#image.prealign

quick example rotated 90 on Z axis:
http://www.virtualtuur.com/krpano/prealign/1/
http://www.virtualtuur.com/krpano/prealign/1/tour.xml



Hope it helps, *thumbsup*
Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

3

Saturday, October 21st 2017, 1:06pm

Thanks so much for the reply :)

That works at spinning the underlying image, however the hotspots on top don't move so would need redrawing :/

Do you know of any quick way to calculate a 90 degree spin on the hotspot measurements if I have to do it that way?

Cheers,

4

Tuesday, October 24th 2017, 9:49am

Hi,

you could rotate the viewing camera with the 'view.camroll' setting:
https://krpano.com/docu/xml/#view.camroll

Best regards,
Klaus

5

Thursday, October 26th 2017, 4:28pm

Thanks Klaus - that's awesome. However the controls are now all inverted 90 degrees (dragging upwards moves the pano to the right), along with a few other bugs to do with position and lookatmax/mins. I might just have to suck it up and redraw all the hotspots from scratch, though if you have a solution to the inverted controls that would be great to know :)

Thanks!