hi,
i am currently implementing image filters on nvidia hardware (see cgshaders forum).
as the last step in this i want to read the results back from the framebuffer. to do that i compared reading without PDR and glReadPixels() and reading with a read-PDR and glReadPixels. i got no difference between the both methods.
where mInputImage is the image which was the source to the filterprocess.Code :[SIZE=10] mReadBackBuffer = (uint8*)wglAllocateMemoryNV( mInputImage->getHeight()*mInputImage->getWidth()*3*sizeof(unsigned char), 1.0f, 0.0f, 1.0f); . . . glEnableClientState(GL_READ_PIXEL_DATA_RANGE_NV); glPixelDataRangeNV( GL_READ_PIXEL_DATA_RANGE_NV, mInputImage->getHeight()*mInputImage->getWidth()*3*sizeof(unsigned char), mReadBackBuffer); glReadPixels(0,0,mInputImage->getWidth(), mInputImage->getHeight(), GL_RGB, GL_UNSIGNED_BYTE, mReadBackBuffer); glFlushPixelDataRangeNV(GL_READ_PIXEL_DATA_RANGE_NV); glDisableClientState(GL_READ_PIXEL_DATA_RANGE_NV); [/SIZE]
i use a 2,4ghz p4, 512mb ram, geforceFX 5650go (forceware 52.70) and windowsXP SP1
could someone tell me what i do wrong or if this is a driver issue.
thx
[This message has been edited by Chris Lux (edited 12-01-2003).]
[This message has been edited by Chris Lux (edited 12-01-2003).]
[This message has been edited by Chris Lux (edited 12-01-2003).]




