-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Raspberry Pi / ofGraphics and ofFbo not drawing in conjunction with ofShader #5917
Comments
You can see that line being sent from what the console is spitting out when running any app on the Pi with ofShader before the above error:
|
So... I'm guessing
So setting up the correct Any clue how to go about this, or what to do regarding this? |
yes the correct fix is to solve the locale problem. the extensions line is used in android for video textures so removing it is not an option. there's some code on application start to try to set the locale to something utf8 but it might not be working on the pi? the code is here: |
Can't seem to see any code to set the locales in the above link...? Do you know what the correct locales should be? Maybe it's a good idea to add a command into the Raspberry Pi install_dependences script (or a have a separate script?) to set the correct locales when installing oF to the Pi? |
hey sorry i posted the wrong link and then never saw your next message, the correct place where the locale is set to something utf8 is https://github.com/danoli3/openFrameworks/blob/3180a7b5068a037c90d03b276e8526aaed2d9e8a/libs/openFrameworks/app/ofAppRunner.cpp#L143-L156 |
@sourya-sen please look at this #6223 it fixes most of the shader examples for Raspberry Pi |
@avilleret the shader examples had a different issue, that being the target platform not being defined in the |
This is basically what's being discussed here:
https://forum.openframeworks.cc/t/app-for-raspberry-pi-integrating-shaders-and-ofgraphics-objects/28848/7
I've nailed it down to the
"%extensions%\n"
lines inofGLProgammableRenderer.cpp
(line 1860 and line 1867). It's fairly evident that those lines are causing problems as ofShader reports,Simply commenting out the lines make everything work fine, but looking at the error in more detail it seems like
ofStringReplace
which is supposed to replace that line with""
from line 2293 is not replacing that line but rather sending %extensions% in the header part of the shader.Fix option 1: just taking out the %extensions% from the rPi shaders header, but that might lead to problems later if we have to define certain extensions at some point.
Fix option 2: look into why
ofStringReplace
is not doing it's job on the rPi.The text was updated successfully, but these errors were encountered: