Ray Twiddy (rltwiddy++at++neiddd.com)
Thu, 22 Aug 1996 15:46:42 -0400
Based upon tests and suggestions, it appears this is not possible in Performer
but has to be accomplished with OpenGL as all the Performer sample code
illustrate. I have created a simple test case which reads an inventor object.
In a post draw callback to display the HUD, I create a GL_POLYGON/GL_QUADS
with glTexImage2D. When the scene first appears, the inventor object is
correctly textured but the OGL object is black. Immediately after loading the
SGI image file, the new texture is applied to the inventor object but not to
the OGL object which remains black.
How do I coordinate and control the 2 textures: one in Performer and the other
in OpenGL?
Is there a way to apply a pfTexture to an OpenGL object in a draw callback?
I am running on a maximum IMPACT, IRIX 6.2, Performer 2.0.1.
Any suggestions would be greatly appreciated.
Thanks,
Ray
--
Ray Twiddy | / ____/ /
NEI - Nomura Enterprise Inc. rltwiddy++at++neiddd.com | / / /
14240-G Sullyfield Circle Bus. (703) 818-1990 / | / ___/ /
Chantilly, VA 20151-1661 FAX (703) 818-7626 / / / /
___________________________________________________ __/ __/ _____/ __/
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:53:24 PDT