Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Sheepy on November 07, 2004, 05:26:18 pm

Title: over exposure...
Post by: Sheepy on November 07, 2004, 05:26:18 pm
...whats happening with that these days?
Title: over exposure...
Post by: FireCrack on November 08, 2004, 12:56:36 am
May i beg to ask exactly what is over-exposure? is it some sort of blooming effect or what?
Title: over exposure...
Post by: Flaser on November 08, 2004, 02:23:06 am
Quote
Originally posted by FireCrack
May i beg to ask exactly what is over-exposure? is it some sort of blooming effect or what?


Yes it is - it makes light sources wash over the models next to them, there was an experimental build about a year ago that had a rude implementations, but AFAIK the version the SCP team wants will only bloom the glow maps and glow points alog with a couple of light sources (engines ect. ?)
Title: over exposure...
Post by: Ransom on November 08, 2004, 02:32:01 am
I'd like it to be an option to use the effect for everything, rather than just glow maps/points.
Title: over exposure...
Post by: Galemp on November 08, 2004, 02:38:16 am
Everything would make it appear that everything was glowing. :wtf:

But using it on glowmaps and other light sources would be a cheap way to make real-time coronas in the right places.
Title: over exposure...
Post by: Ransom on November 08, 2004, 02:40:20 am
Quote
Originally posted by Galemp
Everything would make it appear that everything was glowing. :wtf:

But using it on glowmaps and other light sources would be a cheap way to make real-time coronas in the right places.

Have you played Sands of Time? They bloomed everything in that, and I liked the effect.
Title: over exposure...
Post by: Flaser on November 08, 2004, 03:00:28 am
Quote
Originally posted by Ransom Arceihn

Have you played Sands of Time? They bloomed everything in that, and I liked the effect.


Aren't you talking about depth of field?
Title: over exposure...
Post by: Ransom on November 08, 2004, 04:31:15 am
No. I'm fairly certain Sands of Time didn't have any depth of field effect. They just bloomed everything, including dark bits, although admittedly it's mainly only noticable with brighter bits.  The effect is kinda hard to capture with screenshots. Clicky (http://newpcmedia.gameworldnetwork.com/screen/1771/8.jpg) (Most obvious on the edges of the tree in the top right)
Title: over exposure...
Post by: Rictor on November 08, 2004, 07:05:43 am
yeah, Sands of Time has it, Guild Wars has it, the new Elder Scrolls has it, Deus Ex 2 has it.

and aside from all that, it looks awesome in and of itself within FS2.
I'm also interested in a status update, please don''t tell me its been dropped from the feature llist..
Title: over exposure...
Post by: Inquisitor on November 08, 2004, 07:38:16 am
I'd like the features we have to work consistently :)
Title: over exposure...
Post by: redmenace on November 08, 2004, 08:10:58 am
well this is sticks idea originally. It is pretty obvious now that he is not coming back.
Title: over exposure...
Post by: FireCrack on November 08, 2004, 05:32:42 pm
IMO everything should be bloomed, then you have the nice glow coming off of shiny armour, but is supose you could bloom enviroment maps for that effect. Either way, would make the game look 100x better
Title: over exposure...
Post by: Omniscaper on November 08, 2004, 11:57:02 pm
I think it would be awesome to have bloom and motion blur to kick in when afterburners are activated. But isn't bloom and motion blur a Directx 9 feature?
Title: over exposure...
Post by: Fry_Day on November 09, 2004, 01:05:01 pm

Well, first of all, every effect is achievable with DX7-class hardware. It's just a question of how much rendering time you want to spend :)

As for the over-exposure effect, it's possible to do it with DirectX 7 (or 6) hardware.

The effect is very simple. First, draw the frame into a texture.
Do some stuff* (explanation later, but generally, darken it)
Then, blur the texture some.
After that, draw the frame again into the backbuffer, and add your darkened, blurred texture to it.

That effect is achievable on just about any hardware (As just about everything supports render-to-texture in some form, which the only prerequisite), but, it's not realistic to do it on anything less than DX8 class hardware (because it can be done much more efficiently, and old hardware is slow anyway), and DX9 hardware can do the effect more correctly (As there's a lot of cutting corners with old hardware because the dynamic range of pixels is limited), and even more efficiently (For example, Multiple render targets lets you draw into several render targets (textures or back-buffers) at the same time, which reduces a lot of the overhead associated with drawing the frame twice for each time it appears on the screen).
Generally, the effect can be done the way it was meant to be done only on PS3.0 hardware (GeForce 6800), and the only place I've seen it done that way is in the latest patch of Far Cry.
Of course, examples of the effect can be seen, for example, in Splinter Cell.


And, well, to sum things up, I need Visual Studio (I've been too spoiled by its IDE).
Title: over exposure...
Post by: Bobboau on November 09, 2004, 04:34:22 pm
needs pixel shaders.
Title: over exposure...
Post by: Ransom on November 09, 2004, 04:41:40 pm
I thought it had already been achieved at some point? I remember seeing a screenshot of it ages ago...
Title: over exposure...
Post by: Liberator on November 09, 2004, 05:03:29 pm
Basically it needs either another render pass which is gonna kill framerates or PS X.X which will exclude at least a portion of the community.  Am I understanding it correctly?
Title: over exposure...
Post by: Anaz on November 09, 2004, 05:08:53 pm
it was achieved ages ago by rendering the scene to a 64x64 texture, and then rendering that on top of everything else with a small alpha value.
Title: over exposure...
Post by: Rictor on November 09, 2004, 08:28:41 pm
so...whats wrong with that?
I mean, from a completely non-techincal point of view...
Title: over exposure...
Post by: Sticks on November 09, 2004, 09:07:32 pm
Yes, this was originally my task to complete, but unfortunately my time is really limited at the moment. Currently my job as a sound manager of a touring musical group has got quite a stiff hold on that. Rest assured, I am still keeping tabs on things, but I don't see myself having any significant time to contribute in the near future.
Title: over exposure...
Post by: Anaz on November 09, 2004, 09:15:55 pm
Quote
Originally posted by Rictor
so...whats wrong with that?
I mean, from a completely non-techincal point of view...


the implimentation wasn't 100%, IIRC, and even though you were rendering to a 64x64 texture, it's still another pass
Title: over exposure...
Post by: Rictor on November 09, 2004, 10:09:52 pm
So in other words, it would drag down the frame-rates significantly, right?
Title: over exposure...
Post by: Taristin on November 11, 2004, 02:02:51 pm
Halo 2 had this, it looked cool on the glowing parts of the Honor warriors...
Title: over exposure...
Post by: Deepblue on November 11, 2004, 05:03:24 pm
:D

It also shows up on specular spots.
Title: over exposure...
Post by: Bobboau on November 11, 2004, 08:45:31 pm
the problem is that just rendering to a low res texture won't work.t needs to be properly blured, otherwise it will just look like a low res rendering.
Title: over exposure...
Post by: Fry_Day on November 12, 2004, 04:12:11 am
The best idea I've seen going about blurring it is drawing to the texture, using the card's auto-mipmap features, and drawing a bit of the lower level mipmaps too as a free blur. No pixel shaders.
Granted, it looks much worse than a true blur, but it works and looks okay.
Title: over exposure...
Post by: Liberator on November 12, 2004, 10:26:45 am
speaking of mipmapping, would it be possible to use mipmapping as a substitute LOD system?  I know in C&C: Renegade, the the models use only one texture map with 4 levels of mipmaps that have to be removed to be edited and then regenerated.
Title: over exposure...
Post by: Bobboau on November 13, 2004, 06:22:15 pm
fry, I've tryed that method and I think it looks bad