To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 10314
10313  |  10315
Special: 
[DAT] (requires LDraw-compatible viewer)
Subject: 
Re: Thoughts on File Format for LDraw Animation
Newsgroups: 
lugnet.cad.dev
Date: 
Thu, 27 Oct 2005 17:47:14 GMT
Viewed: 
2939 times
  
In lugnet.cad.dev, Steve Bliss wrote:
In lugnet.cad.dev, Kevin L. Clague wrote:
In lugnet.cad.dev, Anders Isaksson wrote:
Kevin L. Clague wrote:

MPD does not help this in any way, because again, there is only part
type (file name) and no instance name.

But as I said, if you put all instances, that need to be named, in a subfile
of its own you *have* named instances. It wouldn't be too difficult to write
a helper program (or add-on) that does this folding for you (creating a
subfile of selected parts inside an MPD).

LDraw has no support for the naming of instances part usages.

Objection. The MPD format gives one way of doing it.

Ha, ha, ha.... I had this long winded response argument all typed out, and then
Mozilla died.  Probably divine intervention.  Let me try and see if I can get
this one out with less energy.

Um, I'm not sure this has been worked out...

I think James was saying that the subfiles in an MPD can be treated as the
'name'.  This is true, as long as you also require that each subfile only be
used once.

So a file like:

0 FILE test1.mpd
1 15 0 -24 0 1 0 0 0 1 0 0 0 1 block1
1 4 0 0 0 1 0 0 0 1 0 0 0 1 block2
0 FILE block1
1 16 0 0 0 1 0 0 0 1 0 0 0 1 3010.dat
0 FILE block2
1 16 0 0 0 1 0 0 0 1 0 0 0 1 3010.dat
0

Would have 2 named objects, block1 and block2.

Nested objects (ie, subfiles using other subfiles) are OK, as long as each
subfile is only used anywhere in the whole model.

This approach is attractive, because it doesn't require any extra syntax or
meta-statements.  But it might not be practical -- it would be a pain to have to
create a new set of minifig subfiles for each character in a crowd scene.

Steve

That's a very good idea I didn't think of! The approach I was thinking of is
unnecessarily complicated. Looks like there will be no need for the tags I
mentioned earlier.

No pain at all. I think all current minifig generators can be easily updated to
have an Animation MPD option as soon as the standard is set. Then the generator
will do all the painful job in a breeze.

I guess the Name METAs are overkill.

0 FILE mfTimmy.ldr
0 Minifig Timmy
0 Name: mfTimmy.ldr
0 [This Object]
1 1  0 0 0  1 0 0  0 1 0  0 0 1  970.dat
0 [Child Objects]
1 4  0 -32 0  1 0 0  0 1 0  0 0 1  Torso
1 1  0 12 0  1 0 0  0 1 0  0 0 1  LeftLeg
1 1  0 12 0  1 0 0  0 1 0  0 0 1  RightLeg
0

0 FILE Torso
0 Name: Torso
0 [This Object]
1 16  0 0 0  1 0 0  0 1 0  0 0 1  973.dat
0 [Child Objects]
1 14  0 -24 0  1 0 0  0 1 0  0 0 1  Head
1 16  15.55 8 0  0.9855 0.17 0  -0.17 0.9855 0  0 0 1  LeftArm
1 16  -15.55 8 0  0.9855 -0.17 0  0.17 0.9855 0  0 0 1  RightArm
0

0 FILE Head
0 Name: Head
0 [This Object]
1 16  0 0 0  1 0 0  0 1 0  0 0 1  3626bp01.dat
0 [Child Objects]
1 0  0 0 0  1 0 0  0 1 0  0 0 1  Hat
0

0 FILE Hat
0 Name: Hat
0 [This Object]
1 16  0 0 0  1 0 0  0 1 0  0 0 1  3624.dat
0 [Child Objects]
0

0 FILE LeftArm
0 Name: LeftArm
0 [This Object]
1 16  0 0 0  1 0 0  0 1 0  0 0 1  981.dat
0 [Child Objects]
1 14  5 18 -10  1 0 0  0 0.73 -0.64  0 0.64 0.73  LeftHand
0

0 FILE LeftHand
0 Name: LeftHand
0 [This Object]
1 16  0 0 0  1 0 0  0 1 0  0 0 1  983.dat
0 [Child Objects]
0

0 FILE RightArm
0 Name: RightArm
0 [This Object]
1 16  0 0 0  1 0 0  0 1 0  0 0 1  982.dat
0 [Child Objects]
1 14  -5 18 -10  1 0 0  0 0.73 -0.64  0 0.64 0.73  RightHand
0

0 FILE RightHand
0 Name: RightHand
0 [This Object]
1 16  0 0 0  1 0 0  0 1 0  0 0 1  983.dat
0 [Child Objects]
0

0 FILE LeftLeg
0 Name: LeftLeg
0 [This Object]
1 16  0 0 0  1 0 0  0 1 0  0 0 1  972.dat
0 [Child Objects]
0

0 FILE RightLeg
0 Name: RightLeg
0 [This Object]
1 16  0 0 0  1 0 0  0 1 0  0 0 1  971.dat
0 [Child Objects]
0



Message has 1 Reply:
  Re: Thoughts on File Format for LDraw Animation
 
(...) Yes, this is what Anders was trying to get me to understand. The MPD framework provides a name visibility barrier (scope). I still say that LDraw type 1 lines are used to specify hierarchy. The <file> names within the MPD can be used to (...) (19 years ago, 27-Oct-05, to lugnet.cad.dev)

Message is in Reply To:
  Re: Thoughts on File Format for LDraw Animation  [DAT]
 
(...) Um, I'm not sure this has been worked out... I think James was saying that the subfiles in an MPD can be treated as the 'name'. This is true, as long as you also require that each subfile only be used once. So a file like: 0 FILE test1.mpd 1 (...) (19 years ago, 27-Oct-05, to lugnet.cad.dev)

30 Messages in This Thread:







Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR