Glass Pane and Rain Drop refraction demo - Source Included

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki

What do you like better?

The glass pane.
73
88%
The rain drops.
10
12%
 
Total votes: 83

BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Glass Pane and Rain Drop refraction demo - Source Included

Post 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.)
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
Halifax
Posts: 1424
Joined: Sun Apr 29, 2007 10:40 pm
Location: $9D95

Post 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.
TheQuestion = 2B || !2B
dejai
Posts: 522
Joined: Sat Apr 21, 2007 9:00 am

Post 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....
Programming Blog: http://www.uberwolf.com
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post 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...
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
Halifax
Posts: 1424
Joined: Sun Apr 29, 2007 10:40 pm
Location: $9D95

Post 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.
TheQuestion = 2B || !2B
Virion
Competition winner
Posts: 2148
Joined: Mon Dec 18, 2006 5:04 am

Post by Virion »

something wrong with my glass...

Image
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post 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 :(
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post by BlindSide »

Ok, I fixed it. Don't forget to press 1,2,3,4 to check out the colours ;)
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
FuzzYspo0N
Posts: 914
Joined: Fri Aug 03, 2007 12:43 pm
Location: South Africa
Contact:

Post 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
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post 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.
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
arras
Posts: 1622
Joined: Mon Apr 05, 2004 8:35 am
Location: Slovakia
Contact:

Post by arras »

Hmm ...I get Error executing program immediately after clicking on BubbleRefract.exe.
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post by BlindSide »

Very odd, can you compile it yourself and see if it works? Source is included :wink:
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
arras
Posts: 1622
Joined: Mon Apr 05, 2004 8:35 am
Location: Slovakia
Contact:

Post by arras »

Yes it is odd.
I 'll will try to compile it later, right now I have something else. I'll report back...
Virion
Competition winner
Posts: 2148
Joined: Mon Dec 18, 2006 5:04 am

Post by Virion »

What video card are you running?
geforce 8800 GT :D
Masterhawk
Posts: 299
Joined: Mon Nov 27, 2006 6:52 pm
Location: GERMANY
Contact:

Post 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...
Image
Post Reply