Planetside Software Forums

General => Terragen Discussion => Topic started by: Hannes on May 23, 2012, 02:46:26 AM

Title: Camera blur bug?
Post by: Hannes on May 23, 2012, 02:46:26 AM
I created a camera animation in 3ds max and exported the camera with Davy's plug in. I imported it into TG and it worked fine, but frames 50 and 213 render totally black, although the GI prepass seems to compute normally. I found that when I set the camera blur from 0.5 to 0 for these frames it renders fine. I attached the file with another terrain for testing purposes (don't care about the crazy displacement offset - it's just to keep the camera above the ground). Maybe some Planetside staff members can have a look at it?
Title: Re: Camera blur bug?
Post by: Matt on May 23, 2012, 04:07:38 AM
On frame 50 the camera's Y rotation is 179.875
On frame 51 the camera's Y rotation is -179.849

Although these rotations represent almost the same direction, the animation curve jumps sharply through nearly 360 degrees from +180 -180.

You can see this happening Terragen's Curve Editor. You can also fix the problem here. Select the rotation's Y component in the curve editor. Drag a marquee around the keys in the middle section where the values are different. Now add 360 to the value of the selected keys. To do that, enter 360 in the number field at the bottom of the Curve Editor. Click the menu button to the right of the number and select "Move by value". That should add 360 to all the selected values to make a continuous curve.

Matt
Title: Re: Camera blur bug?
Post by: Hannes on May 23, 2012, 06:09:07 AM
Ah, I see. Thank you, Matt!! I'll dive into the animation curves.
Title: Re: Camera blur bug?
Post by: Hannes on May 23, 2012, 06:36:18 AM
Yep, that did it!! Thanks again.