Skip to main content
gamedev.net
🔒 Locked

Making a 2D Scrolling Background

Started by ANDROSS Jul 26, 2007 at 9:41 AM 3 replies 900+ views
Original Post
ANDROSS
ANDROSS
I'm making a 2D space shooter and I want to make a scrolling background. I have set the Orthographics view, and all the stuff but i don't know how to make a scrolling background! Please help!
Lord_Evil
Lord_Evil
You could draw a fullscreen quad without depth writes and use a texture matrix to scroll the texture over the quad.
If I was helpful, feel free to rate me up ;)If I wasn't and you feel to rate me down, please let me know why!
ANDROSS
ANDROSS
How to use texture matrix to scroll a texture??? (I'm really new to texture matrix).
Lord_Evil
Lord_Evil
Set the texture matrix mode and call glTranslate. Then set matrix mode back to model view.
If I was helpful, feel free to rate me up ;)If I wasn't and you feel to rate me down, please let me know why!
ANDROSS
ANDROSS
Tnx man!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.