Planetside Software Forums

General => Terragen Discussion => Topic started by: Thejazzshadow on October 16, 2009, 04:47:54 PM

Title: importing planet height and color textures
Post by: Thejazzshadow on October 16, 2009, 04:47:54 PM
I have run into a dead end. I have some planet height and color textures and I can't figure out how to get them on the planet. When I use image shader, it doesn't cover the whole planet and it moves with the camera.
Title: Re: importing planet height and color textures
Post by: cyphyr on October 16, 2009, 06:02:28 PM
Image shader is the right start, make sure the projection type is set to spherical and the image center is the same as the planets center (usually 0, -6.378e+006, 0).
Hope this helps
Richard
Title: Re: importing planet height and color textures
Post by: Thejazzshadow on October 16, 2009, 07:39:09 PM
Thanks. I got the color to work great but I can't get the height one to work. I have a photo that shows the earth's heightmap but I can't get it to work.
Title: Re: importing planet height and color textures
Post by: Henry Blewer on October 16, 2009, 07:50:56 PM
Have you tried giving the heightmap some extreme values. When I've used these in other 3D apps, they don't show up well without high values. If you think of the size of the Earth, and the height of Everest, Everest is not all that large.
Title: Re: importing planet height and color textures
Post by: Thejazzshadow on October 16, 2009, 07:54:33 PM
I'll try that... While we are on the topic of image files, when I add a a texture to a rock population, how do I find the center coordinates?
Title: Re: importing planet height and color textures
Post by: Henry Blewer on October 16, 2009, 08:00:20 PM
I do not know, sorry. I use procedurals to texture nearly everything.
Title: Re: importing planet height and color textures
Post by: Kadri on October 16, 2009, 08:12:09 PM
Quote from: Thejazzshadow on October 16, 2009, 07:54:33 PM
I'll try that... While we are on the topic of image files, when I add a a texture to a rock population, how do I find the center coordinates?

İ am new to TG2 too ,but i think if you right click on the 3d view anywhere you want ,you can copy the coordinates and then paste it. İf this it what you are after.

Edit : Maybe you saw it here. This tutorials helped me a lot  http://forums.planetside.co.uk/index.php?topic=6505.0   But here are other very good tutorials too.
         
Kadri.
Title: Re: importing planet height and color textures
Post by: Oshyan on October 16, 2009, 11:23:58 PM
You should use the height data (assuming it's in a spherical projection) loaded into an Image Map Shader with the same settings as your texture shader, and with Displacement Enabled. For realistic height I guess you'd set it to the height of Everest, tallest mountain in the world. ;) But you will probably find that to not be very noticeable, so you might need to exaggerate it. Remember, it's measured in meters.

- Oshyan