Jump to content
  • Advertisement


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


P buffer

This topic is 5926 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

I''ve certainly looked into it, but my view was that the pros didn''t outweigh the cons...


you can render to a texture in exactly the same way you render to the colour buffer.
render to a texture without rendering to the colour buffer... (if you are rendering a sky box, for example, then this is pretty worthless as it will overwrite it anyway)
larger textures than screen size. (I see little need for this)

very limited hardware support (ie, if you use it, you will still have to code a generic version using the colour buffer)...
managing states (ie, are we rendering to what now?) seemed to me to be needlessly complex...

Share this post

Link to post
Share on other sites
the pros are much bigger depending on what you want to do. but the cons are stressing.
its hard, its complicated, its unintuitive and it is not standartised (its a WGL_ARB, and XGL_ARB, not a GL_ARB). hm no, hw support is ok. all nvidia cards and ati cards do have it, all new cards will have it.

drawing to bigger sizes than screen is very useful depending on app. say you have a 1024x1024 shadow buffer texture (and that is for example in the exterior even a small buffer for the sunshadows), you see that its very unlikely that you can ensure that your screen is big enough (not everyone can play at 1280x1024 ..)

you say 1024^2 is too big? okay, one step back. 512x512 is today a standartsize for a detailed texture. 640x480 or 800x400 are too small.. and i use those for nearly all new games (gf2mx is not that pixelintensive).

but i have to admit i dropped support for all the fancy stuff i could do with it just because its so unhandy and resulted in unsolveable bugs.. (the bug was not on my gpu but on other nvidia gpu''s, and that made it nearly impossible to solve, mostly because its a bug not by me but by the drivers, and i used the same driver as the ones with bug used)

can''t wait for dx9, where you can draw to 4 buffers at once, and bind them as texture like every other texture.. yai, thats the interface design i really wanted for GL_ARB_render_texture.. what they have done, is crap. the whole pixelformat interface and design is crap anyways..

"take a look around" - limp bizkit

Share this post

Link to post
Share on other sites
I added Pbuffer to my ShadowMap demo. It went from 26fps to 56 fps.
A very worth while thing to have.
I''m gonna to look for updates to it for the newer cards.

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!