Hi,
can anyone pinpoint why this example isn't working in Processing ( i have added unfolding library and openGl) but no joy.. I'm getting this error:
frame buffer is incomplete (gl_framebuffer_unsupported_ext)
is it my machine?
- import de.fhpotsdam.unfolding.mapdisplay.*;
- import de.fhpotsdam.unfolding.utils.*;
- import de.fhpotsdam.unfolding.marker.*;
- import de.fhpotsdam.unfolding.tiles.*;
- import de.fhpotsdam.unfolding.interactions.*;
- import de.fhpotsdam.unfolding.*;
- import de.fhpotsdam.unfolding.core.*;
- import de.fhpotsdam.unfolding.geo.*;
- import de.fhpotsdam.unfolding.events.*;
- import de.fhpotsdam.utils.*;
- import de.fhpotsdam.unfolding.providers.*;
- import processing.opengl.*;
- //package
- //de.fhpotsdam.unfolding.examples.overviewdetail;
- import codeanticode.glgraphics.GLConstants;
- import de.fhpotsdam.unfolding.Map;
- //de.fhpotsdam.unfolding.Map
- import de.fhpotsdam.unfolding.events.EventDispatcher;
- import de.fhpotsdam.unfolding.interactions.MouseHandler;
- /**
- * Two maps are shown: An overview, and a detail map. The overview is a small-scale map, and
- * shows the same area as the large-scale detail map.
- *
- * Both maps are interactive, and can be navigated. Each interaction is reflected in both maps. This
- * Overview + Detail example shows how to setup simple connected map views.
- *
- */
- //public
- //class OverviewAndDetailMapApp extends PApplet {
- Map mapDetail;
- Map mapOverview;
- //public
- void setup() {
- size(800, 600, GLConstants.GLGRAPHICS);
- mapDetail = Map(this, "detail", 10, 10, 585, 580);
- mapOverview = Map(this, "overview", 605, 10, 185, 185);
- EventDispatcher eventDispatcher = new EventDispatcher();
- // Add mouse interaction to both maps
- MouseHandler mouseHandler = new MouseHandler(this, mapDetail, mapOverview);
- eventDispatcher.addBroadcaster(mouseHandler);
- // Maps listen to each other, i.e. each interaction in one map is reflected in the other
- eventDispatcher.register(mapDetail, "pan", mapDetail.getId(), mapOverview.getId());
- eventDispatcher.register(mapDetail, "zoom", mapDetail.getId(), mapOverview.getId());
- eventDispatcher.register(mapOverview, "pan", mapDetail.getId(), mapOverview.getId());
- eventDispatcher.register(mapOverview, "zoom", mapDetail.getId(), mapOverview.getId());
- }
- //public
- void draw() {
- background(0);
- mapDetail.draw();
- mapOverview.draw();
- }
1