Using frame buffer as a texture
Posted: Mon Oct 22, 2007 7:08 am
I want use frame buffer as a texture for sprite (lower left corner of screen), but I noticed funny GS behavior:
Screenshot is made in 3rd loop.
It also happens when I'm doing:
- local to local transmision of actual frame buffer in other place of GS memory
- local to host and after host to local in other place of GS mem.
I've tested 2nd method because I want to develop few 2D effects that modifies frame buffer (eg. blur, water effect, fire :) )
How to achieve exactly one copy of frame buffer and use it on the same frame?
EDIT:
Hmm... I forgot say what i'm really drawing on the one loop, so here it is:
- Full screen white sprite as background
- 2 triangles
- Sprite with copied actual frame buffer
Screenshot is made in 3rd loop.
It also happens when I'm doing:
- local to local transmision of actual frame buffer in other place of GS memory
- local to host and after host to local in other place of GS mem.
I've tested 2nd method because I want to develop few 2D effects that modifies frame buffer (eg. blur, water effect, fire :) )
How to achieve exactly one copy of frame buffer and use it on the same frame?
EDIT:
Hmm... I forgot say what i'm really drawing on the one loop, so here it is:
- Full screen white sprite as background
- 2 triangles
- Sprite with copied actual frame buffer