![]() |
|
|||||||
| Development Help Help for building applications or diagnosing problems with WWJ |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Jul 2012
Posts: 5
![]() |
Another issue: opacity of KML objects? I use a lot of transparent LineStrings, and they're not displaying correctly. I added a few lines to assembleLineAttributes in KMLUtil.java to get the desired effect (I'm comparing to Google Earth's rendering of KML files), but I'm not sure if I'm missing something, and the opacity is actually being handled elsewhere.
At around line 37: Code:
if (style.getColor() != null) {
attrs.setOutlineMaterial(new Material(WWUtil.decodeColorABGR(style.getColor())));
if ( style.getColor().length() == 8 )
attrs.setOutlineOpacity(Integer.parseInt(style.getColor().substring(0, 2).toUpperCase(), 16) / 255.0);
}
|
|
|
|
|
|
#2 |
|
Junior Member
Join Date: Jul 2012
Posts: 5
![]() |
Ah, I see you've already split it into another thread. My apologies for mis-posting this earlier.
|
|
|
|
![]() |
| 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 |
| Weird KML Exception on loading KMZ file | Daan | Development Help | 7 | 03-29-2012 09:44 AM |
| KML | tag | WWJ Release Announcements | 50 | 07-21-2011 06:49 PM |
| Tip: Consider using a KML Builder rather than an XML builder for generating KML | wobster | Development Help | 1 | 07-13-2011 03:12 PM |
| Opacity and WW 1.4 | gabrio | Technical Support | 24 | 10-29-2009 08:51 PM |
| Kml texture IO error | kmf164 | Development Help | 3 | 06-15-2009 09:11 PM |