Script for moving a model

Hi,

I’d like to use some script for correctlymoving my ennemies but for you, is it a good solution ?

Moving the man from A to B to C, …
In a file, writing the A coord, B coord, C coord and move the model between the points ?

Thanks in advance.

So you want to use a script of some sort to create this file, and then read the file into you opengl app?

Yes, you’ve right.

I need some idea before to begin.

Thanks.

You can first set the view to top view of the scene. Then the movement points can be easily selected by using the mouse. The selected points are sequentially outputted to a file and later retrieved by reading the same.

why do you have to create this file before hand, why can’t you include the movement behaviour in your opengl prog? I can’t see why yo would want to do it this way… it makes no sense to me. instead of having a file with 2000 frames of movement you can do
for (i=0;i<2000;i++){
gltranslatef(1.0, 0.0, 0.0);
}
I believe this is the point of computer programming!

Originally posted by balcn:
[b]You can first set the view to top view of the scene. Then the movement points can be easily selected by using the mouse. The selected points are sequentially outputted to a file and later retrieved by reading the same.

[/b]

I think this is a good solution,why not?