Re: trouble loading texture

New Message Reply Date view Thread view Subject view Author view

From: Brian Furtaw (brian++at++sgi.com)
Date: 02/23/2000 06:08:42


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
the DRAW process. Or you could call them yourself in a pfGeode draw
callback but since Performer will do that for you why bother. Do you see
the texture once the application comes up?

Brian

Tim Gion wrote:
>
> This ought to be an easy question. I'm using Performer 2.1 on Irix 6.5.
> I'm trying to load a .rgb file using pfTexture::loadFile(). loadFile()
> returns true after calling it with a given .rgb file. I can save
> the file back out using pfTexture::saveFile(). However,
> pfTexture::isLoaded() returns false as well as pfTexture::isFormatted().
> Code extract follows:
>
> pftex = new pfTexture();
> pftex->init();
> pftex->loadFile("water.rgb"); // returns true
> pftex->getImage(NULL, &comp, &sx, &sy, &sz); // values are set properly
> pftex->isFormatted(); // returns false
> pftex->isLoaded(); // returns false
>
> Thanks in advance.
>
> 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


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Feb 23 2000 - 06:28:28 PST

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