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-23-2012, 04:16 PM   #1
shitesh
Junior Member
 
Join Date: Jul 2012
Posts: 5
shitesh is on a distinguished road
Default KML object opacity

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);
        }
shitesh is offline   Reply With Quote
Old 08-27-2012, 07:51 AM   #2
shitesh
Junior Member
 
Join Date: Jul 2012
Posts: 5
shitesh is on a distinguished road
Default

Ah, I see you've already split it into another thread. My apologies for mis-posting this earlier.
shitesh 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
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


All times are GMT +1. The time now is 11:49 AM.


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