Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [DBP] Contrast/Bloom-Like Effect (No Media or Shaders Required)

Author
Message
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 8th Oct 2008 23:49 Edited at: 15th Oct 2008 02:27
Hi. This is an incredibly simple bloom like effect (it's not really bloom, it just makes stuff more glowy) that uses neither shaders nor media. Press SPACE to toggle the bloom on/off, and enjoy . (A compare/contrast Screenshot is attached.)



I just realized that it's very similar to what agent dink mentioned in this thread, actually. Only now I did it correctly .

EDIT: Now there can be multiple levels of contrast. Use w/s to switch between them:



High levels actually produce a semi useable full screen cartoon shading effect if you don't turn the ambient of the objects off (on spheres at least):



Attachments

Login to view attachments
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 9th Oct 2008 00:34
Here's another compare/contrast screenshot with a skybox.

Attachments

Login to view attachments
AndrewT
17
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 9th Oct 2008 04:12
I like it! You're right, it's not exactly a bloom effect, more of a brightening effect, but it could definitely add some atmosphere to a game, especially a cartoonish game with saturated colors.

Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 11th Oct 2008 06:17 Edited at: 11th Oct 2008 06:17
Thanks . I think it's always useful to have a non shader way to do something for compatability.

Sergey K
20
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 15th Oct 2008 00:58 Edited at: 15th Oct 2008 00:59
i... i... dont see any change.. =/

Get DBP stuff here! - (plugins/models/scripts and more!)
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 15th Oct 2008 02:27 Edited at: 15th Oct 2008 02:27
Really? None of the code I posted did anything on your computer? For the second two, did you try pressing "w" and "s"?

Jesusaurisrex
16
Years of Service
User Offline
Joined: 5th Aug 2008
Location: the heart and soul of all
Posted: 20th Oct 2008 05:54
i dont see it ethir... not even in the screenshots...

Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 20th Oct 2008 23:53
It must be your monitors then. Maybe turning the brightness/constrast up would help.

Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 21st Oct 2008 10:46
The major overhead in shaders is the rendering of an extra camera. If you need to render an extra camera for something like this, then I strongly advise using as small a render image as you can get away with.

Thing is, with say a 128x128 render image, you'd mimick more of a bloom effect because of the resolution drop, it would also speed things up as well.


Health, Ammo, and bacon and eggs!
BMacZero
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 22nd Oct 2008 05:42
I like it, most noticeably, it gives the clouds a more realistic, glowy feel.
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 25th Oct 2008 17:03
Quote: "Thing is, with say a 128x128 render image, you'd mimick more of a bloom effect because of the resolution drop, it would also speed things up as well."


Good point.

Quote: "I like it, most noticeably, it gives the clouds a more realistic, glowy feel. "


Thanks

Login to post a reply

Server time is: 2024-11-22 07:52:06
Your offset time is: 2024-11-22 07:52:06