lettier / 3d-game-shaders-for-beginners

🎮 A step-by-step guide to implementing SSAO, depth of field, lighting, normal mapping, and more for your 3D game.
https://lettier.github.io/3d-game-shaders-for-beginners/index.html
17.35k stars 1.35k forks source link

Added build-for-mac.sh script in demo/ for macOS Catalina #13

Closed 42yeah closed 4 years ago

42yeah commented 4 years ago

As Panda3D couldn't be installed from the installer in macOS Catalina these days, I wrote this build script to clone the repository down, build Panda3D, then build this project. It might be buggy and it requires the current workdir to be in demo/.

Prerequisite

You need to have the following stuffs installed:

How can I use this?

Simply cd into demo and run, ignoring all errors all the way (if there are any):

cd demo
sh build-for-macos.sh

The executable will be named main. So to execute:

./main

This script is quite ugly and I am just making it work right now. If there are any bugs or improvements to be made, please tell me! Thanks!

Here's a screenshot of it actually running. There are a bunch of warnings, but it works!:

Capture d’écran 2019-12-23 à 11 44 38 PM
rdb commented 4 years ago

I'd like to mention that Panda3D 1.10.5 was just released, which can be installed in Catalina and also comes compiled with libc++: https://www.panda3d.org/blog/sdk-1-10-5-release/

42yeah commented 4 years ago

I'd like to mention that Panda3D 1.10.5 was just released, which can be installed in Catalina and also comes compiled with libc++: https://www.panda3d.org/blog/sdk-1-10-5-release/

Well er, then I guess there's no more need for this then. Thanks!