patriciogonzalezvivo / glslViewer

Console-based GLSL Sandbox for 2D/3D shaders
BSD 3-Clause "New" or "Revised" License
4.62k stars 350 forks source link

shader_prototyping_2022 example problems #301

Closed stephanschulz closed 1 year ago

stephanschulz commented 1 year ago

I cloned the repo via GitHub desktop app on a M1 MacBook Pro with macOS 12.6. I followed these install steps https://github.com/patriciogonzalezvivo/glslViewer/wiki/Compile-on-MacOS

I can run some of the 2D examples from glslViewer/examples/2D; like 00_tests/test.frag, 02_double_buffers. But 03_convolution_pyramids/poisson_clone.frag or any of the other examples in this folder nor any any of the shader_prototyping_2022 examples work.

Screen Shot 2022-10-23 at 10 21 01 AM

Screen Shot 2022-10-23 at 10 19 47 AM

Do you have any advice?

Here is my compile report

stephanschulz@Stephans-Komputer glslViewer % cd build 
stephanschulz@Stephans-Komputer build % cmake ..
-- Including Cocoa support
-- OPENGL_LIBRARIES: /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/OpenGL.framework;/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/OpenGL.framework
-- OPENGL_opengl_LIBRARY: 
-- Found FFMPEG: /opt/homebrew/lib/libavdevice.dylib;/opt/homebrew/lib/libavfilter.dylib;/opt/homebrew/lib/libavformat.dylib;/opt/homebrew/lib/libswscale.dylib;/opt/homebrew/lib/libavcodec.dylib;/opt/homebrew/lib/libswresample.dylib;/opt/homebrew/lib/libavutil.dylib;$<$<CONFIG:Debug>:/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib/libz.tbd>$<$<CONFIG:Release>:/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib/libz.tbd>;m;/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/VideoToolbox.framework;/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/AudioToolbox.framework;/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/Security.framework;/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/CoreFoundation.framework;/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/CoreMedia.framework;/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/CoreVideo.framework;/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib/libiconv.tbd;/opt/homebrew/lib/libavdevice.dylib;/opt/homebrew/lib/libavfilter.dylib;/opt/homebrew/lib/libavformat.dylib;/opt/homebrew/lib/libswscale.dylib;/opt/homebrew/lib/libavcodec.dylib;/opt/homebrew/lib/libswresample.dylib;/opt/homebrew/lib/libavutil.dylib;$<$<CONFIG:Debug>:/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib/libz.tbd>$<$<CONFIG:Release>:/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib/libz.tbd>;m;/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/VideoToolbox.framework;/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/AudioToolbox.framework;/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/Security.framework;/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/CoreFoundation.framework;/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/CoreMedia.framework;/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/CoreVideo.framework;/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib/libiconv.tbd  
-- LIBAV Supported
-- USING GLFW DRIVERS
-- PLATFORM OSX
-- If you are using the static library build, please keep in mind (and inform yourself of the implications) that liblo is licensed with LGPL v2.1+.
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/stephanschulz/Documents/glslViewer/build
stephanschulz@Stephans-Komputer build % make
Consolidate compiler generated dependencies of target lo_static
[ 12%] Built target lo_static
Consolidate compiler generated dependencies of target glfw
[ 34%] Built target glfw
Consolidate compiler generated dependencies of target vera
[ 90%] Built target vera
Consolidate compiler generated dependencies of target glslViewer
[ 91%] Linking CXX executable glslViewer
[100%] Built target glslViewer
stephanschulz@Stephans-Komputer build % sudo make install
Password:
[ 12%] Built target lo_static
[ 34%] Built target glfw
[ 90%] Built target vera
[100%] Built target glslViewer
Install the project...
-- Install configuration: ""
-- Installing: /usr/local/bin/glslViewer
stephanschulz@Stephans-Komputer build % 
patriciogonzalezvivo commented 1 year ago

Hi! Seams you are compiling the examples without the geometry asset. Take a look to the Makefile to see how to run the examples. I will later add better documentation to it.

stephanschulz commented 1 year ago

Thanks for the reply. In deed this way of running the examples works just fine. Thanks for the tip.

stephanschulz@Stephans-Komputer build % cd /Users/stephanschulz/Documents/glslViewer/examples/3D/01_lighting 
stephanschulz@Stephans-Komputer 01_lighting % glslViewer 00_gooch.frag head.ply -l
stephanschulz commented 1 year ago

Just to confirm, looking in to the makefile file and using the commands like glslViewer 06_b_mt.vert 06_b_mt.frag assets/skull.obj -l makes the examples work perfectly. Screen Shot 2022-10-23 at 2 44 40 PM

Thanks again.

patriciogonzalezvivo commented 1 year ago

Yay! See you on Tuesday! Thank you.