PDA

View Full Version : Rotate scene



Mukund
04-30-2010, 07:36 AM
Hello everyone.
I was wondering if there was a method to rotate an already rendered scene.

I thought of doing glReadPixels() followed by glRotate() followed by glDrawPixels().
But this will not work right?
I mean there is no point in giving glRotate() after rasterization right?

Is there any way i can rotate the scene? without acually drawing it again.(i mean not rendering it again)

strattonbrazil
04-30-2010, 11:31 AM
What are you trying to do? Rasterizing your geometry will put stuff onto a 2D target. Do you want to rotate that 2D target in your viewport after the fact?

If so, render your normal scene to a texture then you can just rotate that texture around using glRotate.

Mukund
04-30-2010, 12:19 PM
Do you want to rotate that 2D target in your viewport after the fact?


Yes.Thats what i am trying to do.Thanks for the suggestion.I will try to do that.