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 

IgnoreData argument


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


Joined: 08 Jan 2018
Posts: 4

PostPosted: Mon Jan 08, 2018 12:29 pm    Post subject:
IgnoreData argument
Reply with quote

Hi,

I want to overlay a combination of textures[TIFF files] over the terrain. However all of them contain some blank data along the edges which overlap with actual data in other files.

So is there a flag/argument to specify the data values to be ignored in the texture files?

Note : I cannot combine the textures using gdal merge as the combined size of the texture would be very high and also they might not be available together at once.
...

Thank you!

Cheers,
Saket
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 12127

PostPosted: Mon Jan 08, 2018 3:20 pm    Post subject:
IgnoreData argument
Reply with quote

HI Saket,

On 8 January 2018 at 12:29, Saket Chawla <> wrote:
Quote:
I want to overlay a combination of textures[TIFF files] over the terrain. However all of them contain some blank data along the edges which overlap with actual data in other files.

So is there a flag/argument to specify the data values to be ignored in the texture files?

Note : I cannot combine the textures using gdal merge as the combined size of the texture would be very high and also they might not be available together at once.

VPB doesn't provide any direct support for setting which values to
ignore, but does check GDAL's GDALRasterBand NoDataValue, not all
image file formats will support a NoDataValue. You'll need to check
with GDAL to see what is possible.

If it's image data you want to blend together then using RGBA image
data will allow blending between image layers that can effectively
mask out the no data areas.

Robert.


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
sak3t
Newbie


Joined: 08 Jan 2018
Posts: 4

PostPosted: Tue Jan 09, 2018 4:36 am    Post subject:
Reply with quote

Thank you Robert:)

NoDataValue flag in the tiff file serves me the exact purpose.

...
Thanks,
Saket
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 osgscreencapture yields invalid pixel... Émeric MASCHINO General 6 Mon Aug 18, 2014 7:42 pm View latest post
No new posts Passing argument as samplerCube to glsl Turgutm General 1 Fri May 06, 2011 7:07 am View latest post
No new posts osgText::readFontFile returns NULL on... JDThomsen General 4 Wed Mar 18, 2009 11:57 am View latest post
No new posts Bug with argument parser? alessandro terenzi General 4 Sat Nov 15, 2008 7:40 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