From: Duvan Cope (dcope++at++ist.ucf.edu)
Date: 06/18/2004 13:21:44
Hello!
I am trying to use a vertex program with more than 32 local parameters
(for vertex skinning). I allocate the space just as the sample program
does...
for (index = 0; index < 96; index++)
{
data = (float *) pfMalloc((sizeof(float) * 4), pfGetSharedArena());
// Set the data values on the parameter we just allocated
(...)
// Set the vector to the vertex program.
vertexParameters->setParameters(index, PF_GPP_FLOAT_4, 1, data);
}
When I reach the 33rd vertex parameter I get this..
PF Fatal/Resource: pfMemory::new() Unable to allocate 32 bytes
from arena 0x43d43000.
Try using pfSharedArenaSize() or env PFSHAREDSIZE
to increase the arena size
(currently 65536.00 KBytes) and check for adequate setrlimit()
values and available space on swap (or pfTmpDir()).
I have already tried increasing the PFSHAREDSIZE value to 1GB, but it made
no difference on which parameter it died at (33rd). Is there some
limitation to the number of "data blocks" I can create within an Arena?
Does Performer not support the 96+ vertex parameters specified by
the OpenGL ARB_vertex_program extension?
Thanks in advance!
This archive was generated by hypermail 2b29 : Fri Jun 18 2004 - 13:24:45 PDT