Pages: [1] 2 3
  Print  
Author Topic: Framebuffer bloom test  (Read 56910 times)
dmn_clown
Posts a lot
*

Cakes 1
Posts: 1324


« on: November 17, 2007, 03:22:31 AM »

I compiled test binaries to see how it plays on other hardware.

experimental/fbo-test/ in the svn.
Logged

Ylle
Nub


Cakes 0
Posts: 25

Member


« Reply #1 on: November 17, 2007, 08:06:48 AM »

Using the precompiled windows binary:
Nothing on my integrated Intel Express. Not that suprising, but eh, going to try it on a more sensible card in a few moments.

Edit: C:\Documents and Settings\%USERNAME%\Application Data\OpenArena\baseoa\ files untouched.
« Last Edit: November 17, 2007, 08:14:48 AM by Ylle » Logged
fromhell
Administrator
GET A LIFE!
**********

Cakes 35
Posts: 14520



WWW
« Reply #2 on: November 17, 2007, 08:07:27 AM »

Also for some reason my q3config in personaloafolder/gamedir disappeared
Logged

asking when OA3 will be done won't get OA3 done.
Progress of OA3 currently occurs behind closed doors alone

I do not provide technical support either.

new code development on github
Ylle
Nub


Cakes 0
Posts: 25

Member


« Reply #3 on: November 17, 2007, 08:20:34 AM »

I tried
/r_bloom 1
/r_framebuffer_bloom 1

Edit: nothing on a ati radeon 9250 either.
« Last Edit: November 17, 2007, 08:53:52 AM by Ylle » Logged
randombloke
Nub


Cakes 0
Posts: 28


« Reply #4 on: November 17, 2007, 09:58:54 AM »

Well that was interesting.  Using:

ioquake3.x86.exe

seta r_framebuffer 1
seta r_framebuffer_bloom 1

This generates a red screen with an inverse open arena logo on it.  Printed on top is the english alphabet, as it would appear in a mirror on a horizontal line.

Using:

ioquake3.x86.exe

seta r_framebuffer 1
seta r_framebuffer_bloom 1
seta r_framebuffer_rotoscope 1

Very similar, only a black background this time.  An extended character set can be observed as well, again, it too is a mirror reflection.

As this has no effect on my .exe.

//Correction: I don't use SDL as its not required when using windows.  I just added it to allow the experimental .exe to execute.  So, I assume I don't have the hooks for these values in my .exe.
« Last Edit: November 17, 2007, 10:06:01 AM by randombloke » Logged
kit89
Member


Cakes 6
Posts: 636


Shoot him..


« Reply #5 on: November 17, 2007, 11:03:00 AM »

Worked fine for me. Tho it crippled the framerate.

r_bloom 0
r_framebuffer 1
r_framebuffer_bloom 1



and

r_bloom 0
r_framebuffer 1
r_framebuffer_bloom 1
r_framebuffer_rotoscope 1



That was using a Nvidia Geforce 6 6600 256MB
Logged
fromhell
Administrator
GET A LIFE!
**********

Cakes 35
Posts: 14520



WWW
« Reply #6 on: November 17, 2007, 11:09:14 AM »

oh btw the rotoscoping works, and i get high framerates with that on. The bloom never works

in rotoscope the model shading appears flat shaded than gourad Sad very faceted.
« Last Edit: November 17, 2007, 11:16:22 AM by leilol » Logged

asking when OA3 will be done won't get OA3 done.
Progress of OA3 currently occurs behind closed doors alone

I do not provide technical support either.

new code development on github
Crash!!!
Half-Nub


Cakes 1
Posts: 57


hehe...I draw and play


« Reply #7 on: November 17, 2007, 04:35:24 PM »

ok the bloom when turned on is not visible and it cripples framerate
Logged
dmn_clown
Posts a lot
*

Cakes 1
Posts: 1324


« Reply #8 on: November 17, 2007, 10:06:56 PM »

Framerates would drop, its all done on the GPU instead of the CPU.

Have you tried playing around with the defaults?  The effect is subtle, like bloom lighting should be.

 
Code:
    r_framebuffer_bloom_brightness = "0.85"
    r_framebuffer_bloom_sharpness = "0.75"
    r_framebuffer_blur_ammount = "7"
    r_framebuffer_blur_size = "128"

