![]() |
|
|||||||
| Development Help Help for building applications or diagnosing problems with WWJ |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: Feb 2012
Posts: 43
![]() |
Hello everyone
I would like to do a test on how well WorldWind handles a lot of moving symbols. I would appreciate general pointers on how to write a piece of code to do that, or even if anyone feels tempted to write some code by themselves. |
|
|
|
|
|
#2 |
|
Super Moderator
Join Date: Nov 2006
Location: Mojave & Oxnard California
Posts: 2,621
![]() |
Well it's not the code but the concept that may help you the most.
I recorded a GPS track in my car. Then with a python script 50 tracks offsetting the original as to position and altitude. http://www.nlneilson.com/wwposts/50_tracks.jpg This is being updated every second. I just use points but you can try symbols to see how fast CPU goes up. I use C++ for sorting and heavy lifting and use a socket to communicate with the Java WWJ for display. The code is proprietary. |
|
|
|
|
|
#3 |
|
WWJ Technical Manager
Join Date: May 2007
Location: Seattle
Posts: 1,031
![]() |
Modify one of the programs in the performance package to continually update the shapes. Or easier yet, just run one of those programs, bring up the WW dashboard (Ctl+Alt+Shift+left-click) check the box labelled "Run Continuously" and look at the statistics in the Performance panel.
|
|
|
|
|
|
#4 |
|
Member
Join Date: Feb 2012
Posts: 43
![]() |
Here's some follow up.
I took the 'PointPlacemarksEverywhere' example from the package 'performance' and modified it a bit. The resulting code is available here: http://pastebin.com/47qt1Vdz It's really enough to just insert placemarks to test worldwind's performance, but if the boss wants moving symbols he's gonna get moving symbols. ![]() Some input regarding this code would be much appreciated. Is there anything that can be done better? One thing I've thought about is the actual graphic (the pushpin) used, maybe it could be replaced with a more basic symbol, like just a dot or a cross? |
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Feb 2008
Location: Melbourne, FL, USA
Posts: 675
![]() |
|
|
|
|
|
|
#6 | ||
|
Member
Join Date: Feb 2012
Posts: 43
![]() |
Quote:
Hm, as a sidenote I observed something that's seemingly in conflict with the documentation. The documentation says this regarding the attribute usePointAsDefaultImage in PointPlacemarkAttributes. Quote:
|
||
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Multiple Fonts as symbols in one Renderable Object | nbellsp | Development Help | 3 | 10-18-2011 08:14 PM |
| VPF Reader - How to get lines, areas symbols ? | Ben35 | Development Help | 0 | 07-05-2011 04:47 PM |
| Hanging the system while moving the annotations | satish | Developers' Corner | 3 | 05-11-2009 01:36 PM |
| Signalling when the globe stops moving | globe.trotter | Development Help | 4 | 03-07-2008 06:52 PM |