WorldWindEarth / WorldWindKotlin

The WorldWind Kotlin SDK (WWK) includes the library, examples and tutorials for building multiplatform 3D virtual globe applications for Android, Web and Java.
Apache License 2.0
103 stars 13 forks source link

Jvm usage #73

Open aaziz993 opened 2 months ago

aaziz993 commented 2 months ago

How to use it in Jvm. I didnt find any samples.

ComBatVision commented 2 months ago

Hi. Currently, the JVM version is not finished. We have not completed the main class WorldWindJPanel and gesture processing logic. We do not use JVM in our production projects, so there is no estimation when we will finish it.

aaziz993 commented 2 months ago

Can you please share what you have done till the moment to see if I can do something with it.

ComBatVision commented 2 months ago

You can look inside androidMain and jsMain source code, and you will find Worldwindow class, which is the main view class responsible for frame rendering. In Andoid, it is a GLSurfaceView child, in JS it is a WebGLCanvas.

As a first step, it is required to do something similar as a JPanel child for Swing or JavaFX.

Then it will be required to implement touch gestures interception similar to BasicWorldwindowController inAndroid or JS.

Most internal classes like ImageTexture and pthers are already implemented for JVM.

aaziz993 commented 2 months ago

Understood. I will try to implement it. Thank you.