Unfolding Library ::: I don't get any map (Black Display)
in
Contributed Library Questions
•
1 year ago
Hi everyone, i'm just beginning to make an application that require the use of a map. For this i found a library called Unfolding. Additionally i need to import the GLGraphics too.
Till this part i solved some problems. I had to change from Processing 2 to processing 1.5 because OpenGl didn't work. It doesn't even showed to me a window. But that's is solved.
Now, when i run my code it shows me the next error:
Display 0 does not exist, using the default display instead.GLGraphics version: 0.95GL_ARB_geometry_shader4 extension not availablelog4j:WARN No appenders could be found for logger (de.fhpotsdam.unfolding.mapdisplay.MapDisplayFactory).log4j:WARN Please initialize the log4j system properly.OpenGL error 1281 at top endDraw(): invalid valueOpenGL error 1286 at top endDraw(): invalid framebuffer operationOpenGL error 1286 at top beginDraw(): invalid framebuffer operationOpenGL error 1286 at render_triangles in: invalid framebuffer operationOpenGL error 1286 at before enable: invalid framebuffer operationOpenGL error 1286 at render_triangles out: invalid framebuffer operationOpenGL error 1286 at non-binding 6: invalid framebuffer operation
I was working with GLGraphics 1.0 and then change to 0.9.5, because i thought that that's could be the error, but nothing changed.
My code is the same from the example from Unfolding:
- import processing.opengl.*;
- import codeanticode.glgraphics.*;
- import de.fhpotsdam.unfolding.*;
- import de.fhpotsdam.unfolding.geo.*;
- import de.fhpotsdam.unfolding.utils.*;
- UnfoldingMap map;
- void setup() {
- size(800, 600, GLConstants.GLGRAPHICS);
- map = new UnfoldingMap(this);
- map.zoomAndPanTo(new Location(52.5f, 13.4f), 10);
- MapUtils.createDefaultEventDispatcher(this, map);
- }
- void draw() {
- background(0);
- map.draw();
- }
any idea will help me. Greetings Mitlley.
1