Closed stephanschulz closed 1 year ago
Hi Thanks for bringing this up. It's my fault for the pour documentation. To test the Audio/Video capabilities of glslViewer go to the examples/2D/00_test
folder and there:
glslViewer test.frag --video 0
glslViewer test_audio.frag --audio
glslViewer test_video.frag in.mp4 -w 960 -h 540
I recommend you to use the make
command to run the routines on the Makefile
in each example folder. You probably running the 3D examples without the .vert
or the geometry assigned (OBJ|PLY|GLTF files).
For the audio example... if shader_audio.frag
doesn't exist, it will create a file with that name which don't utilize the audio.
I'm going to create an issue for the camera issues... I can replicate the same behavior on my M1. Thank you
Camera issue opened here https://github.com/patriciogonzalezvivo/glslViewer/issues/302
Creating another issue for improving the AV documentation that leads to actual examples https://github.com/patriciogonzalezvivo/glslViewer/issues/303
Indeed
glslViewer test_audio.frag --audio
glslViewer test_video.frag in.mp4 -w 960 -h 540
work after `cd examples/2D/00_test``
On the subject of the 3D examples
stephanschulz@Stephans-Komputer 3D % cd 01_lighting
stephanschulz@Stephans-Komputer 01_lighting % make
work well but 02_materials
and 03_models
do not have a make file
make
needs to be followed by one of the make routines in the Makefile
in the same folder
I am very excited about the glslViewer and am looking forward to the online class on October 25. Thanks for offering it.
Here are some issues I ran in to.
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
When running
brew install pkg-config cmake ncurses
It gives this warningI also installed ffmpeg.
I am able to run the 2D examples. The 3d examples produce blank windows; either white or black.
I tired to test video and camera access as mentioned here https://github.com/patriciogonzalezvivo/glslViewer/wiki/Audio-and-Video-Textures Running
glslViewer shader.frag --video 0
connects to my build in camera but only shows one frozen webcam image. RunningglslViewer shader.frag /Users/stephanschulz/Desktop/fingers.mov
works fine. RunningglslViewer shader_audio.frag --audio 0
opens a window similar toglslViewer 00_tests/test.frag