Jaysmito101 / TerraForge3D

Cross Platform Professional Procedural Terrain Generation & Texturing Tool
https://Jaysmito101.github.io/TerraForge3D/
MIT License
948 stars 90 forks source link

macOS build fails to launch with error: GLFW Error: 65543: Requested OpenGL version 4.3, got version 4.1 #57

Open drhaynes opened 8 months ago

drhaynes commented 8 months ago

Describe the bug Fails to launch on macOS due to wrong version of OpenGL present.

To Reproduce Steps to reproduce the behavior:

  1. Build gen3 branch for macOS, see: https://github.com/Jaysmito101/TerraForge3D/pull/56
  2. Run ./build/tf3d
  3. See error GLFW Error: 65543: Requested OpenGL version 4.3, got version 4.1

Desktop (please complete the following information):

Additional context macOS has deprecated OpenGL and the version that ships with macOS is stuck at 4.1 (until it will presumably be removed entirely).

Presumably the features from 4.3 (compute shaders, etc.) are required, so we can't simply downgrade to 4.1.

If this is the case, it will probably be required to switch to Vulkan and a Vulkan-atop-Metal library like MoltenVK on macOS. This is, afaik, what the Godot project has done.

There is also the Zink project, which implements OpenGL on Vulkan, which may be another option: https://www.collabora.com/news-and-blog/blog/2018/10/31/introducing-zink-opengl-implementation-vulkan/

Jaysmito101 commented 8 months ago

I did start working on a Vulkan version (Vulkan branch) a few months ago but It was taking way too much time doing it all by myself so I kind of stalled on that and moved on improving the core features of this and making it more optimized. I dont really plan on resuming the Vulkan version any time soon.

In my option zink is really the best option out there.