Planetside Software Forums

Support => Terragen Support => Topic started by: rasteron on March 15, 2013, 04:26:00 AM

Title: Skybox rendering like Terragen Classic [Angular Distortion?]
Post by: rasteron on March 15, 2013, 04:26:00 AM
Hi all,

I'm trying to render a set of skybox images using Terragen 2. I was wondering if it is possible to render with the images being rendered in a distorted manner, see image below (is this angular distortion?). Do I need to tweak some camera settings for this effect?

Anyway, I have this kind of setup when I'm using the classic version. Attached is an image (Terragen classic) that I would like to apply when rendering the image.

(http://i48.tinypic.com/s4uj9w.jpg)

Also if it is possible to remove Land from rendering (Terrain) just like the classic version?

Any help would be much appreciated.
Title: Re: Skybox rendering like Terragen Classic [Angular Distortion?]
Post by: Oshyan on March 15, 2013, 02:31:59 PM
Camera should work basically the same in TG2 as TG Classic, in terms of distortion. In TG Classic it was "Zoom" that determined your field of view. In TG2 it's horizontal or vertical fov, defaulting to horizontal. So increase FoV to get a wider view, it should distort similarly to TG Classic, which is just a result of the camera projection used. I would not say, however, that distortion is *desirable* for a skybox, per se. Also I don't see a lot of distortion in your example image, the edge of the sky is curved because it's a hemisphere over the terrain.

To turn off the terrain in TG2, just go to the settings of the Planet object and uncheck Render Surface. Because the atmosphere is a sphere rather than a hemisphere in TG2, it will render atmosphere all around you, and not a black area like you see in TG Classic.

- Oshyan
Title: Re: Skybox rendering like Terragen Classic [Angular Distortion?]
Post by: rasteron on March 15, 2013, 08:03:33 PM
Hi Oshyan,

Thanks for the info, that helped a lot. Ok so it is hemisphere over a terrain, how do I achieve that result? :) I'm trying to setup the same effect in TG2. The first problem that I'm getting is when I render it on TG2, the sun/sky looks flat when I view it from another angle in my 3D application.

I have some images from a tutorial in setting up a good skybox which works really well in Terragen classic.

(http://www.terathon.com/wiki/images/c/c4/RenderWindow02.png)

(http://www.terathon.com/wiki/images/2/2e/CameraSettings.png)

Is there an equivalent setting for TG2?

Thanks again.
Title: Re: Skybox rendering like Terragen Classic [Angular Distortion?]
Post by: Oshyan on March 15, 2013, 08:05:47 PM
Zoom of 1 is a 90 degree FoV. Perhaps that helps you? Not sure what you mean about the rest, "sun/sky looks flat"...

- Oshyan
Title: Re: Skybox rendering like Terragen Classic [Angular Distortion?]
Post by: rasteron on March 15, 2013, 08:26:00 PM
Thanks Oshyan, yes I have set my horizontal fov to 90 and it works. There's a problem with the seams but that's another issue. :)

Here's a comparison of the two samples from the classic and tg2, they are placed almost at the same location (near the edge) I'm not sure if the clouds around the sun makes it more 3d but as you can see in my image above rendered in tg classic, the sun is rendered distorted which works.

Classic (sun looks 3D)
(http://i46.tinypic.com/2hfj5h2.jpg)

TG2 (sun looks flat)

(http://i47.tinypic.com/2v2a4k9.png)

Title: Re: Skybox rendering like Terragen Classic [Angular Distortion?]
Post by: Oshyan on March 15, 2013, 08:32:46 PM
I can only guess you're just talking about the "glow" around the sun? You can try turning off Visible Disc in the TG2 sun, or increase atmospheric haze density to get more glow.

- Oshyan
Title: Re: Skybox rendering like Terragen Classic [Angular Distortion?]
Post by: rasteron on March 15, 2013, 08:41:19 PM
Ok thanks, I will try that.  :) But how do I get it to render the sun/sky similar to the classic which gives it a spherical (3D) look? Is this possible on TG2?

Title: Re: Skybox rendering like Terragen Classic [Angular Distortion?]
Post by: Oshyan on March 15, 2013, 08:58:25 PM
Without knowing the details of your workflow for creating the skybox, I honestly can't say. The usual method for doing this, rendering 6 90 degree FoV images and stitching them together, should give similar results with the defaults in each program.

- Oshyan
Title: Re: Skybox rendering like Terragen Classic [Angular Distortion?]
Post by: rasteron on March 15, 2013, 09:05:47 PM
Appreciate your time and help Oshyan.  :) I'm using pretty much all the defaults but for the important part I have set my camera position to: 5000, 1, 5000 and the hfov to 90. Will that help?
Title: Re: Skybox rendering like Terragen Classic [Angular Distortion?]
Post by: Oshyan on March 15, 2013, 09:18:29 PM
I'm sorry, I honestly don't know. This really begins to be more about how the images are dealt with externally, and I don't have direct experience creating skyboxes, so I can't say. There are quite a few threads around here discussing similar needs however (though none have mentioned your particular problem, most often it is about the seams between image tiles, which has a solution as well, using GI caching). Hopefully one of the other threads, or someone who works with skyboxes, can help further. I simply don't understand the problem you're describing, I don't see it in your example images.

- Oshyan
Title: Re: Skybox rendering like Terragen Classic [Angular Distortion?]
Post by: rasteron on March 15, 2013, 09:26:31 PM
Ok I will do that. Thanks again for all the help! Good day :-)