Skip to content

Processing & Unfolding in Eclipse

6. June 2012

Some months ago…I had already set up Processing and Unfolding successfully in Eclipse. Time goes by…I remanaged some datastructures…and everything is bogus 😦

So…now I write it down…and maby it helps also somebody else!

Step1: Learn how to set up Processing in Eclipse…with the help of that tutorial: http://processing.org/learning/eclipse/

Step2: Use template to set up Unfolding in Eclipse: http://ubuntuone.com/7QN1NTJBx8DqXRgHgMtqyd Thanks to Till Nagel, who gave me the original template!

Step3: Try HelloWorld.java and SimpleMapApp.java if everything is running fine.

For me…I’ve got some problems with GLGraphics…but will care for that later. For now…I just comment the corresponding code!

***
Solved that problem, by this command : sudo ln -s /usr/lib32/fglrx/libGL.so.1.2 /usr/lib/libGL.so
(Found here: http://stackoverflow.com/questions/11332817/failed-to-load-libgl-so-in-android)
***

Additional…

My original claim, was to display the tile-borders. Therefore I have to set it all up with the original source code:

Step4: File / Import… / File System / Browse –> Unfolding/src (Marker on ‘src’) / Finish (be sure to have ‘src’-package marked before importing)

Step5: Change code in ‘ProcessingMapDisplay.java’ (package = de.fhpotsdam.unfolding.mapdisplay) in function ‘createTileLoader’

protected TileLoader createTileLoader(Coordinate coord) { 
 TileLoader tl = new TileLoader(papplet, provider, this, coord); 
 tl.showDebugBorder(); // Zeigt pro Tile einen Rahmen // 
 tl.showTileCoordinates(); // Zeigt pro Tile paar Infos an 
 return tl; 
}

Finish: Now the tile borders are displayed!


		
Advertisements

From → Uncategorized

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: