Go to advanced search

by oliver_mpt
Wed Feb 20, 2019 8:31 pm
Forum: OpenGLES
Topic: starting openGLES app at startup
Replies: 2
Views: 2934

Re: starting openGLES app at startup

Additionnal info : here is my systemd .service file

[Unit]
Description=NetAv
After=multi-user.target

[Service]
Type=idle
WorkingDirectory=/home/pi
ExecStart=/home/pi/NetAv

[Install]
WantedBy=multi-user.target
by oliver_mpt
Wed Feb 20, 2019 8:17 pm
Forum: OpenGLES
Topic: starting openGLES app at startup
Replies: 2
Views: 2934

starting openGLES app at startup

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...
by oliver_mpt
Wed Jan 16, 2019 8:46 pm
Forum: OpenGLES
Topic: OpenGLES2 on RaspBerry Pi 1B
Replies: 3
Views: 2494

Re: OpenGLES2 on RaspBerry Pi 1B

Hi Paeryn,

Thanks for the prompt answer !
You guessed it right, I had the video memory poorly configured. I have set it now to 64Mo and it works like a charm !

Thanks again for your time and good advice

Olivier
by oliver_mpt
Tue Jan 15, 2019 8:15 pm
Forum: OpenGLES
Topic: OpenGLES2 on RaspBerry Pi 1B
Replies: 3
Views: 2494

OpenGLES2 on RaspBerry Pi 1B

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...
by oliver_mpt
Tue Nov 21, 2017 6:39 am
Forum: OpenGLES
Topic: setting colors in shader,
Replies: 3
Views: 2151

Re: setting colors in shader,

Hi Paeryn !

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".

oliver
by oliver_mpt
Mon Nov 20, 2017 5:49 pm
Forum: OpenGLES
Topic: setting colors in shader,
Replies: 3
Views: 2151

setting colors in shader,

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...
by oliver_mpt
Sat Dec 31, 2016 4:44 pm
Forum: OpenGLES
Topic: Font handling on OpenGLES
Replies: 7
Views: 8485

Re: Font handling on OpenGLES

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...
by oliver_mpt
Sat Dec 31, 2016 4:39 pm
Forum: OpenGLES
Topic: Raspberry 3 opengl programming and fonts
Replies: 9
Views: 5053

Re: Raspberry 3 opengl programming and fonts

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...
by oliver_mpt
Thu Dec 22, 2016 12:03 pm
Forum: OpenGLES
Topic: Raspberry 3 opengl programming and fonts
Replies: 9
Views: 5053

Re: Raspberry 3 opengl programming and fonts

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 ....
by oliver_mpt
Thu Dec 22, 2016 11:49 am
Forum: OpenGLES
Topic: Font handling on OpenGLES
Replies: 7
Views: 8485

Re: Font handling on OpenGLES

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...
by oliver_mpt
Wed Dec 07, 2016 3:32 pm
Forum: OpenGLES
Topic: Raspberry 3 opengl programming and fonts
Replies: 9
Views: 5053

Re: Raspberry 3 opengl programming and fonts

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...
by oliver_mpt
Wed Dec 07, 2016 7:41 am
Forum: OpenGLES
Topic: Raspberry 3 opengl programming and fonts
Replies: 9
Views: 5053

Re: Raspberry 3 opengl programming and fonts

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-...
by oliver_mpt
Wed Dec 07, 2016 7:31 am
Forum: OpenGLES
Topic: Raspberry 3 opengl programming and fonts
Replies: 9
Views: 5053

Re: Raspberry 3 opengl programming and fonts

Hi topguy !

tusen tak for the fast answer !

It is a very good advice to test the short test path first. In the end, it's quite a large software, so cross-compilation would mean some comfort.

Oliver
by oliver_mpt
Tue Dec 06, 2016 2:50 pm
Forum: OpenGLES
Topic: Raspberry 3 opengl programming and fonts
Replies: 9
Views: 5053

Raspberry 3 opengl programming and fonts

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...

Go to advanced search