+0  
 
0
707
2
avatar
I'm trying to create a HUD (heads-up display).
Looking through a camera, I have a HUD.
The two main components of the HUD are a circle around a horizon line (──┼──).
At 0,0, the horizon line rests at the center of the circle.
Like an airplane, when the (camera) nose pitches up (or down), the horizon line moves down (or up); to the left it moves right and to the right it moves left.
Herein lies the rub:
At the point at which the horizon line's cross-hair (it's center) reaches the boundary of the circle, it should stop, constrained to the inside of the circle; despite the camera's continuing rotation.
I have dynamic control over the both x,y orientations of the camera (Xx,Xy & Yx,Yy) and am able to constrain the horizon line to a square(shape) surrounding the circle but am stumped on constraining to within the circle.
A little help would be much appreciated.

DdK
 Mar 14, 2014
 #1
avatar+6251 
0
Clipboard02.jpg
 Mar 15, 2014
 #2
avatar
0
Thanks you very much for the work you put into this.
I don't know if it works yet as I'll have to translate it to Java; but will let you know if I get anywhere with it.

Thanks again.

DdK
 Mar 17, 2014

1 Online Users