Re: OpenGL postdraw using Performer coordinates?

New Message Reply Date view Thread view Subject view Author view

Angus Dorbie (dorbie++at++multipass.engr.sgi.com)
Tue, 6 Jan 1998 12:49:28 -0800


On Jan 6, 8:56am, Jan Barglowski wrote:
> Subject: OpenGL postdraw using Performer coordinates?
> Performers:
>
> I'd like to draw an OpenGL line between two locations in my Performer
> scene. How do I convert the Performer coordinate system to OpenGL?

Use performer coords, even when issuing gl calls, the coordinate
system has been converted by performer (it's actually a 90 degree
rotation about x).

       ^ Perf (z) Gl (y)
|
|
|
|_________> Perf(y) Gl (-z)

Note the rotation performer applies is transparent to you,
picture rotating the above gl axes clockwise. You'll see it maps
straight into performer land. Don't do this, it has already
been done, just draw in pfLand.

>
> Of course, all the past info-performer messages I saved were about
> OpenGL drawing to *screen* coordinates, not 3D coordinates :-(

What you want to do is simpler, you just remove the ortho stuff
& the load identity stuff.

Cheers,Angus.

-- 
"They can't break you if you don't have a spine."
                                      - Wally.

======================================================================= List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/ Submissions: info-performer++at++sgi.com Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:56:32 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.