Results 1 to 3 of 3

Thread: How to make an object move without moving the background picture

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2002
    Location
    Singapore
    Posts
    1

    How to make an object move without moving the background picture

    Hi,
    i'm only started learning how to use OPenGl recently. and i got this problem of moving an object without having the background picture being reload..

    is there a way for just clearing the front object without clearing and loading the background picture again

  2. #2
    Member Newbie
    Join Date
    Aug 2002
    Location
    Germany
    Posts
    35

    Re: How to make an object move without moving the background picture

    I don`t think that you can just reload the front objects, because the pixel info of the background in the framebuffer is replaced by the fragments of the front objects.
    I am surprised that you already have a background, taking into account that you just started with OpenGL. I think the only way to handle backgrounds reasonable is by using the texture memory and this involves texture mapping

  3. #3
    Senior Member OpenGL Guru
    Join Date
    Jun 2000
    Location
    Gastonia, NC, USA
    Posts
    2,068

    Re: How to make an object move without moving the background picture

    Yes you have to redraw your screen every time you change something in the sceen.
    But by reloading image you mean loading from disk or just redrawing it to the screen.

    If you mean loading it from disk, you should load it and save it in memory, best way would be as a texture.

    If you mean just redrawing it to the screen every time, yes you have to do that.


    Originally posted by Wayne Linker:
    Hi,
    i'm only started learning how to use OPenGl recently. and i got this problem of moving an object without having the background picture being reload..

    is there a way for just clearing the front object without clearing and loading the background picture again

Similar Threads

  1. Replies: 3
    Last Post: 04-24-2014, 12:36 PM
  2. How to make an object motion move?
    By Alvin31 in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 11-14-2010, 12:11 AM
  3. Picture in background
    By fortikur in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 11-30-2002, 09:54 AM
  4. How to make an object move randomly?
    By candy in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 10-10-2002, 07:10 AM
  5. how to make the an object move
    By shuneese in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 08-11-2002, 12:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean