[psas-software] to-do and scheduling: special meetings -- and a launch?
jay at BeckFamily.com
Thu Jun 2 12:12:50 PDT 2005
Drawing in multiple windows is straight forward.
In the window you have draw boxes to create the sub windows.
When you want to draw in the sub window, multiply each point by the
[x y z 1] | Sx 0 0 0 |
| 0 Sy 0 0 |
| 0 0 Sz 0 |
| Tx Ty Tz 1 |
Sx = Max-x / (box_right box_left)
Sy = Max-y / (box_top box_bottom)
Sz = Max-z / (box_far box_near)
Tx = box_lower_left_x
Ty = box_lower_left_y
You may have to take into account that native windows usually have +y axis
This whole thing is called viewporting.
>>> David Allen < dave-psas at antiform.com > on 6/2/05 11:59 AM wrote <<<
> On Thu, 2 Jun 2005, Peter Welte wrote:
>> > Hey if the new simulator supports 3D positions, eventually we'll have to
>> add a
>> > 3D view of the rocket from the side, and a "camera" view out the nose or
>> > (which if nothing else should make crashes look spectacular). That would
>> be a
>> > nice demo to show.
> Yep, the new sim supports full 3D positions. That capability was actually
> in the original simulator, but not utilized due to a couple of
> We have a basic side view the of the rocket in the new simulator using
> OpenGL and SDL. If anybody has suggestions on how to draw multiple
> perspectives of the rocket in a single SDL window I would love to give it
> a try, otherwise we may have to swap SDL for a more flexible windowing
> - David Allen
> psas-software mailing list
> psas-software at lists.psas.pdx.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the psas-avionics