Page 4 of 5

Posted: Tue Jul 08, 2008 9:16 am
by dlangdev
i know this is bordering fetishism already, but i can't stop testing this code. so far, it's holding up pretty well.

Image

Posted: Tue Dec 30, 2008 2:51 am
by DtD
Very nice :)
One thing I did notice: You can't refract a refraction (EG: If you look through the window, the dwarf just dissapears) its understandable, and wouldn't be a problem for most games, but just thought I should point it out.

Also, I think the water effect would be much nicer with something like meatballs, although I don't know if it is feasible to accomplish without ruining the speed.

~DtD
PS> Sorry for the bump, but it was discussed in here and I didn't want to get off topic there.

Posted: Tue Dec 30, 2008 5:09 am
by twilight17
DtD wrote:Very nice :) Also, I think the water effect would be much nicer with something like meatballs...
:lol:

Posted: Tue Dec 30, 2008 11:07 am
by sio2
DtD wrote:Very nice :)
One thing I did notice: You can't refract a refraction (EG: If you look through the window, the dwarf just dissapears) its understandable, and wouldn't be a problem for most games, but just thought I should point it out.
Good point. Anything refractive isn't rendered when composing the render-target texture that's used in the refractive lookup. Can be solved via recursive rendering, but could get very expensive.

The other issue is the distortion of the refractive quad when it intersects the bottom edge of the viewport.
DtD wrote:Also, I think the water effect would be much nicer with something like meatballs, although I don't know if it is feasible to accomplish without ruining the speed.
Metaballs are more useful than meatballs I would guess (unless you're hungry). :lol:

Metaballs are easy when there's just two of them. When there are 60000 fluid particles it gets more involved. :wink: Blindside's raindrop shader may well be good enough for most people - and it's a relatively cheap shader.

Posted: Fri Jan 02, 2009 8:00 am
by DtD
He he, oops. I don't even like meatballs (or ground meat for that matter.)

Yeah, I know refracting what was already refrected would be expensive, just thought I'd point it out.

Expensive? Yes. Very Cool? Yeser Yes.
Perhaps I'll do it somtime if I am bored :lol:

~DtD

Posted: Fri Jan 02, 2009 2:11 pm
by BlindSide
sio2 wrote:it's a relatively cheap shader.
Theres room for improvement here. It wouldn't be too difficult to use a screenquad to copy the RTT to another, then use that second RTT to draw. When switching rendertargets you simply don't clear the ZBuffer and disable the ZWriteEnable flag on the screenquad material to preserve the ZBuffer state so that when the raindrops are rendered they are properly culled.

Cheers

Posted: Thu Feb 12, 2009 10:16 am
by stefbuet
Thank a lot for this refraction shader, really useful! :wink:

Posted: Mon May 04, 2009 12:46 pm
by cr33
wooooooooooow!! :o
these are amazing effects!
^ just needed to show my appreciation

Posted: Tue May 05, 2009 2:41 pm
by Cloudef
Was too lazy to compile so ran trough Wine 1.20,
Using Ubuntu Jaunty (9.04)

Image

Im impressed with the perfomance even when not running as native linux app, good work BlindSide! :wink:
When you go under the water drops, it reminds me of Bioshock, that gave me a idea... :idea:

Posted: Fri May 08, 2009 10:29 am
by cr33
haha... by the way, THIS burnt my graphics card... i mean i don't know if actually running the example program was the reason... but after 30 seconds( i was looking at glass dwarf) i saw green artifacts and my screen went black...
my card was GF 7600GS


now i'm too frightened to experiment with irrlicht. i think i'll learn basics first and then experiment with effects

Posted: Fri May 08, 2009 10:44 pm
by FuzzYspo0N
That happens if your card overheats, which an happen for any number of reasons...

Posted: Fri May 08, 2009 11:08 pm
by Nadro
cr33 wrote:haha... by the way, THIS burnt my graphics card... i mean i don't know if actually running the example program was the reason... but after 30 seconds( i was looking at glass dwarf) i saw green artifacts and my screen went black...
my card was GF 7600GS


now i'm too frightened to experiment with irrlicht. i think i'll learn basics first and then experiment with effects
It wasn't cause by Irrlicht, it was Your graphic card defect...

Posted: Sat May 09, 2009 8:22 am
by BlindSide
Yes I recently purchased a 9600GT and had to replace it for a 9800GT because of this dreaded bug: http://forums.nvidia.com/index.php?showtopic=61430

It's funny because a lot of people blamed lack of psu power, outdated drivers, etc, when in the end a 9800GT didn't even stutter once.

Anyway you might need a new card, or go easy on the overclocking. :P

Posted: Sat May 09, 2009 10:29 am
by cr33
BlindSide wrote:Yes I recently purchased a 9600GT and had to replace it for a 9800GT because of this dreaded bug: http://forums.nvidia.com/index.php?showtopic=61430

It's funny because a lot of people blamed lack of psu power, outdated drivers, etc, when in the end a 9800GT didn't even stutter once.

Anyway you might need a new card, or go easy on the overclocking. :P
i didn't overclock and my card worked fine for 2 years so i think I didn't do anything that could harm/overheat it. dunno but i updated drivers ~month before (one example of irrlicht working with newton required newest drivers) but also it seems there wasn't any negative effect - I could play e.g. bf2142 on high settings and it didn't burn.

Anyway, I still think what you did is amazing but I don't think i'll try running your demo on my new card(9600GT) :P i have no idea how these things work, maybe this was bad coincidence or i have bad luck or something... but still it's too big risk for me :o I guess i'll do it anyway, after i forget what happened to my previous card

Posted: Sat May 09, 2009 1:28 pm
by BlindSide
Watch out 9600GT does have that bug, you may want to stay clear. The brand I had was based on Palit I think, the 9600GT Sonic.