Special:
|
[DAT] (requires LDraw-compatible viewer)
|
Subject:
|
LDS and Animation - Suggestions Needed!
|
Newsgroups:
|
lugnet.cad.dev
|
Date:
|
Tue, 8 Feb 2000 21:06:04 GMT
|
Viewed:
|
1104 times
|
| |
| |
Again, I have plans to make animation automated using LDS. But I think this means I need to handle formatted text
strings for file names.
Also, IF - THEN would be handy, and not that complicated, I guess.
A simple example:
Z=100
FOR F=1 TO 16
I=I+1
IF I>8 THEN I=1
OUTFILE="FRAME(*1*).DAT"
Z=Z-12.5
1 16 0 0 0 1 0 0 0 1 0 0 0 1 WORLD.DAT
1 16 0 0 Z 1 0 0 0 1 0 0 0 1 MFWALK(*2*).DAT
NEXT F
would make LDS create:
frame001.dat:
1 16 0 0 0 1 0 0 0 1 0 0 0 1 WORLD.DAT
1 16 0 0 100 1 0 0 0 1 0 0 0 1 MFWALK01.DAT
frame002.dat:
1 16 0 0 0 1 0 0 0 1 0 0 0 1 WORLD.DAT
1 16 0 0 87.5 1 0 0 0 1 0 0 0 1 MFWALK02.DAT
...
frame008.dat:
1 16 0 0 0 1 0 0 0 1 0 0 0 1 WORLD.DAT
1 16 0 0 0 1 0 0 0 1 0 0 0 1 MFWALK08.DAT
frame009.dat:
1 16 0 0 0 1 0 0 0 1 0 0 0 1 WORLD.DAT
1 16 0 0 -12.5 1 0 0 0 1 0 0 0 1 MFWALK01.DAT
...
frame016.dat:
1 16 0 0 0 1 0 0 0 1 0 0 0 1 WORLD.DAT
1 16 0 0 -100 1 0 0 0 1 0 0 0 1 MFWALK08.DAT
(*1*) would in C look something like: printf("FRAME%03d.DAT",F);
and (*2*) look like: printf("MFWALK%02d.DAT",I);
I need ideas how it would look in LDS (which is more inspired by BASIC).
Maybe it would be ewasier just to use string variables instead:
A$="FRAME";F (formatted somehow) ; ".DAT"
OUTFILE=A$
...
1 16 0 0 Z 1 0 0 0 1 0 0 0 1 B$
One other thought is to let LDS create one single .MPD file...
Any suggestions?
/Tore
|
|
1 Message in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|