EGL rendering for RaspberryPI
Page 1 of 1

Author:  cedricp [ 20 Feb 2017, 14:31 ]
Post subject:  EGL rendering for RaspberryPI

I've almost finished to write a graphic driver for NavIt and I would be glad to share it. There's some bugs to tracks yet, and overlay rendering is WIP.
I use SDL2, for events handling and EGL context creation and SDL2-image.


EDIT : I created a Git repository here : that contains changes

* Added multisampling rendring (OK)
* Overlays are now working (all is rendered in an offscreen framebuffer)
* Good reactivity

Still having issues with SDL2 mouse drawing (sometimes freezes the Pi, Ok if I disable cursor) and a crash at startup if I enable compass OSD, but zoom buttons OSD are OK :/

Hope you'll like it.

File comment: Screenshot mutlisampling=4
rpi.jpg [ 198.51 KiB | Viewed 576 times ]

Author:  KaZeR [ 21 Feb 2017, 22:47 ]
Post subject:  Re: EGL rendering for RaspberryPI

Nice work!

I really want to merge that in the repo!

Could you submit a PR against a branch in the official repo?

Author:  KaZeR [ 07 May 2017, 03:59 ]
Post subject:  Re: EGL rendering for RaspberryPI

For the record :

Author:  freddy [ 22 Aug 2017, 19:27 ]
Post subject:  Re: EGL rendering for RaspberryPI


I installed Navit on Raspberry PI3 (Raspbian), with "apt-get install navit" command.

unfortunately, I have a bad reactivity :?

So, I'll compile it with this topics :

But I have a question : does the patch : EGL rendering, is include when I download the source code with : "git clone" ? If not, how can I include it ?

Thanks for your answer.


Author:  KaZeR [ 22 Aug 2017, 19:50 ]
Post subject:  Re: EGL rendering for RaspberryPI

Hi Freddy,

The EGL code has been merged in so if you download the code from the repository, it will be available.

The navit version packaged in Debian/Ubuntu (so, raspbian too) tends to be quite old, so using the code from the repository should be preferred. Anyway, it should be usable. What is your current zoom level? Is Navit getting more responsive if you zoom in?

Author:  freddy [ 23 Aug 2017, 08:12 ]
Post subject:  Re: EGL rendering for RaspberryPI


thank you for your answer.

In fact, I don't know how to compile navit with SDL. I suppose I should configure some parameters but I don't know which and where... :oops: .... (sorry for my bad level).

So, my zoom level default is 200 and yes, Navit is more response when I zoom in.


Author:  freddy [ 24 Aug 2017, 10:18 ]
Post subject:  Re: EGL rendering for RaspberryPI


I installed SDL2 and complied Navit but it's still bad reactivity.

This my make.out : and my make.out :

My mavit.xml :

Do you see something wrong ?

Thanks in advance for you help.


Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group