Loading...
Logo
Processing Forum
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?


Copy code
  1. import de.fhpotsdam.unfolding.mapdisplay.*;
  2. import de.fhpotsdam.unfolding.utils.*;
  3. import de.fhpotsdam.unfolding.marker.*;
  4. import de.fhpotsdam.unfolding.tiles.*;
  5. import de.fhpotsdam.unfolding.interactions.*;
  6. import de.fhpotsdam.unfolding.*;
  7. import de.fhpotsdam.unfolding.core.*;
  8. import de.fhpotsdam.unfolding.geo.*;
  9. import de.fhpotsdam.unfolding.events.*;
  10. import de.fhpotsdam.utils.*;
  11. import de.fhpotsdam.unfolding.providers.*;

  12. import processing.opengl.*;

  13. //package 
  14. //de.fhpotsdam.unfolding.examples.overviewdetail;

  15. import codeanticode.glgraphics.GLConstants;
  16. import de.fhpotsdam.unfolding.Map;
  17. //de.fhpotsdam.unfolding.Map
  18. import de.fhpotsdam.unfolding.events.EventDispatcher;
  19. import de.fhpotsdam.unfolding.interactions.MouseHandler;

  20. /**
  21.  * Two maps are shown: An overview, and a detail map. The overview is a small-scale map, and
  22.  * shows the same area as the large-scale detail map.
  23.  * 
  24.  * Both maps are interactive, and can be navigated. Each interaction is reflected in both maps. This
  25.  * Overview + Detail example shows how to setup simple connected map views.
  26.  * 
  27.  */
  28. //public
  29. //class OverviewAndDetailMapApp extends PApplet {

  30. Map mapDetail;
  31. Map mapOverview;

  32. //public
  33. void setup() {
  34.   size(800, 600, GLConstants.GLGRAPHICS);



  35.   mapDetail = Map(this, "detail", 10, 10, 585, 580);
  36.   mapOverview = Map(this, "overview", 605, 10, 185, 185);

  37.   EventDispatcher eventDispatcher = new EventDispatcher();

  38.   // Add mouse interaction to both maps
  39.   MouseHandler mouseHandler = new MouseHandler(this, mapDetail, mapOverview);
  40.   eventDispatcher.addBroadcaster(mouseHandler);

  41.   // Maps listen to each other, i.e. each interaction in one map is reflected in the other
  42.   eventDispatcher.register(mapDetail, "pan", mapDetail.getId(), mapOverview.getId());
  43.   eventDispatcher.register(mapDetail, "zoom", mapDetail.getId(), mapOverview.getId());
  44.   eventDispatcher.register(mapOverview, "pan", mapDetail.getId(), mapOverview.getId());
  45.   eventDispatcher.register(mapOverview, "zoom", mapDetail.getId(), mapOverview.getId());
  46. }

  47. //public 
  48. void draw() {
  49.   background(0);

  50.   mapDetail.draw();
  51.   mapOverview.draw();
  52. }

Replies(7)

Just tested again with latest GLGraphics 1.0 and works for me.

This seems to be some incompabilities of your JRE and GLGraphics. Might be related to the native libraries we provide with the Unfolding dist. What system are you using? Which Java version? Which Processing?


Hi,

What system are you using?

Pentium dual core 64 bit operating system

Which Java version? 

Java 1.6.0._26

Which Processing?

version 1.5.1


cheers,

Josh
That's Windows Vista or 7, I suppose? Unfortunately I don't have access to a Windows machine, at the moment. But you might need to try some of the suggestions made here:

http://forum.processing.org/topic/processing-opengl-and-windows-x64


Also check, if the OpenGL and GLGraphics examples work. This might not be an Unfolding problem.
yup, windows 7. just tried loading up the space-junk from opengl examples folder -works fine...

however still getting:

  frame buffer is incomplete (gl_framebuffer_unsupported_ext)

when i try running overview+context example. 

Are you trying it on a mac?

josh
Its  working now:  took out  'GLConstants.GLGRAPHICS'  from  size parameters in setup .However, console reads:'no rotation possible (without openGL)' though it all seems to work fine!

Incidentally, anyone know how i would add my own sketch to this code, how would i link it in so i can use it as in this example?
Glad to hear you have it working. Removing that parameter swtiches the rendering to Processing's 2D mode. It might be a bit slower, as you are not using OpenGL/GLGraphics, now.
(So, for others reading this thread: We suggest keeping that parameter.)
thank you for your tip, I have the same problem , on osx. 10.7.3 with unfolding.