Game Development Community

Water reflection

by Travis Vroman · in General Discussion · 11/09/2003 (6:40 pm) · 8 replies

OK I just downloaded the new TGE demo, and in the overview I saw that the sun reflected off the water. How do I get this effect?

About the author

Attended the Art Institute of Fort Lauderdale for Video Game Art and Design. Strong background in traditional visual arts. Strong programming skills, particularly in real-time solutions.


#1
11/09/2003 (8:04 pm)
It's specular lighting.
#2
11/09/2003 (8:14 pm)
Ok but how do I acheive that effect?
#3
11/09/2003 (8:21 pm)
Download the 1.2 engine version, and look at the .mis file to see what variables are being used.
#4
11/09/2003 (8:24 pm)
I am using 1.2
#5
11/09/2003 (8:26 pm)
Oops my bad I'm using 1.2 but does that mean I will have to move all of my work to the new version (that's quite a lot of work)

-B
#6
11/09/2003 (8:35 pm)
That's what we did, but we didn't do it for the water specularity.
#7
11/09/2003 (8:37 pm)
Is there possibly a way around this? All of the scripting changes I've made would take ages to move.
#8
11/09/2003 (11:38 pm)
Travis,

I'm not in front of the code at the moment but you should be able to simply move the fluid render C++ files from 1.2 to your code with no problems. I think there is a new dependancy on the lightManager that I put in so you may need to move the files for this as well so you should check that no changes have been made to this since your last update.

Hey, back it up ... try it. :)

- Melv.

fluid.h
waterBlock.h
lightManager.h
fluidQuadTree.cc
fluidRender.cc
fluidSupport.cc
waterBlock.cc