From: Brian Furtaw (brian++at++sgi.com)
Date: 02/23/2000 09:56:20
I don't have the contents of your callback so I can't say what you are
doing right or wrong. If you call pfGetEnable(PFEN_TEXTURE) does it
return true? Have you setup a TextureEnv? The man for pfTexture tells me
apply takes care of calling load and format methods for you. This seems
to be so in all the examples I can find. Does the texture have power of
two dimensions? I am just grabbing at straws here can you provide some
test code that demonstrates the problem? Does the texture load fine
through Performer, try this iv file,
#Inventor V2.1 ascii
Separator {
Texture2 {
filename "Default.rgb"
wrapS REPEAT
wrapT REPEAT
model MODULATE
}
Cube {
width 2
height 2
depth 2
}
}
Just rename your texture file to Default.rgb to load it.
Brian
Tim Gion wrote:
>
> On Wed, 23 Feb 2000, Brian Furtaw wrote:
>
> > I suspect you are getting false for isFormatted and isLoaded because the
> > pfTexture::{load,format} methods have not been called yet. These two
> > methods would not be called in the APP process because they operate on
> > the graphics pipe. I suspect they get called automatically for you in
>
> No, I'm not getting the texture. I get a Bad number of color components:0
> when I call pfTexture::apply(). I'm calling that from a post-draw
> callback in Vega. The callback mixes openGL calls with the Performer
> texture call, but that code was given to me by one of the Vega
> employees so I'm guessing that my problem is with not doing something
> right in Performer rather than Vega, though.
>
> Tim
>
> Tim Gion
> tcg3j++at++cs.virginia.edu (fastest) or gion++at++cs.virginia.edu
> http://www.cs.virginia.edu/~tcg3j
>
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
--
----oOOo---- ----oOOo---- ----oOOo---- ----oOOo----
Brian Furtaw (brian++at++sgi.com)
Graphics Guru Office:(301)572-3293 Fax: (301)572-3280
12200-G Plum Orchard Drive OpenGL/Performer/OpenInventor/ImageVision
Silver Spring, Maryland 20904 Optimizer/React/PCI Device Drivers
This archive was generated by hypermail 2b29 : Wed Feb 23 2000 - 10:17:23 PST