Opened 9 years ago

Closed 9 years ago

#671 closed defect/bug (fixed)

Make opengl graphics driver operational

Reported by: tegzed Owned by: woglinde
Priority: major Milestone: version 0.2.0
Component: core Version: git master
Severity: Keywords: opengl graphics driver
Cc:

Description (last modified by kazer)

Hello All,

Recently I worked on the opengl driver for navit to make it operational in the current navit framwork. After some modifications I was able to run it on my Ubuntu system.

The following changes were done:

  • the driver is successfully fitted into the current event system of Navit.
  • font handling is adopted from gtk_drawing_area driver (there are still coloring and performance issues)
  • display list based overlay handling is implemented
  • added image handling using freeimage library

Dependencies of the current implementation:

  • freeglut glut implementation
  • freeimage image processing library

Known issues:

  • font coloring
  • font rendering performance
  • need to add proper autoconf rules to carry out compile time checks
  • modify opengl context initialization to support better integration into gtk and other opengl embeddable GUIs
  • positions of osd items are not updated immediately on resize
  • vehicle cursor is not displayed

The driver is still incomplete but if you want to try it out you will need to copy the attached files (Makefile and graphics_opengl.c) to navit/navit/graphics/opengl/ in the source tree and compile it. You will need to enable opengl plugin by adding the following line to the plugins secion of navit.xml :

<plugin path="$NAVIT_LIBDIR/*/${NAVIT_LIBPREFIX}libgraphics_opengl.so" active="yes"/>

and setting the graphics type to opengl:

<graphics type="opengl"/>  

The driver is developed using the internal gui support for other guis will possibly be added later.

If you find any unknown issues please let me know via this ticket or even better send your patch to fix them. :)

Regards, David Tegze

Attachments (6)

Makefile (22.7 KB) - added by tegzed 9 years ago.
makefile for the opengl driver
configure.in (49.2 KB) - added by tegzed 9 years ago.
confirure rules for opengl driver; fix typos in output strings
configure.in.diff (2.1 KB) - added by tegzed 9 years ago.
patch for configure.in to support opengl changes
graphics_opengl.c (28.8 KB) - added by tegzed 9 years ago.
eliminated some compiler warnings
graphics_opengl.c.2.diff (50.1 KB) - added by tegzed 9 years ago.
fixed osd offset handling in draw_polygon
graphics_opengl.c.diff (52.8 KB) - added by tegzed 9 years ago.
hopefully fixed menu flickering v2.0

Download all attachments as: .zip

Change History (9)

Changed 9 years ago by tegzed

makefile for the opengl driver

Changed 9 years ago by tegzed

confirure rules for opengl driver; fix typos in output strings

comment:1 Changed 9 years ago by woglinde

  • Owner changed from KaZeR to woglinde

Changed 9 years ago by tegzed

patch for configure.in to support opengl changes

Changed 9 years ago by tegzed

eliminated some compiler warnings

Changed 9 years ago by tegzed

fixed osd offset handling in draw_polygon

Changed 9 years ago by tegzed

hopefully fixed menu flickering v2.0

comment:2 Changed 9 years ago by kazer

  • Description modified (diff)
  • Milestone set to version 0.2.0

comment:3 Changed 9 years ago by woglinde

  • Resolution set to fixed
  • Status changed from new to closed

applied in revision 3615

http://navit.svn.sourceforge.net/viewvc/navit?view=revision&revision=3615

and tegzed has rw access to svn

Note: See TracTickets for help on using tickets.