Logged

iLeft.bye
Member


Cakes 1
Posts: 187



« Reply #9 on: November 18, 2007, 04:15:39 AM »

ati x1600 linux 8.37 -> nothing works
windows coming soon!
Logged
next_ghost
Half-Nub


Cakes 0
Posts: 76


« Reply #10 on: November 18, 2007, 04:33:36 AM »

Gentoo Linux, ATi Mobility Radeon x1600, proprietary drivers v8.41, framebuffer+bloom works, framebuffer withou bloom did work, then stopped working, rotoscope looks like fromhell's screenshots.
Logged
iLeft.bye
Member


Cakes 1
Posts: 187



« Reply #11 on: November 18, 2007, 04:50:12 AM »

ati x1600 linux 8.37 -> nothing works
windows coming soon!

edit:
my bad fbo bloom and rotoscope works (you can combine two rotobloom bloomscope) on linux even with standard ubuntu gutsy restricted ATi driver (version 8.37)

windows fails badly I couldnt even enable fbo -> some error message with an emo face -> Sad

further edit:
I applied the patch myself and built one on linux
but it wont work... plus my binary size is bigger ... how did you build your linux x86 binary?
« Last Edit: November 18, 2007, 05:42:41 AM by f0rqu3 » Logged
iLeft.bye
Member


Cakes 1
Posts: 187



« Reply #12 on: November 18, 2007, 05:55:24 AM »

   //create the framebuffer texture space
   if (glConfig.stencilBits > 0) {
      R_FrameBufferCreate_ZS(&screenFbuffer, glConfig.vidWidth, glConfig.vidHeight);
   } else {
      R_FrameBufferCreate_Z(&screenFbuffer, glConfig.vidWidth, glConfig.vidHeight);
   }

R_FrameBufferCreate_ZS is the problem here
so if you set r_stencilbits to 0 you have more chance to run fbo

edit:
after setting r_stencilbits to 0 it my build worked too
« Last Edit: November 18, 2007, 07:00:30 AM by f0rqu3 » Logged
dmn_clown
Posts a lot
*

Cakes 1
Posts: 1324


« Reply #13 on: November 18, 2007, 06:22:39 AM »

further edit:
I applied the patch myself and built one on linux
but it wont work... plus my binary size is bigger ... how did you build your linux x86 binary?

Code:
  OPTIMIZE = -O2 -march=i586 -fomit-frame-pointer \
      -falign-loops=2 -falign-jumps=2 \
      -falign-functions=2 -fstrength-reduce
    HAVE_VM_COMPILED=true

no ffast-math no funroll-loops (great website, bad compile flag).

btw - setting r_framebuffer_blur_size to 10 makes the effect far less subtle for the people that aren't sure if something is happening.
Logged

randombloke
Nub


Cakes 0
Posts: 28


« Reply #14 on: November 18, 2007, 08:41:11 AM »

So, why did I get the mirror image test card thingy?

//I know...my technical descriptions are very complex... Smiley
Logged
dmn_clown
Posts a lot
*

Cakes 1
Posts: 1324


« Reply #15 on: November 18, 2007, 09:06:05 AM »

Quote
I don't use SDL as its not required when using windows.


...waits for the obvious to sink in...
Logged

gord
Nub


Cakes 0
Posts: 11


« Reply #16 on: November 18, 2007, 03:22:13 PM »

Hello, I am the developer of this patch, there are a few things to note:
this patch requires a few extensions. i didn't apply more rigorous extension checking before but i'll add that tonight, for now make sure you defiantly have the following (windows users can use a program called glcaps or something like that, i forget. Linux has glxinfo of course).

GL_EXT_packed_depth_stencil (or GL_NV_packed_depth_stencil)
GL_ARB_depth_texture
GL_EXT_framebuffer_object

GL_ARB_vertex_program
GL_ARB_vertex_shader
GL_ARB_fragment_program
GL_ARB_fragment_shader
GL_ARB_shading_language_100
GL_ARB_texture_non_power_of_two

people having problems when stencil buffers are enabled i would guess do not have packed depth stencil support, this chart suggests that some ati cards for whatever reason do not have this at all: http://www.labri.fr/perso/granier/OpenGL/ext/videocards.html if someone with an ati card could clarify this for me that would be great, if it turns out that ATI really don't have any form of depth-stencil framebuffer support i will just auto-disable stencil so that it at least works.

