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 08-08-2012, 03:02 AM   #1
Denis
Junior Member
 
Join Date: Jun 2012
Posts: 2
Denis is on a distinguished road
Default The z coordinate of SurfacePolygons

Hi,

I want to render a lot of polygons (>10,000), and I have tried using the render.Polygon, as well as render.airspace.Polygon to do this, but they seem to take some time to complete the rendering.

I started to look at render.SurfacePolygons, and notice it can render the polygons faster than previous two approaches. Since the polygons need to be slightly above the ground, I wonder if there is a way I can set the z coordinate when using the SurfacePolygons?

Thanks,
Denis
Denis is offline   Reply With Quote
Old 08-08-2012, 08:44 AM   #2
BuM
Member
 
Join Date: Jan 2012
Posts: 94
BuM is on a distinguished road
Post SurfacePolygons are Textures

Hi there,

it is not possible to give SurfacePolygons a height coordinate, because SurfacePolygons are not 3D objects in the scenery, but Textures on the surface of the earth. Thus, to elevate SurfacePolygons, you would need to elevate the whole surface that they are drawn onto.

What might be possible however, is to have an extra layer similar to the earth layer, but without map data (meaning fully transparent) and with a higher altitude than the earth layer. Drawing your SurfacePolygons onto this layer might give the impression of elevated SurfacePolygons. Never tried such a thing, though.

However, I reckon that your solution probably lies in some way to render 3D Polygons more quickly some way.
BuM is offline   Reply With Quote
Old 08-09-2012, 09:09 AM   #3
Denis
Junior Member
 
Join Date: Jun 2012
Posts: 2
Denis is on a distinguished road
Default

Thanks BuM,

I see what you mean. Regarding to the the extra layer you mention, do you have any suggestion of layer one to use, as I couldn't find one in the package that allows you set the altitude?

Thanks,
Denis
Denis is offline   Reply With Quote
Old 08-13-2012, 09:06 AM   #4
BuM
Member
 
Join Date: Jan 2012
Posts: 94
BuM is on a distinguished road
Default

Sorry, I have not done much with the map layers. I would suggest finding out, which layer displays the current world, then override this class leaving out all the image loading.
The height of the terrain is specified by a height model assigned to the layer, afaik.
Still I do not know how to tell WorldWind to render SurfaceObjects onto the extra terrain layer instead of the normal one. Maybe this idea draws too far, hopefully someone else has a better idea in one or another direction.
BuM is offline   Reply With Quote
Old 08-13-2012, 07:38 PM   #5
tag
WWJ Technical Manager
 
Join Date: May 2007
Location: Seattle
Posts: 1,033
tag is on a distinguished road
Default

SurfacePolygons are rendered on the terrain and cannot have an altitude.

There is only one terrain instance and it's not associated with any layer. Earth is not a layer but a Globe with an elevation model. You can have multiple or replacement elevation models, but it won't have any effect on SurfacePolygon because all elevation models are combined to form the terrain.
tag is offline   Reply With Quote
Reply

Tags
surfacepolygons


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
MGRS Coordinate Validation bmu104 Development Help 5 09-07-2011 01:57 PM
WMS server is Local Coordinate System vrnew Development Help 2 04-01-2010 03:35 AM
Converting world coordinate orientation angles to roll, pitch, and yaw bhughes Development Help 5 03-26-2010 08:21 PM
Coordinate Systems, Lighting, Views, Models, and Far Clipping Plane shawngano Development Help 14 07-13-2009 01:33 PM
mousedown_click coordinate precision xhl Technical Support 1 09-04-2007 09:31 PM


All times are GMT +1. The time now is 03:10 PM.


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