Hi Sohail,
The OpenMap 3D code is pretty basic, a framework really. It was written as a proof-of-concept for another project over a decade ago, and I just included it as a first step back then. It’s not in a state for the faint-hearted.
As I remember, you can get the J3D viewer window to show up by adding the com.bbn.openmap.j3d.OM3DViewerLauncher to the openmap.properties file for the standard OpenMap app. That adds a button to the tool panel that brings up a 3D window. I think the map and that view are tied together, initially. That’s the class I would use as a starting point if you wanted to dig into the code.
The J3D framework all those components are based on is pretty old, I’m not sure what’s happened to that project, but the necessary jars should be in the ext directory from the repo, and/or referenced in the pom for the beta version. I’ve kept that package in OpenMap because of the J3DGeo class, which is handy and can translate lat/lon into 3D space, and there’s some other OMGraphic translation code that could be useful as a reference if I get around to updating that code for a newer 3D framework.
At one time, that code did produce a 3D map that you could move around in - the biggest problem was that the OpenMap layers were creating flat 3D objects in the space, and they all conflicted with each other. The next thing I was going to work on was to have the layers paint into a texture that would then be used on a terrain 3D structure. That was the plan, anyway.
I’m happy to advise if you dig into it.
Hope this helps,
- Don