Object missing with .chan import

Started by Eric Johannsen, June 13, 2017, 03:52:40 AM

Previous topic - Next topic

Eric Johannsen

I wrote a little program to create a .chan file for my object (space ship) and the camera. Strangely, the object doesn't appear in the render when the .chan file has created key frames. However, when I do NOTHING other than Delete animation on the camera's position, the object appears as expected. What's happening here? Unfortunately, I'm still using TG2.

"Broken" setup
[attach=1]

"Broken" render
[attach=2]

Deleted the animation from camera's position
[attach=3]

Correct render
[attach=4]

Here are the first few lines from the object's .chan file
1 7.34763812293426E-12 0 120000 0 0 0 42.1034
2 -785.39255608222 0 119997.429799696 0 -0.375 0 42.1034
3 -1570.75146856133 0 119989.719308881 0 -0.75 0 42.1034
4 -2356.0430952754 0 119976.868857848 0 -1.125 0 42.1034

and here are the first few lines from the camera's .chan file
1 -4.99999999999265 0 120015 0 0 0 42.1034
2 -790.118940528346 0.0185845246348217 120012.399186422 0 0.554226231741084 0 42.1034
3 -1575.56959726272 0.018890961937039 120004.657521318 0 0.194548096851952 0 42.1034
4 -2360.95266382999 0.0192023531728092 119991.775338255 0 -0.164882341359539 0 42.1034

I'm trying to render Frame 1 in this example, but the problem exists for all frames.

Oshyan

I'm not very good at reading scientific notation but from what I can tell, the object and camera both are moving quite dramatically between frame 1 and 2-4, and still quite fast through 2-4. Do you have Motion Blur enabled? If so your object might just be blurring out of visibility. Try disabling it. If that's not it I'm not sure what's going on here.

- Oshyan

Eric Johannsen

Quote from: Oshyan on June 13, 2017, 05:30:42 PM
I'm not very good at reading scientific notation but from what I can tell, the object and camera both are moving quite dramatically between frame 1 and 2-4, and still quite fast through 2-4. Do you have Motion Blur enabled? If so your object might just be blurring out of visibility. Try disabling it. If that's not it I'm not sure what's going on here.

- Oshyan

Interesting, I just turned off Motion Blur to troubleshoot another issue and saw the object appear :-)

The camera is attached to the object (I wrote an outside program to calculate the camera's .chan relative to the object's position). Seems that the motion blur algorithm only accounts for motion through absolute space, not motion relative to the camera?


Oshyan

Camera motion blur is all that is available, not object motion blur. It should account for camera movement relative to object, I believe, but I think part of the problem you're seeing is that the object moves a lot relative to the camera in that first frame. I could be mistaken though.

- Oshyan

Eric Johannsen

Quote from: Oshyan on June 13, 2017, 05:53:24 PM
I think part of the problem you're seeing is that the object moves a lot relative to the camera in that first frame. I could be mistaken though.

There's almost no relative motion. 7.34763812293426E-12 is really, really, really close to zero (negative exponent).

Removing camera blur shouldn't be a problem for my project.

Oshyan

Fair enough, but it sounds like turning off motion blur *did* solve the issue, correct?

- Oshyan

Eric Johannsen


Oshyan

Ah, ok. Glad that worked. Sometimes it's hard to guess what the motion blur will do as it's camera-relative and not necessarily intuitive.

- Oshyan