Accumulation

Share your ZGE-development tips and techniques here!

Moderator: Moderators

Post Reply
User avatar
Kjell
Posts: 1715
Joined: Sat Feb 23, 2008 11:15 pm

Accumulation

Post by Kjell » Thu Mar 25, 2010 10:46 pm

8)

Basic example of the accumulation buffer in action ( quite heavy, so use with caution ) using opengl32.

K
Attachments
Accumulation.zgeproj
(2.77 KiB) Downloaded 421 times
Accumulation.jpg
Accumulation.jpg (33.23 KiB) Viewed 6728 times

User avatar
jph_wacheski
Posts: 1005
Joined: Sat Feb 16, 2008 8:10 pm
Location: Canada
Contact:

Post by jph_wacheski » Fri Mar 26, 2010 2:51 pm

Looks great in the images, however I do not get the effect on my card,. any idea?
iterationGAMES.com

User avatar
VilleK
Site Admin
Posts: 2025
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Post by VilleK » Fri Mar 26, 2010 3:30 pm

It works (and looks great!) when I try it on nVidia, but no effect on my ATI-card.

I believe that when the OpenGL context is created you can specifically ask for an accumulation buffer and zge does not do so because we haven't needed it so far and we don't want to fail the video init if no accumulation buffer is available. Perhaps on nvidia it creates memory for accumulation buffer anyway by default.

User avatar
Kjell
Posts: 1715
Joined: Sat Feb 23, 2008 11:15 pm

Post by Kjell » Fri Mar 26, 2010 3:37 pm

Yea,

You're right, there are a couple of Accum related flags available in the PIXELFORMATDESCRIPTOR. Too bad ( doesn't ChoosePixelFormat attempt to select the best PF from your specification, instead of failing when a requested flag isn't supported though? ). But anything you can do using the Accumulation Buffer you can do with shaders as well .. and a whole lot faster too, just takes a bit more effort :)

K

User avatar
y offs et
Posts: 418
Joined: Wed Apr 22, 2009 4:26 pm
Location: BC, Canada

Post by y offs et » Fri Mar 26, 2010 4:25 pm

Not sure. I get forward/back with blurred dots, but nothing like the pics.

Man, if I hadn't snagged an openGL text from a bargain bin once, I wouldn't know what was what!
"great expectations"

Post Reply