Planetside Software Forums

General => Terragen Discussion => Topic started by: Brukhar on March 17, 2011, 02:21:17 AM

Title: Image Map Shader for Atmosphere
Post by: Brukhar on March 17, 2011, 02:21:17 AM
Hey guys,

I'm in the process of developing an image map shader for planetary atmospheres.  I have 2 things that I'm stuck on though:
1. The image map...is it supposed to be a square?  Or a different aspect ratio?
2. When I set Projection Type to "through camera", the atmosphere (namely, the clouds) are like a flat image plane.  I want it to map to the sphere of the planet.  But when I change the projection type to "spherical", it creates some bizarre polar version of it where it's all just white and black angled lines

Please help! :D

(http://img151.imageshack.us/img151/7688/mapjj.png)
Title: Re: Image Map Shader for Atmosphere
Post by: Dune on March 17, 2011, 02:51:24 AM
From what I know, you have to map spherically (and the texture is oblong, I think), but with the center set at the planet's center.
Title: Re: Image Map Shader for Atmosphere
Post by: freelancah on March 17, 2011, 06:44:23 AM
Yeah Dune is right. To make an spherical map work you need to set it's coordinates same as the planets, which by default would be: 0  ,  -6.378e+006  ,  0
Title: Re: Image Map Shader for Atmosphere
Post by: jo on March 17, 2011, 09:02:34 AM
Hi,

An easy way to copy the planet centre is to open the param view for the planet and then click on the clipboard button at the right of the Centre param. This will let you copy the coordinates which you can then paste into the Position param of the Image map shader using the clipboard button for that param.

Regards,

Jo
Title: Re: Image Map Shader for Atmosphere
Post by: Brukhar on March 19, 2011, 10:12:56 PM
Okay...here's what I got so far...how do I make it not suck? xD

(http://img41.imageshack.us/img41/5748/hurricaneplanet2.jpg)
(http://img251.imageshack.us/img251/6149/screeniers.jpg)
Title: Re: Image Map Shader for Atmosphere
Post by: TheBlackHole on March 20, 2011, 10:03:12 AM
Maybe add some fractals? Also you should try increasing cloud depth.
Title: Re: Image Map Shader for Atmosphere
Post by: Brukhar on March 20, 2011, 03:22:19 PM
lol d'oh, today I found out freelancah released one of his scenes for this exact style, i'll be back after i mess with it and see