Planetside Software Forums

General => Terragen Discussion => Topic started by: Hannes on April 25, 2017, 08:18:43 AM

Title: Atmosphere not following planet
Post by: Hannes on April 25, 2017, 08:18:43 AM
I want to animate my ISS scene, and since objects don't render correctly, when they are very far away from the origin, I decided to move the planet far away instead of the ISS.
So far so good. When I'm trying to animate the object floating above the earth I either have to animate the station, moving it fastly very far away again, or just move the planet instead. Moving the object produces weird results again. The preview shows the object correctly, but in the render it's at a different place.
So why not moving the planet? I animated the X value of the planet's centre from -6e+006 to -4e+006. Works for the planet, but unfortunately the atmosphere stays in place.
I tried a lot of things and found a strange behaviour. I attached an example scene to show you what I mean:
Load the scene and activate visible atmosphere in the 3D preview. You'll see the atmosphere correctly located around the planet. Hit "jump to last frame" in the animation time line, and you'll see, that the planet has moved, but the atmosphere stays in place. Now you can either uncheck "Render Surface", "Render atmosphere", "Translate textures with planet" or "Rotate textures with planet", no matter, which one, and voilĂ , the atmosphere is where the planet is. But if you jump back to the first frame, the atmosphere doesn't follow back, unless you hit one of the mentioned buttons again.
So, is this some sort of bug, or did I miss something?
Title: Re: Atmosphere not following planet
Post by: Dune on April 25, 2017, 09:09:59 AM
This was the case a while ago, but I thought it had been tackled...
What if you use two identical planets, one with only atmo, and one with only surface, and move both the same? Will atmo move with it then?
Title: Re: Atmosphere not following planet
Post by: Hannes on April 25, 2017, 09:22:03 AM
Quote from: Dune on April 25, 2017, 09:09:59 AM
What if you use two identical planets, one with only atmo, and one with only surface, and move both the same? Will atmo move with it then?

Nope. Same here.
Doing some tests with moving the station and the camera again. It seemed that the dislocation of the station only happened in the first and last frame.
Thanks anyway!!
Title: Re: Atmosphere not following planet
Post by: bobbystahr on April 25, 2017, 09:39:42 AM
educational thread, following....
Title: Re: Atmosphere not following planet
Post by: Hannes on April 25, 2017, 09:53:00 AM
Moving the station and the cameras in sync does work, but GI caching doesn't, since these things are moving so fast and so far, that the GI can't be correctly interpolated. Without caching there's one hell of flickering.
So, it seems there's no chance to do a flight of the station above the earth without faking something. I could use a rendered background instead of the planet...
Title: Re: Atmosphere not following planet
Post by: bobbystahr on April 25, 2017, 09:55:32 AM
could you render in separate layers and composite it after the fact?
Title: Re: Atmosphere not following planet
Post by: Dune on April 25, 2017, 10:04:12 AM
Fake the atmo (distance anyway), so no GIcache needed, I'd say.
Title: Re: Atmosphere not following planet
Post by: Hannes on April 25, 2017, 10:07:41 AM
I guess, I'll fake the whole background. I'll render out a high res image of my earth and use it as backdrop.
Title: Re: Atmosphere not following planet
Post by: Dune on April 25, 2017, 10:10:45 AM
Fake all!
Title: Re: Atmosphere not following planet
Post by: KlausK on April 25, 2017, 10:13:20 AM
Hi, just lurking around the corner and saw this...

Did anyone notice that this seems to be related to the OpenGL versus RTPreview?

When I use the RTP to look at the scene, the Atmo follows the Planet even when I klick the "Play" button.
Does not work in normal OpenGL preview, like you described.

Maybe that helps for further investigation on staff side...

cheers, Klaus
Title: Re: Atmosphere not following planet
Post by: Hannes on April 25, 2017, 10:25:34 AM
Quote from: KlausK on April 25, 2017, 10:13:20 AM
Hi, just lurking around the corner and saw this...

Did anyone notice that this seems to be related to the OpenGL versus RTPreview?

When I use the RTP to look at the scene, the Atmo follows the Planet even when I klick the "Play" button.
Does not work in normal OpenGL preview, like you described.

Maybe that helps for further investigation on staff side...

cheers, Klaus

Quite interesting!

Quote from: Dune on April 25, 2017, 10:10:45 AM
Fake all!

Yeah!!!! I'll render a plane in TG with a real ISS photo mapped onto it!!!!!! Cool! ;D ;D ;D ;D
Title: Re: Atmosphere not following planet
Post by: Dune on April 25, 2017, 12:26:31 PM
 ;D But DO Animate!
Title: Re: Atmosphere not following planet
Post by: ajcgi on February 14, 2018, 04:38:52 AM
Resurrecting this thread to add that I'm getting a similar issue in the latest release. I'm not animating the planet but if I move the centre of the planet to the top, or shift it to the middle for more convenient camera moves at planetary scale, the atmo and clouds don't follow until I save and reload the scene. As mentioned in previous builds, the RTP shows it in the correct location.
Title: Re: Atmosphere not following planet
Post by: Oshyan on March 05, 2018, 05:34:46 PM
Yes, this has not yet been fixed. There is an issue in the bug tracker for it.

- Oshyan
Title: Re: Atmosphere not following planet
Post by: Ariel DK on March 20, 2020, 06:32:44 PM
Re-resurrecting this thread just to ask why the objects don't render correctly when they are very far away from the origin, and to know if this was already fixed, due i'm still having a similar issue trying rendering objects around smaller planets than earth (default) size...
Title: Re: Atmosphere not following planet
Post by: SILENCER on March 22, 2020, 12:15:16 PM
I guess, I'll fake the whole background. I'll render out a high res image of my earth and use it as backdrop.


That worked for NASA!
Title: Re: Atmosphere not following planet
Post by: bobbystahr on March 22, 2020, 05:09:17 PM
Quote from: SILENCER on March 22, 2020, 12:15:16 PMI guess, I'll fake the whole background. I'll render out a high res image of my earth and use it as backdrop.


That worked for NASA!
ha ha ha ha has
Title: Re: Atmosphere not following planet
Post by: Hannes on March 23, 2020, 03:38:23 AM
;D ;D ;D
Title: Re: Atmosphere not following planet
Post by: WAS on March 23, 2020, 01:53:42 PM
Quote from: Ariel DK on March 20, 2020, 06:32:44 PMRe-resurrecting this thread just to ask why the objects don't render correctly when they are very far away from the origin, and to know if this was already fixed, due i'm still having a similar issue trying rendering objects around smaller planets than earth (default) size...

More sticking to the question asked, and not spamming for last a couple of days:

No example video was provided, just a project, which will change through versions.

But when I animate a RTP, the atmosphere and planet moves, and a copy planet stays, ironically compared to the source problem.

However, when I render the last frame and first frame, the planet, and atmosphere are in the correct location.