Results 1 to 6 of 6

Thread: Oceans and water

  1. #1

    Oceans and water

    Hi guys!

    I'm looking for some examples of water/ocean made in pascal and with preferably GLSL-shaders.
    I have a hard time making a "simple" reflective water with scrolling normal maps using GLSL...
    The reflection can simply be a sky texture.
    I'm mainly using Lazarus + GLScene.

    Thanks in advance!

  2. #2
    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)

  3. #3
    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:
    But it's neither Pascal or GLSL, so I have a hard time implementing it in GLScene.


  4. #4
    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:
    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.

  5. #5
    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.

  6. #6
    There is also a waterShader unit,
    But it also does not use normal maps.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Comodo SSL