navit-project.org

forum for navit navigation tool
It is currently 18 Nov 2017, 00:49
View unanswered posts | View active topics


All times are UTC


Forum rules


Feel free to ask anything here related to the development process - coding, creating new features, fixing bugs and custom changes of Navit.

Note: For reporting bugs, use the bug tracker.



Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: EGL rendering for RaspberryPI
PostPosted: 20 Feb 2017, 14:31 
Offline

Joined: 20 Feb 2017, 14:24
Posts: 1
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 571 times ]
 Profile  
 
 Post subject: Re: EGL rendering for RaspberryPI
PostPosted: 21 Feb 2017, 22:47 
Offline

Joined: 27 Sep 2013, 21:10
Posts: 50
Nice work!

I really want to merge that in the repo!

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


 Profile  
 
 Post subject: Re: EGL rendering for RaspberryPI
PostPosted: 07 May 2017, 03:59 
Offline

Joined: 27 Sep 2013, 21:10
Posts: 50
For the record : https://github.com/navit-gps/navit/pull/208


 Profile  
 
 Post subject: Re: EGL rendering for RaspberryPI
PostPosted: 22 Aug 2017, 19:27 
Offline

Joined: 22 Aug 2017, 19:18
Posts: 3
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.


 Profile  
 
 Post subject: Re: EGL rendering for RaspberryPI
PostPosted: 22 Aug 2017, 19:50 
Offline

Joined: 27 Sep 2013, 21:10
Posts: 50
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?


 Profile  
 
 Post subject: Re: EGL rendering for RaspberryPI
PostPosted: 23 Aug 2017, 08:12 
Offline

Joined: 22 Aug 2017, 19:18
Posts: 3
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.


 Profile  
 
 Post subject: Re: EGL rendering for RaspberryPI
PostPosted: 24 Aug 2017, 10:18 
Offline

Joined: 22 Aug 2017, 19:18
Posts: 3
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.


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Silver Orange 2.0.6 for IPB Designed by Skins and Hosting
Converted for phpBB3, based on Royal Blue template by BigB © 2007 2008 AEON KINGS