Results 1 to 3 of 3

Thread: Problem Someone please help!

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2009

    Problem Someone please help!

    Hey, new to the forum and new to openGL, so he goes my problem.

    I have written some code which loads in a few textures and displays one as a background image, I wish to then overlay this image with another image. In a crude attempt at animation i want to load in several images to create basic texture animation. This i can do HOWEVER the problem is how do i keep my background image whilst playing the animation over the top of it? I'm confused with regards to buffers and matrix pushing and popping. I hope someone can help or at least point me in the right direction, thanks!

  2. #2
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Grenoble - France

    Re: Problem Someone please help!

    Trying to give a high level view :

    for each frame :
    - glClear color(+depth if needed)
    - draw static background image
    - draw current overlay image
    - swapbuffers

    This should be enough.

  3. #3
    Junior Member Newbie
    Join Date
    Jan 2009

    Re: Problem Someone please help!

    Brilliant, thanks for the response I will give this ago.


Similar Threads

  1. Replies: 1
    Last Post: 09-23-2016, 02:24 PM
  2. Shading problem? (pyglet-problem?, my problem?)
    By H2OBrain in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 12-03-2009, 08:31 AM
  3. Replies: 4
    Last Post: 09-27-2004, 06:27 AM

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