Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help with led cube on Rpi #14

Open
mph070770 opened this issue Jul 27, 2021 · 3 comments
Open

Help with led cube on Rpi #14

mph070770 opened this issue Jul 27, 2021 · 3 comments

Comments

@mph070770
Copy link

Hi. I'm new to the world of shaders etc and I'm trying to get shady working on my Rpi 4. I have installed Go on the pi:

pi@raspberrypi:~/rpi-rgb-led-matrix/examples-api-use $ go version
go version go1.16.6 linux/arm

and I'm now trying to work out how to use shady. I've tried this:

../../go/bin/shady -i example2.glsl -ofmt rgb24 -f 20

which complains as follows:

Could initialize engine: failed to call eglCreateContext

I'm not sure if I need OpenGL, and/or what to try next? Sorry, can you help?

@billtraill
Copy link

billtraill commented Jul 28, 2021 via email

@mph070770
Copy link
Author

mph070770 commented Jul 28, 2021

Thanks @billtraill that solved the issue. I've made some good progress. I have used this shader:

https://www.shadertoy.com/view/4sjXRG

with the following command:

../../go/bin/shady -i example3.glsl -g 128x128 -f 20 -ofmt rgb24 | sudo ./ledcat --led-rows=64 --led-cols=64 --led-slowdown-gpio=4 --led-show-refresh --led-chain=2 --led-parallel=3 --led-pwm-bits=11 --led-pwm-lsb-nanoseconds=100 --led-brightness=80 --led-rgb-sequence RBG

having first set this:

export MESA_GL_VERSION_OVERRIDE=3.3

and I get this:

IMG_2826

Very pleased :-). The only thing I need to look at now is a bit of flicker. Thanks again @billtraill.

@alienryes
Copy link

My hardware is the same one as built here: https://learn.adafruit.com/rgb-led-matrix-cube-for-pi/overview. So it is a chain of 6 panels. I've tried using the command:

../../go/bin/shady -i src-3d.glsl -g 64x64 -f 20 -ofmt rgb24 | ./ledcat --led-rows=64 --led-cols=64 --led-slowdown-gpio=4 --led-chain=6 and using:

MESA_GL_VERSION_OVERRIDE=3.3
EGL_PLATFORM=surfaceless

set in the env.

My results are not so happy:

PXL_20240329_150035718

Any advice welcome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants