OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

Having trouble making no-data transparent in vpb database


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> VirtualPlanetBuilder [vpb]
View previous topic :: View next topic  
Author Message
kingarthur10
Newbie


Joined: 17 Apr 2013
Posts: 14

PostPosted: Fri Dec 27, 2013 6:54 pm    Post subject:
Having trouble making no-data transparent in vpb database
Reply with quote

Hola all,

I could use a bit of advice on how to properly format my osgdem parameter to ensure that boundary areas of the quad aren't interpreted as black, but instead as completely transparent.

Use case:
I use vpb to generate terrain for use with an osgEarth application.
I've created an earth.
I'm creating a high-resolution inset based on a widely available dataset.

I receive the files, convert them in gdal and strip extra color bands, warp them in gdal using the -dstalpha parameter to make sure that all boundaries are transparent (otherwise I get a nice repeating pattern of very thin black strips), and create overviews.
I then use the following command:

osgdem --geocentric --TERRAIN --notify-level WARN -t ../warp --default-color 0,0,0,1 -O Compressor=zlib -o myoutputfile.osgb

The database processes correctly, but each lod file fills in black anywhere there is no data. This means that when I overlay the terrain db on top of another data set, it looks horrible.

I could use a parameter within osgEarth to make black a transparent value, but that doesn't work as then you have lots of little transparent specks all over the place.

I've attached two images that help demonstrate the issue. If someone could help me configure my parameters correctly, I'd appreciate it greatly.

Thanks!
Arthur
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> VirtualPlanetBuilder [vpb] All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Custom data within nodes or drawables arennuit General 2 Thu Aug 24, 2017 9:52 am View latest post
No new posts Wait for Database pager to complete robertosfield General 72 Sun Jul 09, 2017 9:27 pm View latest post
No new posts How to replace the texture data in th... xdfanfan General 1 Wed Apr 05, 2017 12:44 pm View latest post
No new posts Changing another thread's node's Stat... CTW_Liu General 4 Mon Dec 05, 2016 7:49 am View latest post
No new posts isolate specific LOD from a VPB gener... Trajce Nikolov NICK General 7 Tue Nov 29, 2016 6:20 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP