1 registered members (TipmyPip),
18,618
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: EOF 3D - 3D Engine in One File
[Re: lostclimate]
#104149
05/18/07 20:01
05/18/07 20:01
|
Joined: Jul 2004
Posts: 1,924 Finland
Ambassador
OP
Serious User
|
OP
Serious User
Joined: Jul 2004
Posts: 1,924
Finland
|
oh well  , don't like making art though anyway, got basic physics/collision working =D
|
|
|
Re: EOF 3D - bloom implemented
[Re: Ambassador]
#104151
05/26/07 12:37
05/26/07 12:37
|
Joined: Jul 2004
Posts: 1,924 Finland
Ambassador
OP
Serious User
|
OP
Serious User
Joined: Jul 2004
Posts: 1,924
Finland
|
Inestical seems to have wan the bloom battle. Oh well, I was only a day late  . Anyway here is EOF3D built-in bloom: The bloom works in the following way: the scene is first down sampled to 256x256 (faster to blur a smaller image), then it is blurred vertically and then horizonally, and finally the original scene and the blur is combined with the following equation: pixel = original+blur*blur Fairly easy eh? At the start I was having some serious problems with render to textures (basically they didn't render to texture) but then I noticed that I had made a funny mistake and used the wrong function for rendering to textures. Actually I had always thought that the function that I used before noticing my mistake was the correct function, but that function was probably meant for uninitialized textures. I was using a initialized one. Oh well, now it works, and that's the main thing  .
|
|
|
Re: EOF 3D - bloom implemented
[Re: Ambassador]
#104152
05/26/07 18:17
05/26/07 18:17
|
Joined: May 2002
Posts: 2,541 Berlin
EX Citer
Expert
|
Expert
Joined: May 2002
Posts: 2,541
Berlin
|
Hmmm... strange. If you added the blurred picture why there are dark seams around the balls? By adding everything should only get brighter, not more dark.
:L
|
|
|
Re: EOF 3D - bloom implemented
[Re: EX Citer]
#104153
05/26/07 18:39
05/26/07 18:39
|
Joined: Jul 2004
Posts: 1,924 Finland
Ambassador
OP
Serious User
|
OP
Serious User
Joined: Jul 2004
Posts: 1,924
Finland
|
Quote:
Hmmm... strange. If you added the blurred picture why there are dark seams around the balls? By adding everything should only get brighter, not more dark.
I was wondering about that also, but the explanation is pretty simple: when the blur passes are ran, they are ran for the whole scene, that is, for the black parts also. So this creates a "black border" around the balls which is then added to the final result. The catch is here: the area surrounding the border is brighter than the black border itself, so at the black border area, less color gets added, and on the bright area, more color gets in.
|
|
|
Re: EOF 3D - improved bloom
[Re: Ambassador]
#104154
05/27/07 11:35
05/27/07 11:35
|
Joined: Jul 2004
Posts: 1,924 Finland
Ambassador
OP
Serious User
|
OP
Serious User
Joined: Jul 2004
Posts: 1,924
Finland
|
Here it comes! Bloom improved.  Current bloom pipeline: - Downscale scene and run a high pass to detect high intensities - Blur downscaled and downscale to half - Blur downscaled and downscale to half - Blur downscaled - Combine the original and the 3 downscaled blurs
|
|
|
|