www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: Alexey on September 05, 2011, 10:49:41 am

Title: Path animation
Post by: Alexey on September 05, 2011, 10:49:41 am
Hello all, i need to do something like path animation, move the object along the path. yet what I think to place a dummies in the world and use them as intermediate points, but this is somewhat time-consuming. Maybe have a better idea?
Title: Re: Path animation
Post by: EgonOlsen on September 05, 2011, 11:04:33 am
For benchmark runs, i use to store the path in small time deltas (20ms or something) as a Matrix/SimpleVector tuple for orientation/position. I'm not sure if this applies to your problem.
Title: Re: Path animation
Post by: Alexey on September 05, 2011, 11:26:58 am
сan you explain more specifically?
Title: Re: Path animation
Post by: EgonOlsen on September 05, 2011, 08:25:34 pm
Not much to explain...i create the path by walking through the level and each 20ms, i record the current position and orientation. The resulting arrays of positions and rotation matrices are then written to disc. To run the benchmark, i read this data back in and set orientation and position based on the current time elapsed...that's all.
Title: Re: Path animation
Post by: Alexey on September 06, 2011, 08:44:56 am
I understand. I was not clear how the movement was specified. Manually move do not quite fit for me, but thanks anyway!
Title: Re: Path animation
Post by: Alexey on September 06, 2011, 12:35:40 pm
I solve mi issue :)  - i created needed path, convert it to mesh, export to collada .dae, from result file copy vertices's array and translation vector & parse it with adding translation  vector to array of SimpleVector