for people who seem to be having problems with the lighting looking flat shaded, i would first make sure that its not a problem that already exists that is just 'highlighted' by the colour modification the rotoscope shader does, just turn off the bloom/rotoscope effects and take a very close look at the model in question (also if you could post a screenshot with that setup that would be great, so i can take a close look for myself)

for the person apparently having problems with sdl make sure that you are using the latest svn version, with that version there is only sdl support iirc.

i would also like to clarify some of the cvar names (i really need to make these more obvious)
"r_framebuffer" - toggles the framebuffer rendering path
"r_framebuffer_bloom" - toggles the bloom code
"r_framebuffer_blur_size" - the size (in pixels) of the blurred image, higher values will be a higher quality with less popping but obviously, slower (you may need to increase the blur amount too)
"r_framebuffer_blur_ammount" - the size in percentage of the blur, the 'best' value for this is 100/blur_samples.
"r_framebuffer_blur_samples" - only three values will work for this 5, 7 and 9. higher values = higher quality.

"r_framebuffer_bloom_sharpness" - the sharpness between the bright colours and the dark ones when blooming
"r_framebuffer_bloom_brightness" - pretty obvious, 0.85 is a sensible value. for testing i use 10.0 (to make it really show)

"r_framebuffer_rotoscope" - enables rotoscoping
"r_framebuffer_rotoscope_zedge" - uses a different method for edge detection which requires the zbuffer be bound to a texture.

finally how the effect 'should' look, this is my box with regular quake 3 demo four. http://s239.photobucket.com/albums/ff277/gordallott/
Logged
gord
Nub


Cakes 0
Posts: 11


« Reply #17 on: November 18, 2007, 05:35:33 PM »

latest patch should fix problems for some ati users
http://bugzilla.icculus.org/show_bug.cgi?id=3422
Logged
dmn_clown
Posts a lot
*

Cakes 1
Posts: 1324


« Reply #18 on: November 19, 2007, 12:01:49 AM »

updated the bins
Logged

fromhell
Administrator
GET A LIFE!
**********

Cakes 35
Posts: 14520



WWW
« Reply #19 on: November 19, 2007, 04:38:07 AM »

Still not seeing bloom, and still not keeping cfg.
Logged

asking when OA3 will be done won't get OA3 done.
Progress of OA3 currently occurs behind closed doors alone

I do not provide technical support either.

new code development on github
dmn_clown
Posts a lot
*

Cakes 1
Posts: 1324


« Reply #20 on: November 19, 2007, 06:02:19 AM »

does /writeconfig work?
Logged

gord
Nub


Cakes 0
Posts: 11


« Reply #21 on: November 19, 2007, 08:33:45 AM »

the patch should not have anything todo with writing config files, a few cvars are added but not in any way that touches that code. i would suspect problems elsewhere. regarding it not working with that ati card could you please post some sort of information, ie: make sure its run in a terminal of some sort and see if there are any warning messages or anything (especially regarding shader info logs, it could be that your chip does not support the exp() glsl function). also make sure you really turn the bloom brightness up to make sure you arn't getting it.
Logged
dmn_clown
Posts a lot
*

Cakes 1
Posts: 1324


« Reply #22 on: November 19, 2007, 03:38:10 PM »

It doesn't behave nicely when the gl extensions aren't supported (radeon mobility r300e with xorg's ati driver) they are ignored when set before entering a map, but in game changes followed by vid_restarts crash the game.
Logged

gord
Nub


Cakes 0
Posts: 11


« Reply #23 on: November 20, 2007, 02:49:38 PM »

I should have a patch that might fix that up tommorow night (hopefully). i was getting a similar experiance but one that managed to crash xorg entirely.
Logged
iLeft.bye
Member


Cakes 1
Posts: 187



« Reply #24 on: November 20, 2007, 03:46:28 PM »

I should have a patch that might fix that up tommorow night (hopefully). i was getting a similar experiance but one that managed to crash xorg entirely.
I love you
will you add vbo?
Logged
Pages: [1] 2 3
  Print  
 
Jump to: