View Single Post
  #8   Spotlight this post!  
Unread 26-01-2006, 21:36
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,078
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: What is the field of view (FOV) of the default lens?

Visualization, actually.

I've written an OpenGL application that renders the field in 3D as the camera sees it, based on the tilt, pan, mx, and my values. The FOV is needed to convert mx and my into an angle. Right now I just added in a slider so teams can change it to whatever lens they're using.

The math itself is actually surprisingly complicated (converting to and from 2D screen coordinates to 3D world coordinates), so I don't think I'm going to try to implement something *quite* as precise on the RC. Besides, we don't really need to know the exact range unless the target is centered horizontally in our application, and this constraint turns the equation from matrix math into trig.

It is actually done, and works great - I'm just waiting on our teams' animators to texture the field nicely before I release it on here. I'm a programmer, so my 3D field left much to be desired...

Here's a screen cap from about a week ago - the current build is much prettier.