i'm trying to make a rotating effect
the camera isn't projecting on the whole window and the next frame is rotated a bit, roughly like this
;......-\--------------
;........\
;.........\
(-) previous frame
(\) current frame
(...) just needed a way to position the symbols correctly
i've managed to make a close effect by omitting the IrrBeginScene in the loop but what i end up with is when the model was closer to the camera then i can hide behind it's "ghost" projections
i was wondering if there is a command to use an image (like the previous frame) the be used as background color in the IrrBeginScene function
use previous frame as background
Re: use previous frame as background
GL doesn't guarantee that not clearing will leave the existing image there. So you need to capture the image somehow, and then render it again at the start of the next frame.
Re: use previous frame as background
that's exactly the point but i hoped i'll find more help about it here
i might try exploring what can i do tho it's always easier to be taught by someone who already did it
i might try exploring what can i do tho it's always easier to be taught by someone who already did it
Re: use previous frame as background
Hey,
I don't really understand what you are trying to describe, but it sounds to me like you need to render to a texture, slap that texture on a quad, and then render the quad before anything else on the next cycle of the loop. I believe their is an official tutorial that deals with RTTs.
I don't really understand what you are trying to describe, but it sounds to me like you need to render to a texture, slap that texture on a quad, and then render the quad before anything else on the next cycle of the loop. I believe their is an official tutorial that deals with RTTs.
Re: use previous frame as background
Grab a screenquad from the code snippets forum. Using it will let you render the image; for RTT use see the RTT example as mentioned.