Closed Thread
Results 1 to 6 of 6

Thread: How to scroll the screen in openGL

  1. #1
    Daskill is offline Newbie
    Join Date
    Dec 2008
    Posts
    24
    Rep Power
    0

    Question How to scroll the screen in openGL

    I have to create a game in which there is a central character controlled by the user. The screen is supposed to scroll so that the user character never moves out of the user's view, but I don't know how to do this.

    Does anyone know of any function I could use to achieve this?

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Aug 2007
    Location
    Gizeh, Al Jizah, Egypt, Egypt
    Posts
    8,675
    Blog Entries
    12
    Rep Power
    81

    Re: How to scroll the screen in openGL

    the only way to do that is to manipulate the camera postion
    if i were you, i would draw the whole scene and show just a part of it to the user, when the character moves i move the camera position
    yo homie i heard you like one-line codes so i put a one line code that evals a decrypted one line code that prints "i love one line codes"
    Code:
    eval(base64_decode("cHJpbnQgJ2kgbG92ZSBvbmUtbGluZSBjb2Rlcyc7"));
    www.amrosama.com | the unholy methods of javascript

  4. #3
    Daskill is offline Newbie
    Join Date
    Dec 2008
    Posts
    24
    Rep Power
    0
    How do I manipulate the camera position?

    Anyone?

    What function allows me to move the camera position?
    Last edited by WingedPanther; 03-24-2009 at 01:30 PM.

  5. #4
    Join Date
    Aug 2007
    Location
    Gizeh, Al Jizah, Egypt, Egypt
    Posts
    8,675
    Blog Entries
    12
    Rep Power
    81

    Re: How to scroll the screen in openGL

    heres an external tutorial about moving camera
    OpenGL
    Simple GL Camera
    yo homie i heard you like one-line codes so i put a one line code that evals a decrypted one line code that prints "i love one line codes"
    Code:
    eval(base64_decode("cHJpbnQgJ2kgbG92ZSBvbmUtbGluZSBjb2Rlcyc7"));
    www.amrosama.com | the unholy methods of javascript

  6. #5
    Daskill is offline Newbie
    Join Date
    Dec 2008
    Posts
    24
    Rep Power
    0

    Re: How to scroll the screen in openGL

    Many thanks.

  7. #6
    Join Date
    Aug 2007
    Location
    Gizeh, Al Jizah, Egypt, Egypt
    Posts
    8,675
    Blog Entries
    12
    Rep Power
    81

    Re: How to scroll the screen in openGL

    you are welcome
    good luck with your project!
    yo homie i heard you like one-line codes so i put a one line code that evals a decrypted one line code that prints "i love one line codes"
    Code:
    eval(base64_decode("cHJpbnQgJ2kgbG92ZSBvbmUtbGluZSBjb2Rlcyc7"));
    www.amrosama.com | the unholy methods of javascript

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 51
    Last Post: 06-20-2011, 06:11 AM
  2. Scroll Bars
    By Root23 in forum JavaScript and CSS
    Replies: 0
    Last Post: 05-30-2011, 11:01 PM
  3. Screen resolution issue and getting rid of gaps around the edges of the screen...
    By HumansAreFriendsNotFood in forum HTML Programming
    Replies: 10
    Last Post: 06-07-2010, 11:07 AM
  4. Scroll Bar
    By JakeWindu in forum C# Programming
    Replies: 3
    Last Post: 02-03-2010, 05:00 AM
  5. How to display an alert with a scroll bar
    By tarek.mostafa in forum JavaScript and CSS
    Replies: 10
    Last Post: 11-11-2009, 04:29 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts