View Full Version : WW2D Plus One
patmurris
04-13-2006, 07:38 AM
I've been working on a 3D view for Vitaliy Pronkin WW2D. Still in alpha but coming together...
You can download an alpha version here (http://www.alpix.com/3d/worldwin/WW2d_Java.html). It has to be applied over a working installation of WW2D.
http://www.alpix.com/3d/worldwin/WW2D_Java/WW2D_3D_screen14_s.jpg
Please read the 'readme.txt' for keyboard controls and known issues and let me know how it performs on what platform... if it works style_emoticons/<#EMO_DIR#>/wink.gif
mazop
04-14-2006, 09:47 AM
hi pat. i tested it on W2k as well as on XP and it works without problems ! very nice job style_emoticons/<#EMO_DIR#>/wink.gif
patmurris
04-18-2006, 03:51 PM
<div class='quotetop'>QUOTE(mazop @ Apr 14 2006, 04:47 AM) Quoted post</div><div class='quotemain'>
hi pat. i tested it on W2k as well as on XP and it works without problems !
[/b][/quote]
Thank you mazop.
I posted alpha version 3 - better and more stable; still no SRTM data yet.
I'd love to see some mac and linux screen shots...
what_nick
04-18-2006, 05:17 PM
Way to go Pat .. u beat NASA to it style_emoticons/<#EMO_DIR#>/smile.gif
what_nick
04-19-2006, 01:54 AM
Hi Pat,
Testing the alpha. I have the following error
Exception in thread "main" java.lang.AbstractMethodError: org.ww2d.core.PluginBa
se.getName()Ljava/lang/String;
at org.ww2d.core.ConfigLoader.parsePlugin(C onfigLoader.java:1065)
at org.ww2d.core.ConfigLoader.parse(ConfigL oader.java:885)
at org.ww2d.core.ConfigLoader.load(ConfigLo ader.java:51)
at org.ww2d.core.Program.main(Program.java: 63)
with the following VM
java version "1.5.0_06"
Java 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot Client VM (build 1.5.0_06-b05, mixed mode)
cheers,
what_nick.
patmurris
04-19-2006, 03:10 AM
<div class='quotetop'>QUOTE(what_nick @ Apr 18 2006, 08:54 PM) Quoted post</div><div class='quotemain'>
Hi Pat,
Testing the alpha. I have the following error
Exception in thread "main" java.lang.AbstractMethodError: org.ww2d.core.PluginBa
se.getName()Ljava/lang/String;
[/b][/quote]
Does WW2D works by its own ?
The update should be deployed over a working installation...
what_nick
04-19-2006, 03:33 AM
<div class='quotetop'>QUOTE(patmurris @ Apr 19 2006, 12:40 PM) Quoted post</div><div class='quotemain'>
<div class='quotetop'>QUOTE(what_nick @ Apr 18 2006, 08:54 PM) Quoted post</div><div class='quotemain'>
Hi Pat,
Testing the alpha. I have the following error
Exception in thread "main" java.lang.AbstractMethodError: org.ww2d.core.PluginBa
se.getName()Ljava/lang/String;
[/b][/quote]
Does WW2D works by its own ?
The update should be deployed over a working installation...
BTW: can you remove the email addreses from your previous post ? Enough junk mail already style_emoticons/<#EMO_DIR#>/dry.gif
[/b][/quote]
Yep WW2D works fine.
patmurris
04-19-2006, 04:37 AM
<div class='quotetop'>QUOTE(what_nick @ Apr 18 2006, 10:33 PM) Quoted post</div><div class='quotemain'>
Yep WW2D works fine.
[/b][/quote]
Damn ! I've no idea.
Do you have a recent WW2D version ?
The 3D update is based on 0.99.87 that dates from 11-25-2005. There has been a couple updates since but it works with them too. What OS are you using ?
what_nick
04-19-2006, 07:33 AM
I think it's an error with the Java Version did u use 1.5?
patmurris
04-19-2006, 08:18 AM
<div class='quotetop'>QUOTE(what_nick @ Apr 19 2006, 02:33 AM) Quoted post</div><div class='quotemain'>
I think it's an error with the Java Version did u use 1.5?
[/b][/quote]
I use jre/jdk 1.5.0_06.
You use build 1.5.0_06-b05 - not sure if the -b05 is to blame ?
what_nick
04-19-2006, 08:51 AM
Ok I have been debugging the ww2d cvs code. We have tracked down the error to the jar files for the plugins not being correctly loacted and loaded. Hence it tries to call the getName() method on an abstract class rather than a concrete class. Since we will be using Java I bit I recommend using eclipse and setting it all up for debugging etc.
what_nick
04-19-2006, 02:05 PM
Successfully debugged it. I rebuilt the cvs version properly and now I have a working ww2d plusone install on Gentoo. Thanks a lot Pat. I wont mind starting work on the terrain accessor with everyone's blessings and going nuts with JTS to add a lot of much needed GIS functionality.Please check the screen shots on my blog.Screenshots (http://whatnick.blogspot.com/2006/04/ww2d-and-ww2dplusone.html)
Cheers,
what_nick.
patmurris
04-20-2006, 01:10 AM
<div class='quotetop'>QUOTE(what_nick @ Apr 19 2006, 09:05 AM) Quoted post</div><div class='quotemain'>
Successfully debugged it. I rebuilt the cvs version properly and now I have a working ww2d plusone install on Gentoo. Thanks a lot Pat. I wont mind starting work on the terrain accessor...
[/b][/quote]
Excelent news... what was wrong then ?
About the terrain accessor... well Vitaliy offered to work on it but i havent heard from him for some weeks - i think he is busy with exams. You can still get used to the code - the terrain accessor should be similar to the QuadTileLayer and QuadTile logic without rendering. If you are interested i can send you the source for the actual WW2D+1 alpha.
NB: could you post some screen shots of some perspective views - like Andes or Himalaya... with the desktop background style_emoticons/<#EMO_DIR#>/smile.gif
NB2: where are all the mac and linux people who have been asking for it ? Playing with GE maybe style_emoticons/<#EMO_DIR#>/dry.gif
what_nick
04-20-2006, 06:31 AM
New screenshot is here. http://photos1.blogger.com/blogger/3820/2178/1600/ww2d.2.jpg
This time on SUSE. Will love the source. I am also working on a Webstart.Lemme know how I can get the Source. Here is my webstart JOGL (http://www.apogee.com.au/webstart/worldplain.jnlp), low function wind.
EDIT: Screenshot smallened.Please lemme know if I can lend u a hand with terrain accessor.I have worked with the LZMA java api.It's here http://www.7-zip.org/sdk.html
Pierrick
04-20-2006, 02:43 PM
work fine on tiger. but it's a little bit slow i think.
maybe 3D acceleration is not set ? How can i know what ?
what_nick
04-20-2006, 03:24 PM
<div class='quotetop'>QUOTE(Pierrick @ Apr 21 2006, 12:13 AM) Quoted post</div><div class='quotemain'>
work fine on tiger. but it's a little bit slow i think.
maybe 3D acceleration is not set ? How can i know what ?
[/b][/quote]
Hi could you please post a Tiger Screenshot with mac background. To check 3D settings use one of the GL attribute enumeration tools.
patmurris
04-20-2006, 11:59 PM
Merci Pierrick style_emoticons/<#EMO_DIR#>/wink.gif un petit screen shot avec ça ?
About speed : i had speed problem when i first tried WW2D. I realized i hadent updated my video card drivers and was using the Windows defaults. It was very slow. Then i got the latest drivers from nVidia and it became much better.
what_nick : thanks for the screen shot.
However, can you post a smaller one on this forum - the big one kind of disturbs the page layout... thanks.
Talking about the terrain accessor got me coding... Reading WW SRTM cache data for now. Have to deal with 7zip downloaded .bil files. Beta version not far away style_emoticons/<#EMO_DIR#>/wink.gif
patmurris
04-21-2006, 07:23 AM
<div class='quotetop'>QUOTE(what_nick @ Apr 20 2006, 01:31 AM) Quoted post</div><div class='quotemain'>
Please lemme know if I can lend u a hand with terrain accessor.I have worked with the LZMA java api.It's here http://www.7-zip.org/sdk.html
[/b][/quote]
I could definitly use some help with 7z... something like Decode(srcFileName, destFileName);
I'm in the middle of SRTM data just now... send me an email so i can provide you the source and discuss the details.
Pierrick
04-21-2006, 09:38 AM
<div class='quotetop'>QUOTE(patmurris @ Apr 21 2006, 12:59 AM) Quoted post</div><div class='quotemain'>
Merci Pierrick style_emoticons/<#EMO_DIR#>/wink.gif un petit screen shot avec ça ?
[/b][/quote]
voila style_emoticons/<#EMO_DIR#>/smile.gif
[edit] attchment seems not working today
patmurris
04-23-2006, 07:23 AM
<div class='quotetop'>QUOTE(what_nick @ Apr 20 2006, 01:31 AM) Quoted post</div><div class='quotemain'>
I have worked with the LZMA java api.It's here http://www.7-zip.org/sdk.html
[/b][/quote]
what_nick: did you get my message and the source ?
andrew
04-23-2006, 09:24 PM
GREAT WORK!! style_emoticons/<#EMO_DIR#>/biggrin.gif
Works very smoothly using:
Debian Testing / 2.6.15 / JRE 1.5.0_06
P3 1.13Ghz i830 chipset.
768MB, 128MB devoted to video
After a little while (3-5 min of zooming, rotating, and pannning) chunks start to disappear as per note in readme.
-andrew
what_nick
04-26-2006, 10:46 AM
7za SRTM decoding status is:
1:works with execing external 7za
2: partially parses 7za header in Java.Parsing the header is a real pain - port from C++ in progress.Is this necessary?Will it be fast?
Latest tested Platform is shown here
http://whatnick.blogspot.com/2006/04/ww2d-...in-and-7za.html (http://whatnick.blogspot.com/2006/04/ww2d-terrain-and-7za.html) style_emoticons/<#EMO_DIR#>/smile.gif
PS: The 7za format has Unsigned fields which u have to rather creatively handle in java
http://www.darksleep.com/player/JavaAndUnsignedTypes.html
patmurris
04-26-2006, 10:09 PM
<div class='quotetop'>QUOTE(what_nick @ Apr 26 2006, 05:46 AM) Quoted post</div><div class='quotemain'>
7za port from C++ in progress.Is this necessary?Will it be fast?
[/b][/quote]
As i said, if the 7za port is too much trouble we'll go with the external binary... its not as clean as i would have wished but dont kill yourself over it style_emoticons/<#EMO_DIR#>/wink.gif I ran into the unsigned decoding thing too for SRTM. Just casting to a bigger container does the trick...
Can we pack the various platforms execs in one simple installation package (along with JOGL) ?
Thanks very much for your undivided effort and support what_nick style_emoticons/<#EMO_DIR#>/smile.gif
Hmm I think Chris mentioned adding .zip support to the terrain server as Tom Gaskins was having similar problems.
patmurris
04-26-2006, 11:32 PM
<div class='quotetop'>QUOTE(bull @ Apr 26 2006, 05:55 PM) Quoted post</div><div class='quotemain'>
Hmm I think Chris mentioned adding .zip support to the terrain server as Tom Gaskins was having similar problems.
[/b][/quote]
Can you confirm that ? How soon ? Yesterday ??? style_emoticons/<#EMO_DIR#>/biggrin.gif
Seriously that is very interesting.
Tom should hang out in the Port forum... style_emoticons/<#EMO_DIR#>/dry.gif
what_nick
04-27-2006, 01:57 AM
Hey Pat u seem to be reading this ... Zip support is confirmed I will test and add it.
Er we need a compression type tag in the terrain XML. Yes TOM G should show up at times, saves us duplicating effort.
patmurris
04-27-2006, 07:46 AM
<div class='quotetop'>QUOTE(what_nick @ Apr 26 2006, 08:57 PM) Quoted post</div><div class='quotemain'>
Hey Pat u seem to be reading this ... Zip support is confirmed I will test and add it.
[/b][/quote]
That was fast what_nick ! Many thanks for your coding efforts and research.
I packed together the first beta version with SRTM data (http://www.alpix.com/3d/worldwin/WW2d_Java.html). Still many issues...
http://www.alpix.com/3d/worldwin/WW2D_Java/WW2D_3D_screen39_s.jpg
Chris, Tom : can we use the srtm30pluszip tile service ?
Can we have the Moon and Mars in Zip too style_emoticons/<#EMO_DIR#>/wink.gif
Pierrick
05-10-2006, 01:38 PM
i hope i can add attachment this time.
this is screen shot of ww2D+1 on tiger.
however, i think i have found a bug. near longitude 2.25 i can't have the left part and the right part drawn in the same time.
[edit] i have no space enough to put my attachment. if someone can explain me how to do?
[it seems to be ok now :), could you increase the size of attachment to something like 50ko or 100ko. 31ko is very low]
Beansprout
05-10-2006, 02:50 PM
Try again - I increased the attachment space :)
patmurris
05-10-2006, 11:09 PM
this is screen shot of ww2D+1 on tiger. However, i think i have found a bug. near longitude 2.25 i can't have the left part and the right part drawn in the same time.
Yes, sorry about that, this is a 'known' issue and it can happen about anywhere, when close to the ground and with a tilt close to 45 degrees. It is refered to as a 'view frustrum' issue - when you try to infer wether a tile is visible or not.
Changing the tilt or heading usually restore the complete scenery. I hope to address this bug with a 'real' six plane 3D view frustrum logic at some point.
BTW: this also happens in NWW - not as bad though :rolleyes:
A little note too : WW2D Plus One is not a port of NWW. It is more of a 'would be clone' built from scratch on a much simpler code base.
Beansprout
05-10-2006, 11:39 PM
[it seems to be ok now :), could you increase the size of attachment to something like 50ko or 100ko. 31ko is very low]
Whoops, I didn't see that setting. Fixed :)
patmurris
05-11-2006, 01:14 AM
this is screen shot of ww2D+1 on tiger.
Pierrick: can you post a nice looking 'not-bugged' perspective screen shot with the Mac OSX desktop background ?
I've had various Linux ones, but no Mac so far... :rolleyes:
patmurris
05-13-2006, 05:54 AM
WW2D Plus One beta 2 is now available (http://www.alpix.com/3d/worldwin/WW2d_Java.html).
Faster downloads, faster rendering, better memory management... and high resolution terrain mesh when you need it.
http://www.alpix.com/3d/worldwin/WW2D_Java/WW2D_3D_screen53_s.jpg
Tenerife, Spain with low, medium and high resolution terrain
Still some view frustrum issues... and optimization is a never ending story ;)
Unregistered
05-18-2006, 01:56 PM
Howdy!
I think I've spotted a bug: when I use SRTM, it works like it should, except for the fact that it's impossible to see negative elevation. For instance, the places listed here on Wikipedia (http://en.wikipedia.org/wiki/List_of_places_on_land_with_elevations_b elow_sea_level) that aren't lakes, of which the terrain altitudes are below 0m, are shown and seemingly rendered as 0m.
Examples are New Orleans, USA, and the most western parts of the Netherlands (for instance Airport Schiphol and Nieuwekerk aan den Ijssel).
Thank you, Vitaliy and Patrick, for your great programs!
Pierrick
05-18-2006, 09:21 PM
here some screenshot from tiger, without bug. I hope you recognize the place.
Thank you for your work.
Unregistered
05-22-2006, 09:56 AM
Great work on the Java version - I can finally see the World Wind data on Linux. On my old laptop (850MHz, Intel i810), it's kind of sluggish - it looks like it's falling back into software OpenGL rendering (if I resize the window to be really small then it speeds up, indicating a fill-rate problem, which often happens when the drivers fall back to software).
I was wanting to debug the app to see if I can figure out what OpenGL features are causing the fallback into software to allow a "no-frills" mode that works faster on old hardware.
Is the source available? If so, under what license? If it's not decided yet, I'd like to request the source be made available under BSD or LGPL licenses.
Thanks again for the great work.
patmurris
05-22-2006, 07:53 PM
it's kind of sluggish - it looks like it's falling back into software OpenGL rendering...
I've had the same problem on a modern windows box when i first tested WW2D. I updated my video card drivers and it went much better then.
Here is WW2D Plus One beta 2 source (http://www.alpix.com/3d/worldwin/WW2D_Java/WW2DPlusOne_beta2_src_core.zip) (Zip 92k) - see the readme. License not decided yet - will be open in a way or an other. Still a work in progress...
Main issue beside the view frustrum bug is memory management and VM garbage collection - which makes it stuter when it kicks in.
Unregistered
05-23-2006, 03:25 AM
Thanks. I'll have a look at the code and see if I can figure out what's causing the OpenGL slowdown (on older hardware). I'll post what I find here.
Unregistered
06-28-2006, 03:15 PM
I can't seem to get the stars to show up. I was having an error finding the tvs file but I fixed that but still no stars. Any Ideas?
patmurris
06-28-2006, 06:53 PM
I can't seem to get the stars to show up. I was having an error finding the tvs file but I fixed that but still no stars. Any Ideas?
The Stars need Hipparcos_Stars_Mag6x5044.tsv in Global/!Base/
That works since the first alpha versions - and there is no option to turn them off. I dont see what could be preventing them to show up.
Does the world render properly ?
Unregistered
06-29-2006, 11:14 AM
The Stars need Hipparcos_Stars_Mag6x5044.tsv in Global/!Base/
That works since the first alpha versions - and there is no option to turn them off. I dont see what could be preventing them to show up.
Does the world render properly ?
Yes the world renders fine. I have the file there and I get no error but see no stars
patmurris
06-29-2006, 06:09 PM
Yes the world renders fine. I have the file there and I get no error but see no stars
Stars are rendered as 'GL_POINTS'.
Maybe your video drivers (or video card) are dated and that OGL feature fails on your system ?
Did you at least update your video drivers ?
Unregistered
06-30-2006, 03:41 AM
I am testing on my machine and what I find are that the stars are drawn, but very quickly something gets drawn over them. This gives the impression that they aren't drawn, unless you are paying attention.
Will need to see why the stars are getting blanked out.
BTW is there a CVS respository with the source? It would be nice to see this added a experimental feature to the official release.
Unregistered
06-30-2006, 04:38 AM
commenting out
fog.Disable();
in the display() method of MapCanvas allows the stars to stay.
The other issue is rendering issues of the status bar. I am not going ot look at it now since I need to sleep
- ajmas (still waiting to be able to submit under my name)
gershwinou
10-16-2006, 12:16 PM
Since there is a new version of ww2d, any new version for the 3d?
patmurris
10-17-2006, 01:46 AM
Since there is a new version of ww2d, any new version for the 3d?
WW2D Plus One is based on the previous version 0.99.87 of WW2D and will not work on top of the latest 0.99.88.
So the best option for 3D now is to keep using 0.99.87 and deploy +1 beta 2 over it.
You can still get WW2D 0.99.87 here :
http://ww2d.csoft.net/files/ww2d-0.99.87.zip
However, to complicate things a bit, the latest WW2D uses the newer JOGL implementation JSR231 which is not compatible with the previous one, namely 1.10. So if you plan on also using the latest WW2D, you may have to deal with two versions of JOGL which i'm not sure how this may work out...
So here is the JOGL version used by PlusOne and WW2D 0.99.87 :
http://ww2d.csoft.net/files/JOGL-Inst-1.10.jar
I'm wondering about refactoring the +1 specific code and merging/integrating it in the latest 0.99.88... and i'm not positive this will happen. Especially considering that World Wind 1.5 java is due soon and i'm confident it will be a more solid code base to work with for 3D.
Should any one want to do the move, the source for WW2DPlusOne beta 2 is here (see readme.txt):
http://www.alpix.com/3d/worldwin/WW2D_Java/WW2DPlusOne_beta2_src_core.zip
Let me know... :rolleyes:
anamika
04-15-2009, 04:37 PM
Pat,
I downloaded WW2DPlusOne_beta2_src_core.zip that you posted on on of the threads, and tried to build it, but I can't find the "net.java.games.jogl" package anywhere. Can you please send a link to the "net.java.games.jogl" download.
Thanks,
anamika
I've been working on a 3D view for Vitaliy Pronkin WW2D. Still in alpha but coming together...
You can download an alpha version here (http://www.alpix.com/3d/worldwin/WW2d_Java.html). It has to be applied over a working installation of WW2D.
http://www.alpix.com/3d/worldwin/WW2D_Java/WW2D_3D_screen14_s.jpg
Please read the 'readme.txt' for keyboard controls and known issues and let me know how it performs on what platform... if it works style_emoticons/<#EMO_DIR#>/wink.gif
TomServo
04-15-2009, 05:31 PM
Pat is no longer maintaining that, you are better off with WWJava now.
patmurris
04-15-2009, 08:49 PM
Yes that was some sort of early experiment... Use the NASA World Wind Java SDK (http://worldwind.arc.nasa.gov/java/index.html).
vBulletin® v3.7.1, Copyright ©2000-2013, Jelsoft Enterprises Ltd.