Sie sind nicht angemeldet.

Boubou

Schüler

  • »Boubou« ist der Autor dieses Themas

Beiträge: 67

Wohnort: Paris

Beruf: Photographer

  • Nachricht senden

1

Dienstag, 17. Mai 2011, 09:43

[Solved] Showing the FOV & TILT on a panorama:

Goog morning everybody,

What kind of code I have to insert in my xml to get a little window showing the FOV (degrees) inside a panorama?

Thanks a lot for your help ;-)

Dieser Beitrag wurde bereits 3 mal editiert, zuletzt von »Boubou« (18. Mai 2011, 17:42)


2

Dienstag, 17. Mai 2011, 09:46

Quellcode

1
2
3
<plugin name="options"
	url="plugins/options.swf"
	/>

Boubou

Schüler

  • »Boubou« ist der Autor dieses Themas

Beiträge: 67

Wohnort: Paris

Beruf: Photographer

  • Nachricht senden

3

Dienstag, 17. Mai 2011, 10:02

Thanks Jaydee, but I don't need the full options, just the FOV visible nearby my buttons ;-)

Boubou

Schüler

  • »Boubou« ist der Autor dieses Themas

Beiträge: 67

Wohnort: Paris

Beruf: Photographer

  • Nachricht senden

4

Dienstag, 17. Mai 2011, 18:00

Quellcode

1
2
3
4
5
6
7
8
   <events onviewchange="showfovtext();" />
   <textstyle name="FOVTEXT" origin="bottom" edge="top" yoffset="190" textalign="center" background="false" border="false" fontsize="20" textcolor="0xFFFFFF" bold="false" effect="glow(0xFFFFFF,0.7,4,2);glow(0x000000,1,4,2);dropshadow(3,45,0x000000,2,0.6);" showtime="2.0" fadetime="1.0" />
   <action name="showfovtext">
  	copy(fov,view.hfov);
  	roundval(fov,2);
	  txtadd(msg,'HFOV=',get(fov),'°');
	  showtext(get(msg),FOVTEXT);
   </action>


Thanks a lot to those how helped me on Panophoto

Boubou

Schüler

  • »Boubou« ist der Autor dieses Themas

Beiträge: 67

Wohnort: Paris

Beruf: Photographer

  • Nachricht senden

5

Dienstag, 17. Mai 2011, 18:06

And what should be the code for the tilt?
I saw something about that reading a post about compass, but I dont want a plugin, just text! ;-)

6

Mittwoch, 18. Mai 2011, 03:00

"<action name="showfovtext">
copy(fov,view.hfov);
roundval(fov,2);
txtadd(msg,'HFOV=',get(fov),'°');
showtext(get(msg),FOVTEXT);
</action>"

does that work have you tested it? i dont think hfov is valid. this is what the view tag supports i dont see hfov.

<view hlookat="0.0"
vlookat="0.0"
camroll="0.0"
fovtype="VFOV"
fov="90.0"
fovmin="1.0"
fovmax="179.0"
maxpixelzoom=""
fisheye="0.0"
fisheyefovlink="0.5"
limitfov="true"
stereographic="false"
pannini="false"
architectural="0.0"
architecturalonlymiddle="false"
limitview="auto"
hlookatmin=""
hlookatmax=""
vlookatmin=""
vlookatmax=""
/>

the below action should work but it is not tested.

"<action name="showfov_tilt">
copy(fov,view.fov);
copy(tilt,view.vlookat);
roundval(fov,2);
roundval(tilt,2);
txtadd(msg,'FOV=',get(fov),'°+ TILT='get(tilt),'°');

showtext(get(msg),FOVTEXT);

</action>"

Boubou

Schüler

  • »Boubou« ist der Autor dieses Themas

Beiträge: 67

Wohnort: Paris

Beruf: Photographer

  • Nachricht senden

7

Mittwoch, 18. Mai 2011, 10:33

"<action name="showfovtext">
copy(fov,view.hfov);
roundval(fov,2);
txtadd(msg,'HFOV=',get(fov),'°');
showtext(get(msg),FOVTEXT);
</action>"

does that work have you tested it? i dont think hfov is valid. this is what the view tag supports i dont see hfov.

Yes, it works fine!
Now, when I zoom to 90°, I have a HFOV of 90° on my screen (default or full screen) and the radar shows also 90°!!!

Thanks for the tilt, I will try it and tell you if it works ;-)

jpdeglet69

Fortgeschrittener

Beiträge: 215

Wohnort: France

Beruf: VR Maker and Document Management Expert

  • Nachricht senden

8

Mittwoch, 18. Mai 2011, 11:07

"<action name="showfovtext">
copy(fov,view.hfov);
roundval(fov,2);
txtadd(msg,'HFOV=',get(fov),'°');
showtext(get(msg),FOVTEXT);
</action>"

does that work have you tested it? i dont think hfov is valid. this is what the view tag supports i dont see hfov.


Like discussed on Panophoto.org, hfov and hlookat are the two main attributes used in radar algorythm (see the code)
to manage horizontal size and orientation.

For fun I have modified the code to manage a vertical radar...
It is running...
But it should combine the two rotations : horizontal and veritcal to draw the more realistic "radar".
Best regards,
JPhD
VR-Guide®/Eleana CEO
https://eleana.online

Boubou

Schüler

  • »Boubou« ist der Autor dieses Themas

Beiträge: 67

Wohnort: Paris

Beruf: Photographer

  • Nachricht senden

9

Mittwoch, 18. Mai 2011, 16:14


the below action should work but it is not tested.

"<action name="showfov_tilt">
copy(fov,view.fov);
copy(tilt,view.vlookat);
roundval(fov,2);
roundval(tilt,2);
txtadd(msg,'FOV=',get(fov),'°+ TILT='get(tilt),'°');

showtext(get(msg),FOVTEXT);

</action>"
Just a little change and now it's works perfectly *thumbsup*

Quellcode

1
2
3
4
5
6
7
8
<action name="showfov_tilt">
copy(fov,view.hfov);
copy(tilt,view.vlookat);
roundval(fov,2);
roundval(tilt,2);
txtadd(msg,'HFOV=',get(fov),'°+ TILT=',get(tilt),'°');
showtext(get(msg),FOVTEXT);
</action>

Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »Boubou« (24. Mai 2011, 00:17)