Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


Triple buffering


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
4 replies to this topic

#1 vbbartlett   Members   -  Reputation: 122

Like
Likes
Like

Posted 07 August 2001 - 05:00 AM

Background: I have a scene rendered in the back buffer that doesn''t change that often but is complex and expensive to recreate. Thus i don''t clear the backbuffer but rather just SwapBuffer, and then paint in the FrontBuffer to keep it intact. Then i read in a .bmp file and display it using glDrawPixels to the front buffer (so as not to damage the back buffer) but causing flicker. This acts ... in a way like a cursor. Thus its position changes often and must be redrawn constantly. Question: Is there any way to create triple buffering or at least 2 different buffers, one for the background and one for the .bmp and then combine those two in the backbuffer to prevent flicker? While in the process not damaging the background and recreating the .bmp?

Sponsor:

#2 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 07 August 2001 - 05:29 AM

Use texture layers instead: copy your complex scene image to a texture, and your bmp file to another. Now you can redraw them both every frame, it''s just 2 quads. If you want to preserve the zbuffer, then you should mask writes to it.


#3 vbbartlett   Members   -  Reputation: 122

Like
Likes
Like

Posted 07 August 2001 - 06:22 AM

How do i copy the scene to a texture? The scene is created from my display list (not a openGL list) composed of thousands of lines and polygons.

#4 vbbartlett   Members   -  Reputation: 122

Like
Likes
Like

Posted 07 August 2001 - 07:37 AM

Can a transparent overlay plane be used? If so are overlays implemented in software or hardware? Im developing for Win2k and Sun Solaris, are overlay planes implemented on both platforms? How do i actually implement an overlay plane? I haven''t seen any code that would give me an idea if it is possible or how to even begin... Just saw them mentioned and if I could implemnt using them, it would solve this problem

#5 zedzeek   Members   -  Reputation: 528

Like
Likes
Like

Posted 07 August 2001 - 09:13 AM

perfect for this is the winbufferregion extension, example on my site




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS