Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

jkettles16

Saving buffer info

This topic is 5776 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Does anyone know how to save and recall both depth and color buffer infomation? I need to be able to save a part of a sence and recall it at any time without losing it. jkettles16 of Venosoft "Life is a double edged sword, we always hope to strike though adversity with the shining side..." jkettles16 of Venosoft

Share this post


Link to post
Share on other sites
Advertisement
I thought glReadPixels only saved color buffer info? That still leaves me without a way to save the depth buffer. My main problem is I''m running the program on a computer with low specs, and I really want to cut out as much ploygon drawing as possible, but I can''t seem to think of any other ways to optimize the program further. My idea was to draw the major stuff that never needs to be updated once and keep track of it''s color and depth info for every subsequent frame. When I need the info I could do a quick buffer copy or something. I thought display lists for a moment but they have to excute those commands for drawing as well and they only do it maybe a slight bit faster, but not nearly fast enough. There must be some way to quick save and load full framebuffer info...

"Life is a double edged sword, we always hope to strike though adversity with the shining side..."

jkettles16 of Venosoft

Share this post


Link to post
Share on other sites
quote:
Original post by RipTorn
glReadPixels.
but note that it''s very very very, VERY, VERY ,

VERY

slow.

| - Project-X - my mega project.. big things comming soon - | - adDeath - an ad blocker I made - | - email me - |


Hmmm... could you be just a liiitle bit more specific - just how slow?

Crispy

PS - don''t bother answering this post - I rather enjoyed counting your very''s

Share this post


Link to post
Share on other sites
quote:
Original post by Crispy
Hmmm... could you be just a liiitle bit more specific - just how slow?



it''s

slow.

k?



| - Project-X - my mega project.. big things comming soon - | - adDeath - an ad blocker I made - | - email me - |

Share this post


Link to post
Share on other sites
quote:
Original post by RipTorn
[quote]Original post by Crispy
Hmmm... could you be just a liiitle bit more specific - just how slow?



it''s

slow.

k?



| - Project-X - my mega project.. big things comming soon - | - adDeath - an ad blocker I made - | - email me - |

Dammit - that''s a tad too slow... You sure absolutely about that?

Crispy

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Ok, that was just obnoxiuos. Anyways, you can use glReadPixels to grab detph buffer data also I beleive.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
just a thought ...you could try using display lists for the part of the scene that doesnt need to be rendered more then once....though I''m not sure of the increase/decrease in speed compared to a glReadPixels aproach

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!