(C++)Irrlicht 1.1 : Fake Glow,Dream and Night Vision

Post those lines of code you feel like sharing or find what you require for your project here; or simply use them as tutorials.
Simson
Competition winner
Posts: 95
Joined: Wed Nov 30, 2005 8:53 am
Location: France : midi pyrénées

(C++)Irrlicht 1.1 : Fake Glow,Dream and Night Vision

Post by Simson »

Hello,
I have made a small library effect for irrlicht 1.1.
Just a simple Fake Glow,Fake dream and Fake night vision effects.
It work only with CameraSceneNodeFPS.
I think it has some errors in the code because i learn C++.
But the result and the idea are here.


Render without Effect :
Image

Render with fake Night Vision :
Image

Render with fake Glow :
Image

Render with fake Dream Filter :
Image

And here you can get the C++ code and binary for windows
HERE

Bye.
Last edited by Simson on Sun Feb 18, 2007 2:19 am, edited 1 time in total.
andrei25ni
Posts: 326
Joined: Wed Dec 14, 2005 10:08 pm

Post by andrei25ni »

:shock:

Super, downloading now... :D


--------
After download :
--------

It's just great. I like the night-vision effect. Great work.
Halan
Posts: 447
Joined: Tue Oct 04, 2005 8:17 pm
Location: Germany, Freak City
Contact:

Post by Halan »

why doesnt it work with the normal camarascenenode :(
Simson
Competition winner
Posts: 95
Joined: Wed Nov 30, 2005 8:53 am
Location: France : midi pyrénées

Post by Simson »

It's limited at Camera FPS because my level in maths is low and i don't know how to get the camera rotation.
If you find the solution, don't hesitate to post the code :).
stodge
Posts: 216
Joined: Fri Dec 05, 2003 5:57 pm

Post by stodge »

Wow! I like the fake dream filter - very nice!
RapchikProgrammer
Posts: 279
Joined: Fri Dec 24, 2004 6:37 pm

Post by RapchikProgrammer »

wow! Love the filters, downloading em rit now! Hope they work on dx too cause i hav seen some similar shaders before on the forums but required ogl! :(!
dawasw
Posts: 357
Joined: Tue Aug 10, 2004 4:39 pm
Location: Poland

Post by dawasw »

Simson I love you :*, will u marry me ?

This is the definately best effect scene node made so far.

It works extremely fast and the quality is excellent.

150 ~250 fps on gf6600 gt & 2 ghz + amd.

You're my hero, thank you for this.
omaremad
Competition winner
Posts: 1027
Joined: Fri Jul 15, 2005 11:30 pm
Location: Cairo,Egypt

Post by omaremad »

The Dream filter looks really nice, kind of like prince of persia, ill download this it looks fun.
omaremad
Competition winner
Posts: 1027
Joined: Fri Jul 15, 2005 11:30 pm
Location: Cairo,Egypt

Post by omaremad »

You have just inspired me to adjust stuff in my shader!, i found the Dream filter method can be used for some kind of volumetric lighting/ light shards if applied to only bright pixels, kind of like a Nehe tutorial, however i found your effect to be more impressive. Nice work i am particularly surprised you didnt use shaders but the effect is nicer in the end. I hope you can com up with more cool stuff.
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post by Spintz »

I really like the effects, and it makes a nice and easy way to get them without having to get into any shaders.

However, with the multiple full screen quads for the dreamFilter, for instance, the fill rate and blending can really kill the FPS.

EDIT: Omar, these same blurring/glowing effects can be done with a shader and a single screen quad. And it's a little faster, because you are sampling the texture multiple times and rendering one full screen quad, rather than offsetting and rendering multiple full-screen quads.
Image
Simson
Competition winner
Posts: 95
Joined: Wed Nov 30, 2005 8:53 am
Location: France : midi pyrénées

Post by Simson »

Thanks all
There is some bugs, but i work to correct the code.
Spintz: for the shader i know they can increase speed but i'm newbie with c++ and irrlicht... in first time, i prefer limit myself without shader :).
Bye.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Does anyone know of a night vision effect without shaders and without RTT?
omaremad
Competition winner
Posts: 1027
Joined: Fri Jul 15, 2005 11:30 pm
Location: Cairo,Egypt

Post by omaremad »

3-ways.

Have two sets of textures, 1 normal and one night vision(which would be precalculated making the bright parts exponentially brighter than the normal parts. Apply a green screen quad.

Just increase the gamma value, apply screen quad.

Have night vision lightmaps which have more contrast than a normal lightmap and then use additive lightmap blending, apply green quad.
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post by Spintz »

Simson wrote:Thanks all
There is some bugs, but i work to correct the code.
Spintz: for the shader i know they can increase speed but i'm newbie with c++ and irrlicht... in first time, i prefer limit myself without shader :).
Bye.
I think this is great stuff, I really wasn't trying to be negative. It's actually very cool to be able to get it done without shaders, every implementation I've looked into says you've required shaders. I see why now, but it's still very cool. I definitely was not trying to be negative about this at all.
Image
Simson
Competition winner
Posts: 95
Joined: Wed Nov 30, 2005 8:53 am
Location: France : midi pyrénées

Post by Simson »

Yes Spintz, i know you are not negative :).
I have tested my code with the SVN version of irrlicht, and ... It's me or in the 1.1 version the FOV of camera it's buggy ?
Before for getting the size of the quad, i have tested with pythagore and for irrlicht 1.1 that doesn't work.
Now with the SVN version that work perfect ...
Post Reply