navit-project.org
http://forum.navit-project.org/

EGL rendering for RaspberryPI
http://forum.navit-project.org/viewtopic.php?f=14&t=625
Page 1 of 1

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

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

Regards,
Cedric

EDIT : I created a Git repository here : https://github.com/cedricp/navit_rpi 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.

Attachments:
File comment: Screenshot mutlisampling=4
rpi.jpg
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 : https://github.com/navit-gps/navit/pull/208

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

Hello,

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 : http://wiki.navit-project.org/index.php/Raspberry_Pi.

But I have a question : does the patch : EGL rendering, is include when I download the source code with : "git clone https://github.com/navit-gps/navit.git" ? If not, how can I include it ?

Thanks for your answer.

Freddy.

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

Hi Freddy,

The EGL code has been merged in https://github.com/navit-gps/navit/pull/208 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

Hello,

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.

Freddy.

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

Hello

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

This my make.out : http://spuds.rock.free.fr/autoradio/cmake.out and my make.out : http://spuds.rock.free.fr/autoradio/make.out.

My mavit.xml : http://spuds.rock.free.fr/autoradio/navit.xml

Do you see something wrong ?

Thanks in advance for you help.

Freddy.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/