Hello, I have a c++ OpenGLES application that runs perfectly from the terminal (I have a non GUI setup, booting in console mode). If I launch my app at the prompt by typing ./myapp, everything is OK. Now I want to launch the app automatically when the Pi starts. I have tried rc.local, .bashrc, no wa...
Hello, I have developped an OpenGL ES program wich works perfectly on a Raspberry Pi 3, and I wanted to port it on a Pi 1. The relevant part of the code is shown below. In the last line : success = graphics_get_display_size(0, &state->screen_width, &state->screen_height); success contains 0 after ex...
Thanks so much ! you've made my day !
I went over the shader a hundred of times and couldn't see it. Of course you're absolutely right : at some point I have edited the line and dropped the ".a".
Hello everybody, I am working on a code where I need to set the color of my objects, in all vertices and I also draw text, using textures, where the text colors are indexed colors which are loaded in a table, using uniform vec4 array, in the shader. The colors don't show up correctly, some are OK, m...
OK, I solved my problem : The trouble I had, in fact was that the "freetypeGlesRpi" is written to be used with "modern" openGL (using shaders) while I knew only "legacy" openGL. OpenGLES is compatible with legacy OpenGL in 1.1, but has to use shaders and modern approach in version 2.0 and above. I m...
First, thanks to RaySan5 for his explanations and samples from his nice work. I have found that the principle used by raysan5 was the same as for the "freetypeGlesRpi" library I had mentionned in my first post, making a texture atlas for all the glyphs and display textures with openGL. The problem I...
So ... Any hint ? How could I print some text along with my OpenGL drawing. I have searched for GLESFS, not a single answer, I have tried to compile FTGLES on the pi, but when compiling an app, the linker complains about some function he can't find in the libftgles library. Many efforts, no result ....
Hi ! I have dowloaded the project and tried to embed it in a qt openGLES project. The example supplied is way too long and complicated, I can't make use of it. I have a surface in which I can successfully draw using standard openGL commands, like glDrawArrays and so on. Can you enlighten me on two p...
Hello again ! I understand from your answer that Qt5 is already installed on the pi or at least it is possible to install it from the repo. I didn't catch that previously ... For sure I have a big bunch of code already working on OpenGLES which I wouldn't love to rewrite, so if I can get the fonts t...
Hello again, I have found a tuto to build Qt on the Pi : https://wiki.qt.io/Native_Build_of_Qt_5.4.1_on_a_Raspberry_Pi and I'm wondering about the step below : ./configure -v -opengl es2 -tslib -force-pkg-config -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=/usr/bin/ \ -opensource -confirm-...
Hello ! I have been using Qt to make openGL ES applications on the Pi, but found that I could not easily use scalable/rotatable fonts with opengles. On PCs, I have used freetype fonts which do the trick with standrad OpenGL (not GL-ES). I know there is a "port" of freetype fonts (freetypeGlesRpi), b...