You are not logged in.

nosferatu

Trainee

  • "nosferatu" started this thread

Posts: 80

Location: Ukraine

  • Send private message

1

Friday, June 27th 2014, 12:52pm

Automatic calculation of distortion hotspot

Hi Klaus!

I'm doing a project where you need to put about 500 hotspots to the plane.
It takes an incredible amount of time.
That is akin to position 500 TV Panel.
Is it possible to automate this process?

For example automatically calculate the rx, ry, rz and scale with respect to the value ath, atv.
Or implement distortion hotspot defined by 4 points.

I think many people need...
Thank you!
nosferatu has attached the following image:
  • scr.jpg

2

Thursday, July 3rd 2014, 11:17am

Hi,

mathematically it should be possible of course, but that become quite complex...

Alternatively you could try using the same ath/atv/rx/ry/rz values for all hotspots (to define the plane) and then shift them around on that plane via the ox and oy settings:
http://krpano.com/docu/xml/#hotspot.ox

Best regards,
Klaus

nosferatu

Trainee

  • "nosferatu" started this thread

Posts: 80

Location: Ukraine

  • Send private message

3

Thursday, July 3rd 2014, 11:54pm

Klaus, thanks for the answer!
Yes, my project is really great to use parameters ox, oy.
I did so. But I want to implement method 4 points.

Could you please help me with implementation of ideas Editing 4 points?
I need information as krpano counts parameters ath, atv. Internal formula or some other.
ath, atv It actually degrees or something other?
Usually used methods Rotation Matrix or Quaternion

4

Friday, July 4th 2014, 5:07pm

Could you please help me with implementation of ideas Editing 4 points?
I don't know a good algorithm yet...
But once I will find/develop one (already on my list), I will integrate that directly into krpano of course.

Best regards,
Klaus

nosferatu

Trainee

  • "nosferatu" started this thread

Posts: 80

Location: Ukraine

  • Send private message

5

Friday, July 4th 2014, 8:34pm

That's great! Tourweaver and pano2vr have these functions
Yet as the calculated value of ath and atv?
Is it possible to turn ox, oy on ath, atv and vice versa?

nosferatu

Trainee

  • "nosferatu" started this thread

Posts: 80

Location: Ukraine

  • Send private message

6

Tuesday, July 8th 2014, 1:53pm

I've already figured out.
By the way how fov value is converted to "perspective" and "translateZ" ???
In krpano fov value is 1-179

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
-webkit-transform: 
translate3d(640px, 200px, 0px)
perspective(242.49px)
rotateZ(0deg) 
translateZ(242.49px)
rotateX(0deg) 
rotateY(0deg)
rotateY(0deg) 
rotateX(0deg) 
scale3d(1, 1, 1) 
translateZ(-100px) 
rotate(0deg) 
translate(0px, 0px) 
rotateZ(4deg)	
rotateX(7deg)
rotateY(2deg)
scale(0.3, 0.3)
translate(-400px, -280px);