Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [DBC] Reflective and rippling water in DBC (without a shader)

Author
Message
Attila
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 17th Aug 2004
Location:
Posted: 2nd Nov 2008 18:27 Edited at: 2nd Nov 2008 18:37
In the forums often was said that it is impossible to create reflective and rippling water in DBC because the missing possibility to user shader.

This program is a proof of concept, that it is possible to do. the reflections and the movement of the water are all calculated in the program.

And as a nice side effect the program will run on a older graphic card without shader support (with DX8).

Credits: The rippling is based on Coldfire's code



I will attach the source, the media and a executable in a rar-file

Attachments

Login to view attachments
Attila
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 17th Aug 2004
Location:
Posted: 2nd Nov 2008 18:29 Edited at: 2nd Nov 2008 18:31
I was unable to attach a screen print and the source/media-.rar therefore here is a second post with a screen print

- sorry about double posting

Attachments

Login to view attachments
Coldfire
15
Years of Service
User Offline
Joined: 22nd Oct 2008
Location: Indiana
Posted: 3rd Nov 2008 00:16
Cool, it's good to see someone making use of my ripples, lol. I'm still working on making it look less gel-like. If I come up with anything, I'll let you know.

"They say beer will make me dumb / It are go good with pizza" - Psychostick
Kohaku
19
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 4th Nov 2008 11:19
That's really good for DBC.


You are not alone.
Jetherit
15
Years of Service
User Offline
Joined: 18th Dec 2008
Location:
Posted: 4th Jan 2009 21:30
The reflections seem a little off. I see the reflections as if I was standing to my left.

From JASS to Q-BASIC to Java to C++
Gosub
16
Years of Service
User Offline
Joined: 23rd Sep 2007
Location:
Posted: 26th Jan 2009 23:32
Your last comment should of been this picture doesnt bare any relation to the code, smooth though.

Login to post a reply

Server time is: 2024-05-02 08:07:02
Your offset time is: 2024-05-02 08:07:02