http://wiki.netbeans.org/HelloWorldWindJavaSDK




------------------
http://i.document.m05.de/?p=313

nasa worldwind java in processing
15.05.2007 by Michael

finally. nasa world wind java is out. i was wainting since january to play with it. it’s great that they moved from .net to java in order to get platform independent.

the sdk is very easy to use but the examples are horrible. three classes with a lot of swing and awt garbage. only 10 lines of code are really needed to get it working in processing.

import gov.nasa.worldwind.*;
import gov.nasa.worldwind.awt.*;

void setup()
{
size(500, 500, JAVA2D);

WorldWindowGLCanvas wwd = new WorldWindowGLCanvas();
wwd.setSize(width, height);
this.add(wwd);

Model m = (Model) WorldWind.createConfigurationComponent(AVKey.MODEL_CLASS_NAME);
m.setShowWireframeExterior(true);
m.setShowWireframeInterior(false);
m.setShowTessellationBoundingVolumes(false);
wwd.setModel(m);
}

you have to get the worldwind sdk and extract it. create the folders worldwind/library in processing’s libraries folder and copy the file worldwind.jar into it:
libraries/worldwind/library/worldwind.jar

'연구 > X3D-Earth' 카테고리의 다른 글

World Wind Geo: The Eclipse RCP Geobrowser  (0) 2008.09.12
Embed WWJava Into a Web Page  (0) 2008.09.12
Hello World Wind Java SDK  (0) 2008.09.12
Dynamic KML  (0) 2008.08.30
simple nasa worldwind java example  (0) 2008.08.29
Real time cloud data in x3d  (0) 2008.08.29
Posted by fermi

댓글을 달아 주세요