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.

jl-krp

Intermediate

  • "jl-krp" started this thread

Posts: 140

Location: Bath

Occupation: Panographer - hobby and commercial

  • Send private message

1

Monday, December 14th 2015, 6:29am

interactive spheres

Please take a look at some recent work - circular fisheye projections of spherical panoramas:

john-law.net/projects

I would like to turn these circular fisheye projections into true interactive spheres that the user can roll with mouse or finger, but dont know how to do so. I’m sure I’ve seen examples of this…

Suggestions gratefully received!

JL

john Law arps

current: www.john-law.net/projects
archive: www.john-law.org.uk
mail: mail@john-law.net
tel: 01225 339590
mob: 07814 993 904
skype: john-sk-law

panomaster

Intermediate

Posts: 273

Location: Kobyłka, Poland

Occupation: Virtual Tours - Spherical Panoramas - Krpano developer

  • Send private message

2

Monday, December 14th 2015, 1:32pm

It's not a good idea to convert panoramas from mirror ball. It's because of high distortion and blur near the border of mirror ball pictures.

Theoretically, you could use PTGui:

1. Open mirror ball image
2. Set Lens Type = circular fisheye and HFOV = 360
3. Set properly round crop in Crop tab (it should be done absolutely perfectly)
4. Click ctrl + E (editor) and align panorama

Here's what you can get (see attachment)
panomaster has attached the following image:
  • equi.jpg

Red

Trainee

Posts: 95

Location: Australia

Occupation: Virtual tour creator, VR app developer

  • Send private message

3

Monday, December 14th 2015, 3:17pm

Two suggestions that may help

- Use the Make Object droplet or the HTML 5 friendly solution from Andrey here http:
//www.krpano.com/forum/wbb/index.php?page=Thread&threadID=8034&pageNo=2

Firstly, it's not possible for the single circular image to be rotated as it's essentially just a flat image with one point of view.
You require multiple circular images, rotated slightly each time (say 10 degrees) to show a slightly different viewpoint which ends up covering 360 degrees of the sphere.

36 images would give you smooth rotation when interacting. 24 may even suffice. This will only give you horizontal rotation.
If you wanted vertical rotation you'd require more images.
See here Object VR with left/right AND up/down rotation

- For a sphere wrapped around a 3D object, you could implement the Three JS plugin.
Use three.js (3d objects) inside krpano (with VR support)


In this case the mirror ball/sphere projection is not necessary and the equirectangular is mapped to a 3D sphere object instead.
Example of pano mapped to a 3D object is here http://www.pano-ad.com.au/panos/animetes…thex/index.html

To enable mouse/touch interaction would require more coding knowledge in Three JS, but certainly possible.

Hope that helps

Posts: 1,850

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

4

Monday, December 14th 2015, 4:20pm

Hi John,
I think most replies misunderstood you.

This just needs 3 view changes.

fovmin 180
stereographic false
fisheye 1
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

jl-krp

Intermediate

  • "jl-krp" started this thread

Posts: 140

Location: Bath

Occupation: Panographer - hobby and commercial

  • Send private message

5

Monday, December 14th 2015, 6:37pm

many thanks!

Thanks for the swift replies!

Leszek - Your attached image looks similar to my initial equirect made from 4 x10.5mm images on a full-frame. The fisheyes were other ptgui projections, not mirrorballs:

Red - I’ve made 3d objects with modelling software but what I was trying to remember was a manipulable sphere in which the user was at the centre not outside it.
Many thanks for the links to the Three.js plugin and the examples.which look very promising.

Sacha - will try your settings and re-render - but will the result be passive or interactive?

Merry xmas & HNY’ 16 to you all!
JL

Posts: 1,850

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

6

Monday, December 14th 2015, 8:19pm

jl-krp,
It's krpano viewing settings for normal scenes.. turns the scene into an interactive mirrorball. Is that what you wanted?
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

7

Friday, December 18th 2015, 3:17pm

Bingo! Thanks Sacha – for me at least, that's it. :)

8

Friday, December 18th 2015, 3:19pm

Although it would be perfect if the distortion simulated a ball coming OUT rather than being like looking into a concave shape.

Posts: 1,850

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

9

Friday, December 18th 2015, 5:05pm

You can play with the options plugin in flash to change various settings quickly. If you use details=1 you get a cube. I've not seen that in krpano before.
Yeah it would look better out than in.. I didn't find a magic setting for it.

examples/plugin-examples/editor-options-plugins.. replace the flat image with one from the tours like..

Source code

1
2
3
4
5
		<preview url="../../../examples/virtual-tours/demotour-corfu/panos/achilleion-hof-unten.tiles/preview.jpg" />

		<image>
			<cube url="../../../examples/virtual-tours/demotour-corfu/panos/achilleion-hof-unten.tiles/mobile_%s.jpg" />
		</image>
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

jl-krp

Intermediate

  • "jl-krp" started this thread

Posts: 140

Location: Bath

Occupation: Panographer - hobby and commercial

  • Send private message

10

Friday, December 18th 2015, 9:53pm

spheres again

Hi
Thanks to our pano colleague Toni Garbasso who pointed me towards WebGL, I now have a couple of interactive spheres with panos painted on the outside.

john-law.net/projects/spheres/ The Turrell cubic room looks very odd but the Hunstanton beachscape is almost tolerable.

Now I need to find out how to paint a pano inside a sphere...

WebGl is very forbidding for a non-programmer but it looks worth the effort!

JL