[info-performer] Multitexturing

Date view Thread view Subject view Author view

From: faculaganymede (faculaganymede++at++yahoo.com)
Date: 02/08/2005 17:12:06


pfExperts,

I ran Performer sample regCmbTexBlend.cxx and got the
following error messages:

PF Warning:
pfGeoSet::setMultiAttr(PFGS_TEXCOORD), not enough
PF Warning: texture units: set=1,
num=1
PF Warning:
pfGeoState::setMultiMode - multitexture unit # 1 not
available.
PF Warning: Only 1 multitexture
units are available on this hardware.
PF Warning:
pfGeoState::setMultiAttr - multitexture unit # 1 not
available.
PF Warning: Only 1 multitexture
units are available on this hardware.

I know for fact that my computer (Windows 2000, Radeon
9800 Pro) supports multitexturing. A pure OpenGL
multitexturing program runs fine, but Performer seems
to think otherwise..., or maybe I am not understanding
the error messages correctly?

In addition, instead of using
gstate->setMultiMode(PFSTATE_ENTEXTURE...) to make my
Performer program do multitexturing, I tried the
OpenGL way. But, there seems to be some conflicts
between OpenGL and Performer. The following function
calls work fine in a pure OpenGL program but not in an
OpenGL+Performer program:

When I add this in my code:
   PFNGLACTIVETEXTUREARBPROC glActiveTextureARB =
NULL;

I get the following error:
    error C2373: 'glMultiTexCoord2fARB' :
redefinition; different type modifiers
    c:\silicon graphics\opengl
performer\include\performer\win32stubs.h(79) : see
declaration of 'glMultiTexCoord2fARB'

When I remove "PFNGLACTIVETEXTUREARBPROC
glActiveTextureARB = NULL;" and add this line:
    glActiveTextureARB =
(PFNGLACTIVETEXTUREARBPROC)wglGetProcAddress("glActiveTextureARB");

I get the following error:
    error C2659: '=' : overloaded function as left
operand

=====
Thanks,
faculaganymede

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Feb 08 2005 - 17:12:18 PST