Display not full 360 x 180 degrees panorama

kub27
Posts: 2
Joined: Wed Jun 14, 2017 9:48 am

Display not full 360 x 180 degrees panorama

Postby kub27 » Wed Jun 14, 2017 10:01 am

Hi,
I have panorama which covers 360 degrees in the horizontal angle, but does not cover 180 degrees in the vertical angle.
Is there any option to use that images?

Here is my panorama:
http://ags.arcdata.cz/pano/doudlevce_pano_8.jpg

Here is my test application with forge js:
http://ags.arcdata.cz/pano
But my panorama is stretched to 180 degrees in vertical angle.

Thank you for your answer.

Jakub

User avatar
rroux
ForgeJS Team
Posts: 91
Joined: Wed Oct 26, 2016 12:19 pm

Re: Display not full 360 x 180 degrees panorama

Postby rroux » Wed Jun 14, 2017 2:23 pm

Hello kub27,

At this time ForgeJS does not handle partial panoramas, but it should be developed in the future.
What you can do is to make an image that have a 2:1 ratio and fill the blanks with black or any color of your choice.
In you case, the file is 8000 x 938. Just make it 8000 x 4000 and it should be good assuming that you cropped the top and bottom the same amount of pixels!
You can also add limits to the camera to avoid the user to see black areas.
I add a small resolution preview of what you can do in 800 x 400.

Hope this helps, have a nice day!
Attachments
doudlevce_pano_8_2-1_ratio.jpg
doudlevce_pano_8_2-1_ratio.jpg (48.8 KiB) Viewed 1077 times
- Raphaël

kub27
Posts: 2
Joined: Wed Jun 14, 2017 9:48 am

Re: Display not full 360 x 180 degrees panorama

Postby kub27 » Fri Jun 16, 2017 6:44 am

Hi Raphaël,
thank you for your reply.
This is interesting workaround.

It is little bit challenging for images with higher resolution.
The image size grows up a lot and the image is loading slowly, but it works.

Thank you for doing that fascinating framework.

Jakub

User avatar
rroux
ForgeJS Team
Posts: 91
Joined: Wed Oct 26, 2016 12:19 pm

Re: Display not full 360 x 180 degrees panorama

Postby rroux » Fri Jun 16, 2017 8:13 am

Hello Jakub,

We are working on multi resolution tiled panoramas. This will support partial panoramas.
So you will have the perfect solution as soon as we get ready to release this :)

Have a nice day, thanks for your support!
- Raphaël

Who is online

Users browsing this forum: No registered users and 2 guests