Re: subload of pfTexture...

New Message Reply Date view Thread view Subject view Author view

From: Angus Dorbie (dorbie++at++sgi.com)
Date: 04/09/2001 14:04:10


On the whole this looks reasonable.

The ONYX2 will be multiprocess by default, just as a test what happens
when you force pfMultiprocess to PFMP_APPCULLDRAW?

How big is the second image? Looks like you are only subloading a small
portion here with the assumption that the host copy is the pretty much
the same size as the full original image (although it wouldn't
technically have to be full height).

How have you created the data pointed to by *arbre, have you tested the
pointer value? Is it a valid pointer?

Cheers,Angus.

Raphael Grasset wrote:
>
>
> 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
> __________________________________________________________________________
>
>

-- 
For Performer+OpenGL tutorials http://www.dorbie.com/

"Whenever there is a conflict between human rights and property rights, human rights must prevail." --Abraham Lincoln


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Apr 09 2001 - 14:04:45 PDT

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