Planetside Software Forums

General => Terragen Discussion => Topic started by: bigben on May 16, 2014, 07:34:24 PM

Title: Help with object UVs
Post by: bigben on May 16, 2014, 07:34:24 PM
I've been doing some work with Agisoft Photoscan (I actually get to do this at work now  :D) and I'm up to investigating rendering the models.  I'm having an issue with white bits showing through the edges of the UV maps.  If there a setting in TG that can fix this or is it something I have to look at with the model?  The image is just our calibration target but it's quite big (500mb, 400mb of textures)  I may have to make a smaller one if I have to fix the model.  Any suggestions greatly appreciated as working with models is not my forte.  Image maps are TIFFs with transparency, no alphas
Title: Re: Help with object UVs
Post by: zaxxon on May 16, 2014, 08:56:11 PM
Don't know if will help, but I had some similar issues with objects showing that kind of 'bloom'. I initially thought it was caused by missing maps in the opacity channel. After some frustration I was able to eliminate those problems by adjusting the 'roughness' setting in the 'specularity' tab in the material shader. Good explanation in the Planetside Wiki:

http://www.planetside.co.uk/wiki/index.php?title=Default_Shader_-_Specular_Tab

Hope this helps.
Title: Re: Help with object UVs
Post by: bigben on May 16, 2014, 10:40:59 PM
Thanks Zaxxon
Mine turned out to be missing opacity maps.  Rendered a largish image to demo some of the factors that affect the model quality from photogrammetry... mostly noise from fewer overlapping images towards the edges. Model was exported with 10 million faces.
http://files.digitisation.unimelb.edu.au/playpen/3d-scans/bigwall.jpg (http://files.digitisation.unimelb.edu.au/playpen/3d-scans/bigwall.jpg)

The point cloud for our next test (a partial building scan) has just finished processing. Should be able to pull out a few views from this later.
[attach=1]
Title: Re: Help with object UVs
Post by: TheBadger on May 16, 2014, 11:22:46 PM
Saw those blooms for the first time today too. Thanks for posting on it.
Title: Re: Help with object UVs
Post by: russe166 on May 17, 2014, 02:59:04 AM
Try to disable 'Unpremultiply colour' in the Image tab of the 'Default shader'
Title: Re: Help with object UVs
Post by: bobbystahr on May 17, 2014, 04:14:13 AM
Quote from: bigben on May 16, 2014, 07:34:24 PM
I've been doing some work with Agisoft Photoscan (I actually get to do this at work now  :D) and I'm up to investigating rendering the models.  I'm having an issue with white bits showing through the edges of the UV maps.  If there a setting in TG that can fix this or is it something I have to look at with the model?  The image is just our calibration target but it's quite big (500mb, 400mb of textures)  I may have to make a smaller one if I have to fix the model.  Any suggestions greatly appreciated as working with models is not my forte.  Image maps are TIFFs with transparency, no alphas
I had this once and fixed it by converting my files to .bmp...I think that those are 32 bit tif files (mine were)...that may be why.
Title: Re: Help with object UVs
Post by: bigben on May 17, 2014, 04:35:44 AM
My maps are 8bit. It's just that the connections weren't made. Thought about editing the mtl but then I found this:
http://www.terragen.org/index.php?topic=4828.0;wap2 (http://www.terragen.org/index.php?topic=4828.0;wap2). I think I might doing something similar to this and write something to use the mtl to write a TG clip.