![]() |
|
|||||||
| Developers' Corner General World Wind development. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
What?
Join Date: Apr 2005
Location: San Francisco, California
Posts: 2,464
|
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. |
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Jun 2005
Location: France
Posts: 166
|
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 |
|
|
|
|
|
#3 |
|
What?
Join Date: Apr 2005
Location: San Francisco, California
Posts: 2,464
|
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.
|
|
|
|
|
|
#4 |
|
What?
Join Date: Apr 2005
Location: San Francisco, California
Posts: 2,464
|
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.
|
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Aug 2005
Posts: 317
|
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 |
|
|
|
|
|
#6 |
|
Junior Member
Join Date: Apr 2007
Posts: 1
|
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 |
|
|
|
|
|
#7 |
|
What?
Join Date: Apr 2005
Location: San Francisco, California
Posts: 2,464
|
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. |
|
|
|
|
|
#8 |
|
Senior Member
Join Date: Apr 2006
Posts: 404
|
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 |
|
|
|
|
|
#9 |
|
What?
Join Date: Apr 2005
Location: San Francisco, California
Posts: 2,464
|
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.
|
|
|
|
|
|
#10 |
|
Senior Member
Join Date: Apr 2006
Posts: 404
|
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 |
|
|
|
![]() |
| 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 |
| 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 |