Are you talking here about reflection of things on water surface like reflection of coastline or ships on water surface or are you talking about caustics (subsurface light refraction and reflection) https://en.wikipedia.org/wiki/Caustic_(optics)
Are you talking here about reflection of things on water surface like reflection of coastline or ships on water surface or are you talking about caustics (subsurface light refraction and reflection) https://en.wikipedia.org/wiki/Caustic_(optics)
Hi SilverWarrior!
The reflection can for now be a skytexture, with clouds and maybe a sun. So either a simple texture blended in or a cubeMap.
I'm trying to make it like this one:
His Github: https://github.com/ludwigpe/WaterSimulation
But it's neither Pascal or GLSL, so I have a hard time implementing it in GLScene.
Cheers
Unfortunately I personally don't have much experience with GLScene so I can't help you directly.
But after searching the web a little I found this: http://glscene.pbworks.com/w/page/6437712/TGLWaterplane
This should be a component for GLScene which adds water scene with optional waves so I'm guessing this is what you are essentially looking for. It comes with full source code so I'm guessing it should be enough for you to get started.
Hi SilverWarrior!
Thanks for the reply!
Yes, I'm familiar with that component.
Unfortunatly it doesn't using scrolling normal maps, but the reflection is cool.
There is also a waterShader unit, https://sourceforge.net/p/glscene/co...atershader.pas
But it also does not use normal maps.
Bookmarks