|
|||||||
![]() |
|
|
Thread Tools |
|
||||
|
Hey
Recently i`ve been trying to implement SSGI (screen space global illumination) and HDR (tonemapping with auto exposure) in Game Engine. I couldn`t get SSGI to work as BGE doesn`t have Normal Buffer yet. Otherwise it works really well. HDR is still work in progress, but while making it, I came up with these simple filters.
screenshot: ![]() and a blend Few_Simple_Filters.blend Controls: 1 - noise 2 - vignette 3 - retinex mouse/wasd - rotate/move camera mouse wheel - change retinex value up/down - noise amount left/right - vignette size ______________________________________________ edit: HDR is here: HDR.blend It will run properly only with Blender 2.49RC3 or newer build. Controls: same as before. only now press 1 to enable HDR rendering. 2 - noise 3 - vignette 4 - retinex screenshot showing difference in exposure: ![]() video, with filter in motion http://www.youtube.com/watch?v=8bO9enLeJig Luminance info is taken form 5 points close to center of the screen. _________________________________________________ version 2.0 HDR2.0.blend controls: 1 - HDR 2 - Noise 3 - Vignette 4 - Retinex 5 - Gamma correction 6 - barrel Distortion 7 - underwater-like screen distortion 8 - DoF with blurred depth map 9 - DoF without blurred depth map 0 - edge blur filter i - technicolor 1 Film Filter o - technicolor 2 Film Filter n - normals b - bloom l - light scattering z - ZX Spectrum 1 x - ZX Spectrum 2 r - Radial Blur p - BleachBypass j - color channel remapping with curves
............................................
www.martinsh.co.nr - gallery is broken.. Blender artworks: Shotgun Assault Rifle Realtime Bathroom Demo Advanced GLSL 2D Filters Last edited by martinsh; 04-Jul-09 at 19:31. |
||||
|
#1
|
||||
|
|
|
||||
|
cool!
nice work!
............................................
i do voice acting, so if anybody needs a voice actor for a animation of anything im here. ![]() HI, don't forget to be random.... and remember, the world began and will end with cheese, your fate rests with the cheeses, its thought commands all things, like..."bom bom bom" the end of blender! (wakes up) O.O ...no...it cant be.... To be continued.... maybe... CBM "rawrrrr......" |
||||
|
#2
|
|
||||
|
That's awesome!
I was thinking today about controlling bloom through properties, and the retinex filter does exactly what I wanted. ![]() Thanks a lot martinsh!
............................................
http://thisroomthatikeep.blogspot.com/ |
||||
|
#3
|
|
||||
|
mm nice! so the retinex filters is like the reverse of a bloom shader right?
............................................
when you ASSUME you just make an ASS of U and ME. e-mail: mickaelfortier616@msn.com |
||||
|
#4
|
|
||||
|
Well technically yes, reverse of retinex looks like a bloom. Actually that`s how i accidentally came up with retinex. But retinex itself doesn`t look like reverse of bloom
. Reverse of bloom looks like this:
............................................
www.martinsh.co.nr - gallery is broken.. Blender artworks: Shotgun Assault Rifle Realtime Bathroom Demo Advanced GLSL 2D Filters |
||||
|
#5
|
|
||||
|
Quote:
http://blenderartists.org/forum/showthread.php?t=156301
............................................
DeviantArt site! - My BGE page - Youtube And some threads: Hero of the Day (BGE) - Some Parallax Mapping - Lip script syncronisation for BGE - 2D character sprite script - Pick up, move, throw and crash! Animation - Cartoon woman animation - Other renders - Spy woman on hideout |
||||
|
#6
|
|
||||
|
I just finished High Dynamic Range 2D Filter.
Done with cooperation with Mike Pan (mpan3) and Dalai Felinto (dfelinto). blend: HDR.blend It will run properly only with Blender 2.49RC3 or newer build. screenshot showing difference in exposure: ![]() without and with HDR enabled ![]() video, with filter in motion http://www.youtube.com/watch?v=8bO9enLeJig Controls: same as before. only now press 1 to enable HDR rendering. 2 - noise 3 - vignette 4 - retinex Luminance info is taken form 5 points close to center of the screen.
............................................
www.martinsh.co.nr - gallery is broken.. Blender artworks: Shotgun Assault Rifle Realtime Bathroom Demo Advanced GLSL 2D Filters Last edited by martinsh; 20-May-09 at 20:31. |
||||
|
#7
|
|
||||
|
I was joking when i said next week, but you really did it.
Good job.![]() Quote:
http://www.gamerendering.com/2008/09...-screen-space/ By the way: you can bake the radiosity to texture: http://vi-wer.de.tl/Lightmap-Tutorial.htm But please use the "selected to Active"-Button in the bake panel.
|
||||
|
#8
|
|
|||
|
OOh.......MYGAD![/Janice]
awesome! The first three works but the HDR doesn't run as it should, or not at all. It prints the full script to the console then Quote:
|
|||
|
#9
|
|
|||
|
The work is amazing, however it produces too dark an image to be called a lighting enhancer, so I took the two lines of code that said
Code:
Code:
To everyone reading, these two values are all you need for lots of darkness/brightness/contrast variation provided by this filter and you don't really need to be a programmer just to change a couple of numbers. |
|||
|
#10
|
|
||||
|
Doesn't seem to work on ATI card.
Heres a full copy of the error that gets printed: http://www.pasteall.org/5669/text It's the same error as the one Sim88 had.
............................................
Nanoshooter |
||||
|
#11
|
|
|||
|
Looks awesome, they are make magic!
|
|||
|
#12
|
|
||||
|
Fantastic Martinsh!!!!
Absolutaly Amazing!
............................................
Starats Studio! Brasil tb tem Blendero! ![]() Blog: http://obalbio3d.wordpress.com/ Ruínas2.0 : http://blenderartists.org/forum/showthread.php?t=152668 "O Blender não é mt carismático mas.... " |
||||
|
#13
|
|
||||
|
wow great work!! many thanx
![]() dreams come true to BGE |
||||
|
#14
|
|
||||
|
Quote:
BLA ... stupid ATI card |
||||
|
#15
|
|
|||
|
Joining you with 9600xt
![]() Not working..
............................................
Visit my Realtime 3D Projects http://digitalspine.blogspot.com |
|||
|
#16
|
|
||||
|
WOW!!!! It keeps getting better and better!!!
|
||||
|
#17
|
|
||||
|
Here is HDR that should work also on ATI cards. It is without bloom, but you can enable it with retinex filter separately.
HDR1.3.blend
............................................
www.martinsh.co.nr - gallery is broken.. Blender artworks: Shotgun Assault Rifle Realtime Bathroom Demo Advanced GLSL 2D Filters |
||||
|
#18
|
|
||||
|
martinsh can you look at problematics of tone and gamma corrections and introduce some 2d filter for it please?
would be nice to have gamma corrected BGE output... it's easier to make more photorealistic look (altought if one want use it it will introduce use of linearized colors for materials/textures.. but who cares it's just one more step to do in gimp) see here: what's going on - http://www.ypoart.com/tutorials/tone/index.php thread about it using composite nodes on render output - http://blenderartists.org/forum/showthread.php?t=119205 here is your hdr1.jpg with tone and gamma correction to see difference |
||||
|
#19
|
|
|||
|
This is amazing!
I remmember previously looking at this, when you had the reflection mirror objects, you used mouse.py to allow the mouse to freely move the camera, you wouldnt happen to have a link to a tutorial for that would you? |
|||
|
#20
|
![]() |
| Bookmarks |
| Thread Tools | |
|
|