Page 1 of 5

Glass Pane and Rain Drop refraction demo - Source Included

Posted: Sun Mar 30, 2008 3:30 am
by BlindSide
Glass pane and rain drop shader driven particle effects:

Image

Image

Image

Image

Image

Fully documented tutorial-style source code included! Make your own raindrop/glass pane particle effects! 8)

Cheers, get it here

(Press 1,2,3,4 for different colours.)

Posted: Sun Mar 30, 2008 4:47 am
by Halifax
I like the glass pane shader a lot more.

On a note about the rain though, I would like to see you implement nVidia's texture atlas approach to having realistic rain affected by precalculated rain "lightmaps" which are held in a texture atlas. Their demo was really cool, and I think it would be fun for you to implement. Just a thought.

Posted: Sun Mar 30, 2008 4:57 am
by dejai
Looks great but.. The Glass had some black line showing, so I could see it broken into 2 triangles.. I will try upload a picture..

Code: Select all

http://dejaigames.com/dump/Images/test.jpg
I Included the Console so you can see the specs....

Posted: Sun Mar 30, 2008 5:03 am
by BlindSide
Halifax wrote:I would like to see you implement nVidia's texture atlas approach to having realistic rain affected by precalculated rain "lightmaps" which are held in a texture atlas. Their demo was really cool, and I think it would be fun for you to implement. Just a thought.
Link please, by texture atlas do you mean a cubemap atlas? I don't see what lightmaps what to do with raindrops though.

That looks really weird dejai, maybe you should disable the specular or something. I tested this on my ATI 200M, so I'm surprised you DX10 card has problems...

Posted: Sun Mar 30, 2008 7:48 am
by Halifax
I don't think it is a cubemap atlas. But they use an atlas, I think, that is indexed into by calculating the distance, and angle, and which the rain drop is from the lights. (It does this for every single drop, in the particle system.) I think they also add some reflection and refraction on top of that. Also, I don't think you need to extrude the quads at runtime with the DX10 geometry shader, so I'm sure that could be taken out, and this could be made DX9/OpenGL. But anyways, here are the links:

Video: Rain video
Whitepaper: Rain whitepaper

And it looks pretty d*** realistic.

Posted: Sun Mar 30, 2008 9:13 am
by Virion
something wrong with my glass...

Image

Posted: Sun Mar 30, 2008 9:16 am
by BlindSide
Thats the same as Dejai's problem. What video card are you running? (Nice FPS btw.)

PS: Looks like I was the only one that voted for rain drops :(

Posted: Sun Mar 30, 2008 10:17 am
by BlindSide
Ok, I fixed it. Don't forget to press 1,2,3,4 to check out the colours ;)

Posted: Sun Mar 30, 2008 10:27 am
by FuzzYspo0N
i voted drops because every second twit has refraction applied to a plane somewhere in his demo screens :D its a generic effect. rain drops are not aAS run of the mill

Posted: Sun Mar 30, 2008 11:38 am
by MasterGod
Halifax wrote:Video: Rain video
Whitepaper: Rain whitepaper

And it looks pretty d*** realistic.
Holy mother of god this looks amazing.

P.S
I voted for the glass - pretty awesome indeed.

Posted: Sun Mar 30, 2008 11:41 am
by arras
Hmm ...I get Error executing program immediately after clicking on BubbleRefract.exe.

Posted: Sun Mar 30, 2008 11:45 am
by BlindSide
Very odd, can you compile it yourself and see if it works? Source is included :wink:

Posted: Sun Mar 30, 2008 12:11 pm
by arras
Yes it is odd.
I 'll will try to compile it later, right now I have something else. I'll report back...

Posted: Sun Mar 30, 2008 2:16 pm
by Virion
What video card are you running?
geforce 8800 GT :D

Posted: Sun Mar 30, 2008 3:11 pm
by Masterhawk
I've got the same weird problem like Virion has but for me the black parts are white.

GFX Card: 1800XT with Catalyst 8.2, i think...