trouble loading texture

New Message Reply Date view Thread view Subject view Author view

From: Tim Gion (tcg3j++at++cs.virginia.edu)
Date: 02/23/2000 06:07:08


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


New Message Reply Date view Thread view Subject view Author view

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

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