Author Topic: Path animation  (Read 1824 times)

Offline Alexey

  • int
  • **
  • Posts: 50
    • View Profile
Path animation
« 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?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11745
    • View Profile
    • http://www.jpct.net
Re: Path animation
« Reply #1 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.

Offline Alexey

  • int
  • **
  • Posts: 50
    • View Profile
Re: Path animation
« Reply #2 on: September 05, 2011, 11:26:58 am »
сan you explain more specifically?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11745
    • View Profile
    • http://www.jpct.net
Re: Path animation
« Reply #3 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.

Offline Alexey

  • int
  • **
  • Posts: 50
    • View Profile
Re: Path animation
« Reply #4 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!

Offline Alexey

  • int
  • **
  • Posts: 50
    • View Profile
Re: Path animation
« Reply #5 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