I am trying to get Eric Bruneton’s “Real-time Realistic Ocean Lighting using Seamless Transitions from Geometry to BRDF” running on OSX 10.10 Yosemite, OpenGL 4.1, or at least using GLSL 3.2 or later.
You can get the code form his website (I can’t link as a newbie here)
I have his code running under a OGL 2.1 context with a few minor changes. It does have some graphical errors though. The nature of the corruption changes each time I run it but normally the ocean gets a lot of black triangles. Occasionally I will run it and I don’t get the black triangles and things look much better but there are other oddities, e.g. I don’t get the special highlights from the sun rendered properly, and also the output looks different to his videos as if there is another fragment shader error.
First question: Anyone get similar issues, any solutions?
Anyway, rather than worrying too much about the OGL 2.1 artifacts I really want to port the code to be at least OGL 3.2/GLSL3.2 core compliant. I mainly develop on OSX and Apple doesn’t provide any backwards compatibility. I’ve been trying to port the code but I am only a beginner GL coder. Even finding resources on how to update GLSL120 code to 320 or later seems scarce and it is proving very hard to find clear documentation about the differences and changes that should be done.
Second question: Anyone ported his code to OGL 3.2 or later? I don’t want to reinvent the wheel here. I believe his ocean rendering and atmospheric scattering demos have been popular in the community.
I have both compiling and running but nothing is rendered at all. I’m in the midst of trying to debug this so don’t have a specific query but after sinking in many hours of my limited free-time I thought I would reach out to see if someone has done similar?
Actually what I would really like is to get his Proland terrain engine up and running on OSX. I have similar issues getting his ORK library (a dependency of Proland) to display anything correctly but that code base is much bigger and more complex so i thought I would start with his tech demos.
Thanks for reading.