World Wind Forums

Go Back   World Wind Forums > WorldWind JAVA forums > Development Help

Development Help Help for building applications or diagnosing problems with WWJ

Reply
 
Thread Tools Display Modes
Old 07-28-2009, 09:02 PM   #1
Kashank
Senior Member
 
Join Date: Jun 2009
Posts: 128
Kashank is on a distinguished road
Question [Solved] Picking woes....

Ok I've heard alot on the forum about this and I've searched but I can't seem to come across what I'm looking for. I found a forum topic where a guy was able to turn off picking within his select listener... however.


I have not included a select listener within mine. Is there specific code to turn off picking?

or even code that alows me to "select" and object without being able to move it?

Last edited by patmurris; 07-29-2009 at 10:24 PM. Reason: Solved
Kashank is offline   Reply With Quote
Old 07-28-2009, 10:10 PM   #2
patmurris
WWJ Consultant
 
patmurris's Avatar
 
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
patmurris is an unknown quantity at this point
Default

Not sure what you are asking for... turn picking off for what? terrain, imagery layers, icons, surface shapes?

To be able to select an object, that object must have gone through the pick pass and registered at least a PickableObject with the DrawContext. Whether you just consider it 'selected' or handle some sort of dragging is the application choice.
__________________
My World Wind Java Blog & WW.net Plugins page
patmurris is offline   Reply With Quote
Old 07-28-2009, 10:16 PM   #3
Kashank
Senior Member
 
Join Date: Jun 2009
Posts: 128
Kashank is on a distinguished road
Default

Quote:
Originally Posted by patmurris View Post
Not sure what you are asking for... turn picking off for what? terrain, imagery layers, icons, surface shapes?

To be able to select an object, that object must have gone through the pick pass and registered at least a PickableObject with the DrawContext. Whether you just consider it 'selected' or handle some sort of dragging is the application choice.
I apologize.

I read that by turning picking off of polylines that it will increase the performance of the application.

I wasn't able to figure out how to turn off the picking for my polylines, but I saw that you can just go and do a

layer.setPickEnabled(false);

to turn off picking for the layer that the polylines were added to. But this didn't seem to help the performance at all.
Kashank is offline   Reply With Quote
Old 07-29-2009, 12:18 AM   #4
patmurris
WWJ Consultant
 
patmurris's Avatar
 
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
patmurris is an unknown quantity at this point
Default

I guess you are using terain following polylines with a renderable layer. Did you try SurfacePolyline in a SurfaceShapeLayer?

How many vertices do you try to render?
__________________
My World Wind Java Blog & WW.net Plugins page
patmurris is offline   Reply With Quote
Old 07-29-2009, 02:39 PM   #5
Kashank
Senior Member
 
Join Date: Jun 2009
Posts: 128
Kashank is on a distinguished road
Default

Quote:
Originally Posted by patmurris View Post
I guess you are using terain following polylines with a renderable layer. Did you try SurfacePolyline in a SurfaceShapeLayer?

How many vertices do you try to render?
Nah I can't use terrain following. I need the elevation parameter for the polylines. So surfacepolyline's are out for me

ha ha the vertices are a little ridiculous.... somewhere around 70,000.

I'm not expecting to have it run perfect, cause I know it's gonna suffer performance issues. I just want to make sure I can make it run as good as possible. I've already dumbed down the polylines with these lines of code.

Polyline.setPathType(Polyline.RHUMB_LINE );
Polyline.setAntiAliasHint(Polyline.ANTIA LIAS_FASTEST);
Polyline.setNumSubsegments(0);
Polyline.setFollowTerrain(false);
Polyline.setLineWidth(1);
Polyline.setStippleFactor(0);

and that helped my performance ALOT.
Kashank is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
picking text label pegasus Development Help 5 08-03-2009 06:58 PM
picking object 3d workingDog Development Help 1 07-21-2009 02:49 PM
[Solved] Picking, Selecting, Intesecting or whatever it is called PokerVT Development Help 4 10-02-2008 10:36 PM
Polyline, picking, and efficiency pjt33 Development Help 2 09-26-2008 08:58 AM
Trouble with picking on mountainous regions slade Development Help 3 07-17-2007 08:49 PM


All times are GMT +1. The time now is 08:22 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.