You are not logged in.

1

Monday, August 24th 2015, 7:09pm

limitview

hi,eveyone
I want to know how to limit the accuracy of the scene view(vlookatmin,vlookatmax,hlookatmin,hlookatmax)。
Thanks

herrpedro

Intermediate

Posts: 210

Location: Lisbon

Occupation: Programmer/analyst

  • Send private message

2

Monday, August 24th 2015, 8:30pm

add an event to your xml

<events onclick="mouseposition();" />

<action name="mouseposition">
showlog(true);
screentosphere(mouse.x, mouse.y, mouseh, mousev);
trace('ath=' , mouseh , ' atv=' , mouseh );
</action>

click in the place you want to limit

then input the values in your variables

was this what you wanted?

3

Tuesday, August 25th 2015, 4:46am

hi, herrpedro
The same to thank you ,but this is not I want.
I would like to know when "limitview='range'",how to determine the value of “ hlookatmin , hlookatmax , vlookatmin , vlookatmax ”

herrpedro

Intermediate

Posts: 210

Location: Lisbon

Occupation: Programmer/analyst

  • Send private message

4

Tuesday, August 25th 2015, 5:49pm

hi, herrpedro
The same to thank you ,but this is not I want.
I would like to know when "limitview='range'",how to determine the value of “ hlookatmin , hlookatmax , vlookatmin , vlookatmax ”


thats what i did
when you see it without limits you get a full sphere in black with a slice of image
if you add that code
click on the left limit of the image and input the value from hvalue into hlookatmin
click on the right limit of the image and input the value from hvalue into hlookatmax

if you want the actual values just make a trace of
view.hlokatmin , view.hlookatmax
like
trace( 'hmin=' , view.hlokatmin , ' hmax=' , view.hlookatmax);
you might add more things to trace.

5

Thursday, August 27th 2015, 5:54pm

Hi,

you could calculate them also from the spherical source image:

h = x-pixel-pos / image-width * 360 - 180
v = y-pixel-pos / image-height * 180 - 90

Best regards,
Klaus