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.

121

Saturday, January 18th 2020, 5:52pm

distored video hotspot positioning issue?

Hi guys,

sorry for digging out this old thread, but I have some issues positioning a distorted video hotspot onto the pano image. I quadruple checked the values coming out from ptgui ... the distorted (video) hotspot is just off. not just by a single pixel or so, its quiet "a bit". see screenshot below.

I'm using krpano 1.20.2 and ptgui 11.13 - is this "old" action still valid or did something change at krpano/ptgui so there's a missmatch now?


Any help on this would be great, as the client waits for his panos ;-)
SOLVED: I've overseen the vertical compression in ptgui. everyting's fine.





This post has been edited 1 times, last edit by "pano_ramic" (Jan 19th 2020, 1:25pm)


122

Monday, May 25th 2020, 1:04pm

Hi,

I have a problem (well i have a lot of problems with this one but i want to solve it one at the time). My hotspot picture is bigger that the place it's on. I tried to make hotspot jpg smaller but it "stretches" on the panorama.

Thanks for any help!

igor.socha

Intermediate

Posts: 200

Occupation: Photographer

  • Send private message

123

Friday, June 5th 2020, 10:45am

SOLVED: I've overseen the vertical compression in ptgui. everyting's fine.
I have the same problem, tried Ptgui 12 and old 10, all the numbers are rounded, still the hotspot is misaligned.
Vertical and horizontal compression setting should be 0.0. OK, but where do i find it??? *confused*
Best regards,
Igor Socha

Tuur

Sage

Posts: 3,769

Location: Netherlands

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

  • Send private message

124

Friday, June 5th 2020, 11:56am

Hi,

panorama editor --> right top little arrow --> projection

by selecting the numbers you get the full, not rounded number,.
make sure you are in 'rectangular' mode!

Hope it helps!
Tuur *thumbsup*

This post has been edited 4 times, last edit by "Tuur" (Jun 5th 2020, 12:26pm)


Viktor123

Beginner

Posts: 8

Location: Baden

Occupation: Kellner

  • Send private message

125

Wednesday, September 16th 2020, 12:23pm

Thanks! I think this i really helpful!

Greetings

milotimbol

Intermediate

Posts: 233

Location: Philippines

Occupation: Software Developer

  • Send private message

126

Friday, January 14th 2022, 3:07am

What adjustments do I need to make to action "calc_pos_from_hfov_yaw_pitch_roll" if my panorama is using a depthmap? can't seem to align using the default code.

milotimbol

Intermediate

Posts: 233

Location: Philippines

Occupation: Software Developer

  • Send private message

127

Friday, January 14th 2022, 3:44am

Answering my own question for posterity. Found the answer here - https://krpano.com/forum/wbb/index.php?p…&threadID=17570

if your image has a prealign, ox, oy, oz values

Source code

1
2
3
4
5
6
7
8
9
10
11
		<image prealign="-0.0|-56.72|0.0" ox="-38.33" oy="-46.13" oz="17.8" >
			<cube url="panos/03.tiles/%s/l%l/%v/l%l_%s_%v_%h.jpg" multires="512,640,1280,2688" />

			<depthmap url="panos/03.tiles/depthmap.stl"
				enabled="true"
				rendermode="3dmodel"
				background="none"
				scale="100"
				offset="0.0"
				subdiv=""/>				
		</image>


You need to carry those values to the hotspot as tx, ty, tz and also add prealign="true"

Source code

1
2
3
4
5
	    <hotspot name="left-device" distorted="true" enabled="true" visible="true" alpha="1"
	              url="img/03-right-device.jpg"
	              onloaded="calc_pos_from_hfov_yaw_pitch_roll(11,-109,0,-42);"
prealign="true" tx="-38.33" ty="-46.13" tz="17.8"
	              />