Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Search
Login
Register
www.jpct.net
»
jPCT-AE - a 3d engine for Android
»
Support
»
Path animation
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Path animation (Read 4157 times)
Alexey
int
Posts: 50
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?
Logged
EgonOlsen
Administrator
quad
Posts: 12297
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.
Logged
Alexey
int
Posts: 50
Re: Path animation
«
Reply #2 on:
September 05, 2011, 11:26:58 am »
сan you explain more specifically?
Logged
EgonOlsen
Administrator
quad
Posts: 12297
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.
Logged
Alexey
int
Posts: 50
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!
Logged
Alexey
int
Posts: 50
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
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
www.jpct.net
»
jPCT-AE - a 3d engine for Android
»
Support
»
Path animation