From: Miguel Lozano (miguel++at++glup.irobot.uv.es)
Date: 03/20/2000 04:30:20
Hi -
How does one use Performer to draw an image to a buffer that
is not the framebuffer? I want to draw an image and then
later use it as a texture map...
Any suggestions or examples would be greatly appreciated.
----Hi Ken, what I did once for avoiding some projection distortion was to read from the Frame buffer directly into a texture object. This is possible adding a 'subload texture instruction' in your draw call-back routine:
static void DrawChannel( ....) // Draw Call-Back routine {
....
pfDraw();
....
if(CAPTURA_FBUFFER) // getting from the FBuffer Shared->DistTexture[0]->subload(PFTEX_SOURCE_FRAMEBUFFER, NULL, ORIGEN_TEXT0, 0, 0, PCHAN_OX, PCHAN_OY, PCHAN_X, PCHAN_Y);
}
I hope, this helps you.
------------------------------------------------------------------ Lozano Ibáñez, Miguel Instituto de Robótica Universitat de València Grupo ARTEC e-mail: miguel++at++glup.uv.es Polígono de la Coma s/n Tlf . +34-96-398 35 91 Aptdo. 2085. CP 46071 FAX.+34-96-3983550 Paterna-Valencia-SPAIN ------------------------------------------------------------------
This archive was generated by hypermail 2b29 : Mon Mar 20 2000 - 04:39:35 PST