Jump to content
  • Advertisement
Sign in to follow this  
teche

Screen Orientation

This topic is 2837 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi All,

Could any one suggest me the optimal solution to change the screen(not an object or not quad or not primitives) orientation through GLSL shaders.
I just want change the orientation of the screen rendered from the framebuffer.

Let me know if you guys any other information is required

Thanks In Advance

Share this post


Link to post
Share on other sites
Advertisement
I dont know what your trying to but you probably just need to look up how cameras work in 3D. Are you trying to tilt your view?

Share this post


Link to post
Share on other sites

I dont know what your trying to but you probably just need to look up how cameras work in 3D. Are you trying to tilt your view?


Thanks for your reply dpadam,

Actually i am working on a simple surface composition framework.so i need to add a functionality to change the orientation of the screen.
I have to achieve this only through shaders.

Share this post


Link to post
Share on other sites

[size=2] Could any one suggest me the optimal solution to change the screen(not an object or not quad or not primitives) orientation through GLSL shaders.
I just want change the orientation of the screen rendered from the framebuffer.

[color="#1C2837"][size=2]Let me know if you guys any other information is required[size=2]

And here we go (with the requirement of more information ;))

* What do you mean by "screen"? In OpenGL, the term is usual for the covered pixels on the monitor, and hence cannot be changed by OpenGL.
* Changing the orientation in relation to what reference?
* Is "change" restricted to a set of dimensions?
* And what criteria should be "optimal" in the requested solution? Highest precision? Highest speed? Lowest count of instructions? ... Any combination?

Share this post


Link to post
Share on other sites
To copy one image to another, you usually render a full-screen quad using a shader that simply outputs the input image. All you have to do is rotate this quad (or rotate the texture coordinates supplied by the quad).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!