World Wind Forums

Go Back   World Wind Forums > WorldWind .Net Development > Developers' Corner

Developers' Corner General World Wind development.

Reply
 
Thread Tools Display Modes
Old 05-01-2007, 03:21 AM   #1
withak
What?
 
withak's Avatar
 
Join Date: Apr 2005
Location: San Francisco, California
Posts: 2,464
Default Please test lines/polygons...

I just fixed a bunch of things in the LineFeature and PolygonFeature classes. Please test and report bugs or missing features now instead of after a release.

http://issues.worldwind.arc.nasa.gov...PolygonFeature
http://issues.worldwind.arc.nasa.gov...ET/LineFeature

To test, either build from SVN or unzip this on top of an existing 1.4 install (at your own risk).

Last edited by withak; 05-01-2007 at 03:56 AM.
withak is offline   Reply With Quote
Old 05-04-2007, 02:55 PM   #2
jp09
Senior Member
 
Join Date: Jun 2005
Location: France
Posts: 166
Default

Withak, i tried linestrings a bit yesterday. You've done a nice job here !
It seems though that for linestrings, changing opacity in the Properties windows, does not apply until you change the color too. Must miss something in the update routine ?
Jean
jp09 is offline   Reply With Quote
Old 05-04-2007, 03:16 PM   #3
withak
What?
 
withak's Avatar
 
Join Date: Apr 2005
Location: San Francisco, California
Posts: 2,464
Default

Yeah, I need to do the opacity the right way. At the moment it gets factored into the texture color at some point in the update process. It should probably get done in Render() somewhere instead.
withak is offline   Reply With Quote
Old 05-04-2007, 03:22 PM   #4
withak
What?
 
withak's Avatar
 
Join Date: Apr 2005
Location: San Francisco, California
Posts: 2,464
Default

Turning the item off then back on should update it also, but there seems to be a problem with polygon walls not getting re-added when that happens.
withak is offline   Reply With Quote
Old 05-06-2007, 02:47 AM   #5
nigel_ht
Senior Member
 
Join Date: Aug 2005
Posts: 317
Default

Here's a wierd thing...when I create a linefeature with the USGS Urban ortho layer on it drapes correctly with the terrain...when I turn USGS Urban ortho off I still get the higher detailed DEM for the linefeature but that makes it stick up above the Landsat imagery (peaks are lower) with the lower detailed DEM.

I zoom out and in trying to get the linefeature to redrape and it does repaint (you see it go from fuzzy/fat to thin) and it still uses the higher detailed terrain elevation.

I have a picture in case its not obvious what I'm saying.

Nigel
nigel_ht is offline   Reply With Quote
Old 06-26-2007, 09:57 PM   #6
ralphbu
Junior Member
 
Join Date: Apr 2007
Posts: 1
Default

Hi there,

Please excuse my new-ness. I tried your two classes, and drew some lines and polygons. I was hoping to use the polygonfeature to create an overlay based on DEM data.

for example... I might want everything from 1500ft MSL to 3500ftMSL to have a transparent layer of red within the boundaries defined by my polygon.

could not seem to make that work - at all...

polygon drew fine.

1) could not effect transparancy (it was always opaque even though the value was 100).

2) could not change color (while program was running).

3) did not "trim" the coverage based on altitude.


also, everything seems to draw quite slowly... i tossed a couple of lines on the screen using directX primitives, and they were quite quick.


(I have the latest build from SVN)

Am I doing something wrong??


Thanks much,



Ralph

Last edited by ralphbu; 06-26-2007 at 09:59 PM. Reason: spelling
ralphbu is offline   Reply With Quote
Old 06-26-2007, 10:28 PM   #7
withak
What?
 
withak's Avatar
 
Join Date: Apr 2005
Location: San Francisco, California
Posts: 2,464
Default

Yeah, the texturing is all screwed up at the moment. I was doing it by modifying the color to include the opacity value but it should be done using directx alpha blending functions like regular imagery layers do. I tried redoing it completely a while ago but couldn't make it work (I didn't try very hard though); maybe someone else can figure it out.

Last edited by withak; 06-26-2007 at 10:32 PM.
withak is offline   Reply With Quote
Old 07-23-2007, 06:36 AM   #8
Chade
Senior Member
 
Join Date: Apr 2006
Posts: 404
Default

withak, I was just wondering whether the current status on PolygonFeature has changed, or whether you or anyone else has looked at it?
I was attempting to make one semi-transparent when Clamped to Ground - it only works when it's Relative to Ground...
__________________
Machine. Unexpectedly, I’d invented a time
- Alan Moore
Chade is offline   Reply With Quote
Old 07-23-2007, 01:33 PM   #9
withak
What?
 
withak's Avatar
 
Join Date: Apr 2005
Location: San Francisco, California
Posts: 2,464
Default

I haven't done anything to it lately. Texturing is what is broken. Right now the opacity is set as part of the color when the feature is created. It should use the dx alpha and shading texture options instead like regular layers do but I couldn't get that to work. Lines and polygons should have the same issues I think.
withak is offline   Reply With Quote
Old 07-24-2007, 01:57 AM   #10
Chade
Senior Member
 
Join Date: Apr 2006
Posts: 404
Default

Yeah, I notice that LineFeature is only transparent for Relative to Ground too. I just want to stop my Line- and PolygonFeatures going straight through the earth...
__________________
Machine. Unexpectedly, I’d invented a time
- Alan Moore
Chade 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
ogc test bilgickadir Technical Support 1 09-18-2006 01:38 PM
wms test bilgickadir Technical Support 3 09-06-2006 07:18 AM
World Wind 1.3.4 beta test Randy Kim Developers' Corner 60 04-21-2006 10:18 PM
Atomic Landscapes natraj Hotspots 4 10-11-2005 05:11 PM
Return to Flight Tanking test tommorow engmike Community Chat 0 04-14-2005 02:08 AM


All times are GMT +1. The time now is 04:38 PM.


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