Planetside Software Forums

General => Terragen Discussion => Topic started by: pug_ugly on May 23, 2015, 06:52:26 PM

Title: Newbie here, getting an error when trying to import from World Machine.
Post by: pug_ugly on May 23, 2015, 06:52:26 PM
Hi all nice to be here.

I'm new to Terragen, trying to build my first scene. I'm loosely following along with the awesome geekatplay tutorial (following what he does but sort of trying to make an original scene and not copy his.) I've imported the mountain i've made in world machine alright, but when I try to import the snow textures I get this error:

ReadImage: Please convert image to SGI for non-standard bit depths.

I exported the textures out of World machine in .tif. I don't see an SGI option in World Machine. Any ideas?
Title: Re: Newbie here, getting an error when trying to import from World Machine.
Post by: Dune on May 24, 2015, 02:00:18 AM
What bit depth is the tif then? TG should import all, afaik. You import using an image map shader?
Title: Re: Newbie here, getting an error when trying to import from World Machine.
Post by: pug_ugly on May 24, 2015, 06:40:36 PM
I am using image map shader. I don't know how to check the bit depth for the tif. Do you mean the dpi?
Title: Re: Newbie here, getting an error when trying to import from World Machine.
Post by: AP on May 24, 2015, 08:21:10 PM
Right click on your image file. There should be information under properties and open the details tab. Under the Bit depth it should say what it is. If it is a Tif, it should be 8 or 16 bits per RGB color channel. DPI is just stands for Dots Per Square Inch.
Title: Re: Newbie here, getting an error when trying to import from World Machine.
Post by: pug_ugly on May 24, 2015, 08:57:22 PM
Thanks, I knew that about the dpi, just never heard of bit depth before. Its saying 48 in the properties. It's supposed to be 16, right?
Title: Re: Newbie here, getting an error when trying to import from World Machine.
Post by: AP on May 24, 2015, 09:08:55 PM
48 per channel I presume? That is very high and un-needed. It should be 16bits per channel and that would be plenty to avoid the stair-stepping effect which is well known in 8bits per RGB channel.
Title: Re: Newbie here, getting an error when trying to import from World Machine.
Post by: bobbystahr on May 24, 2015, 10:06:07 PM
Quote from: ChrisC on May 24, 2015, 09:08:55 PM
48 per channel I presume? That is very high and un-needed. It should be 16bits per channel and that would be plenty to avoid the stair-stepping effect which is well known in 8bits per RGB channel.

needs a trip through Photoshop me thinks
Title: Re: Newbie here, getting an error when trying to import from World Machine.
Post by: AP on May 24, 2015, 10:48:09 PM
Probably or any free equivalent.
Title: Re: Newbie here, getting an error when trying to import from World Machine.
Post by: bobbystahr on May 24, 2015, 11:47:57 PM
Quote from: ChrisC on May 24, 2015, 10:48:09 PM
Probably or any free equivalent.

uh yup
Title: Re: Newbie here, getting an error when trying to import from World Machine.
Post by: pug_ugly on May 25, 2015, 07:06:07 AM
I checked in photoshop and it said there that the image was 16 bit. I knocked it down to 8 just to try it, and it shows up in terragen now, just super small. So maybe now it just a matter of re-sizing in program?
Title: Re: Newbie here, getting an error when trying to import from World Machine.
Post by: bobbystahr on May 25, 2015, 08:22:58 AM
Re reading your original post, is this a texture map or a flow map to control the snow? I don't think WM textures are useable in TG 2 or 3.
If this is a flow map it needs to be the same size as the terrain you've imported. From here on in it might be a good idea to post the .tgd here with the attempted use of the map in it so we can see what's going on from the file.
Title: Re: Newbie here, getting an error when trying to import from World Machine.
Post by: mhaze on May 25, 2015, 11:08:19 AM
WM texture maps can be used in TG. You may need to alter the output size of the maps.  Go to world commands - project settings and change the size of the maps. You need to connect the output to a bitmap output node and set it to tiff 32 bit depth then output it.
Title: Re: Newbie here, getting an error when trying to import from World Machine.
Post by: bobbystahr on May 25, 2015, 12:08:39 PM
Quote from: mhaze on May 25, 2015, 11:08:19 AM
WM texture maps can be used in TG. You may need to alter the output size of the maps.  Go to world commands - project settings and change the size of the maps.

Thanks man, good to know...next time I'll save them as well then.
Title: Re: Newbie here, getting an error when trying to import from World Machine.
Post by: pug_ugly on May 25, 2015, 06:47:22 PM
Thanks for the help so far guys, it is much appreciated. Here is the .tgd file. Not much on it so far, just a powerfractal and the imported mountain. mhaze, I have the bitmap outputs in place, but only have the option for 16 bit tiff (and then it seems to go to 48 when I look at the file properties). Am I missing something? Does the map need to be set to a specific size? I had it set to 24 km x 24 km and a 2049 x 2049 res.

Title: Re: Newbie here, getting an error when trying to import from World Machine.
Post by: AP on May 25, 2015, 08:59:58 PM
Alright, so your Tiff is 16bits per RGB channel and that is why it is a 48bit color image. That sounds normal. Terragen should read that with no problem. If you have a 2049 by 2049 size terrain then your image map should be re-sized to 30720 by 30720 meters under your image map node and set position to center and projection type to Plan Y. 24 km is 24,000 meters so that will be a bit to small to fit over the imported height field.
Title: Re: Newbie here, getting an error when trying to import from World Machine.
Post by: pug_ugly on May 25, 2015, 09:41:42 PM
Awesome, finally got it to show up! Thanks for the help and info guys! Now I just need to go back into world machine and adjust the snow line so it doesn't cover the whole mountain! Haha.
Title: Re: Newbie here, getting an error when trying to import from World Machine.
Post by: AP on May 25, 2015, 10:11:13 PM
Very good.
Title: Re: Newbie here, getting an error when trying to import from World Machine.
Post by: bobbystahr on May 25, 2015, 10:28:13 PM
Good stuff, I look forward to your first render.
Title: Re: Newbie here, getting an error when trying to import from World Machine.
Post by: mhaze on May 26, 2015, 04:07:10 AM
Ditto.