We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › Vision angle and "Head Up Display"
Page Index Toggle Pages: 1
Vision angle and "Head Up Display" (Read 449 times)
Vision angle and "Head Up Display"
Jun 18th, 2007, 9:00pm
 
Hi,
I wonder what is the vision angle used in Processing ?
Maybe my question is not relevant, but here is the context:
I have a horizontal plane (x and y axis) at elevation 0 (z=0) of, let's say 200x200 pixels. I would like to see it from a higher position (e.g. z=50). The center of the view is at x=50 y=50 z=0.
At what distance I have to put my eye to see all the plane in a 100x100 window ??

A related question: I would like to make a "Head Up Display" system such that the indicator will be always at the same place and same distance from the eye, whatever its moves. I will update it depending on the camera position and orientation. But how to compute the distance from the eye for a button to be in the upper right corner ?

Regards
Re: Vision angle and "Head Up Display"
Reply #1 - Jun 19th, 2007, 6:35pm
 
check out perspective() function from processing..

you should check orthogonal projection..

ortho()

http://processing.org/learning/examples/ortho.html

create your "viewport" and render whatever you need in the hud it will always stay in front of the camera
Page Index Toggle Pages: 1