From: Raphael Grasset (raphael.grasset++at++imag.fr)
Date: 04/09/2001 05:21:59
H,
I'm loading a texture with an image in memory with the "subload" method
of pfTexture class.
It's working very well with an 02 station but not with an ONYX2.
I've this message during the execution :
PF Fatal/SysErr: _pfDirtCheck: pfRealloc of 0 bytes
returned NULL.
Yet, the two stations have got the "EXT_subtexture" extension!
Here is some parts of the initialisation :
tex->setImage((uint *)arbre, 4, TAILLE_ARBRE,TAILLE_ARBRE,1);
tex->setFormat(PFTEX_INTERNAL_FORMAT, PFTEX_RGBA_8);
tex->setFormat(PFTEX_IMAGE_FORMAT, PFTEX_RGBA);
tex->setRepeat(PFTEX_WRAP, PFTEX_CLAMP);
tex->setFormat(PFTEX_SUBLOAD_FORMAT, PF_ON);
And when I want to re-load the texture :
tex->subload(PFTEX_SOURCE_IMAGE,
(uint *)arbre,
10,10,
TAILLE_ARBRE,
10,10,
40,100 ); //For example : TAILLE_ARBRE = 256;
If anyone has got an idea, I'll be very happy.
Thank.
Sylvain Faisan
-- __________________________________________________________________________ Raphaël GRASSET | Doctorant (Phd Student) | iMAGIS-GRAVIR -------------------------------------------------------------------------- raphael.grasset++at++imag.fr http://www-imagis.imag.fr/Membres/Raphael.Grasset Tel:+33(0)4.76.61.55.17 Fax:+33(0)4.76.61.54.40 iMAGIS- Laboratoire GRAVIR INRIA Rhône-Alpes 655, avenue de l'Europe 38330 Saint-Ismier Cedex FRANCE __________________________________________________________________________
This archive was generated by hypermail 2b29 : Mon Apr 09 2001 - 05:22:07 PDT