| | Thoughts on File Format for LDraw Animation
|
|
1. .DAT Praises The DAT file and the possibility to use Type 1 lines in DAT files to call on other DAT files is so versatile, so brilliant, so LEGO. It's the foundation that has made LDraw The standard for virtual LEGO. There are details that (...) (19 years ago, 23-Oct-05, to lugnet.animation, lugnet.cad.dev)
|
|
| | Re: Thoughts on File Format for LDraw Animation
|
|
One more thing I forgot to mention: I am a lowsy programmer, so don't judge the LDA project by looking at its interface. It it primarly for testing my theories to see if they work. Just like I don't think anyone uses original LDraw anymore, I really (...) (19 years ago, 25-Oct-05, to lugnet.cad.dev)
|
|
| | Re: Thoughts on File Format for LDraw Animation
|
|
(...) <snip> (...) One of the weaknesses of the LDraw file format is that part instances do not have names. This makes it impossible to modify attributes about the part instance. The closest thing we have to date is named groups provided by MLCad. (...) (19 years ago, 25-Oct-05, to lugnet.cad.dev)
|
|
| | Re: Thoughts on File Format for LDraw Animation
|
|
In lugnet.cad.dev, Kevin L. Clague wrote: <snip> (...) Too true! (...) How about 3d modeling Parent->Child relationships When the Parent part moves, All children move in relation to it, including rotation (Unless they are Tracking to another (...) (19 years ago, 26-Oct-05, to lugnet.cad.dev)
|
|
| | Re: Thoughts on File Format for LDraw Animation [DAT]
|
|
(...) This is the way LDA2001/2005 already works on the inside. Here's a temporary object file, created by LDA2005, before it is inlined into its parent and grandparent files and, after that, deleted: 0 Project=MyAn; Frame #000; (...) (19 years ago, 26-Oct-05, to lugnet.cad.dev)
|
|
| | Re: Thoughts on File Format for LDraw Animation
|
|
(...) Isn't that more or less an MPD? By *not* reusing sub-models you get a unique name for every group, sub-group etc. Or am I misunderstanding something? (19 years ago, 26-Oct-05, to lugnet.cad.dev)
|
|
| | Re: Thoughts on File Format for LDraw Animation
|
|
(...) No. I've said this before and don't understand why others don't understand this yet. See my article: (URL) whole animation issue makes me dizzy. It is one big circle: (URL) (19 years ago, 26-Oct-05, to lugnet.cad.dev)
|
|
| | Re: Thoughts on File Format for LDraw Animation
|
|
(...) LDraw mixes part type and part name........ For library parts, we specify its part type (filename). For sub-models we specify its filename (same thing in both cases). In C++ we have classes, and instance of classes. In LDraw the names of the (...) (19 years ago, 26-Oct-05, to lugnet.cad.dev)
|
|
| | Re: Thoughts on File Format for LDraw Animation
|
|
(...) animations. I don't see how these ideas help us script anything. Can you explain what I'm missing? (...) Yes, and I was talking about trying to get to the second half of what you list.... scripting language.... without talking about GUIs for (...) (19 years ago, 26-Oct-05, to lugnet.cad.dev)
|
|
| | Re: Thoughts on File Format for LDraw Animation
|
|
(...) I really should write a part 2.... Basically, it involves converting the model to povray (or whatever, blender even). If the conversion process retains the parent-child hierarchy, then you don't have to go into the converted code and 1) add (...) (19 years ago, 26-Oct-05, to lugnet.cad.dev)
|
|
| | Re: Thoughts on File Format for LDraw Animation
|
|
(...) I guess I was not even considering STEP, ROTSTEP or CLEAR as meaningful for animation. I was only really considering type 1 lines as useful, just to describe the models components, so we agree. I was thinking about a higher level scripting (...) (19 years ago, 26-Oct-05, to lugnet.cad.dev)
|
|
| | Re: Thoughts on File Format for LDraw Animation
|
|
(...) 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 (...) (19 years ago, 26-Oct-05, to lugnet.cad.dev)
|
|
| | Re: Thoughts on File Format for LDraw Animation
|
|
(...) 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. According to this specification: (URL) provides two (...) (19 years ago, 26-Oct-05, to lugnet.cad.dev)
|
|
| | Re: Thoughts on File Format for LDraw Animation
|
|
(...) That's correct, but irrelevant. The hieriarchy is communicated with one single MPD in a way that would be impossible using one single DAT/LDR - if you put it together correctly, of course. (...) I have never used LPub so I'm not familiar with (...) (19 years ago, 27-Oct-05, to lugnet.cad.dev)
|
|
| | Re: Thoughts on File Format for LDraw Animation
|
|
(...) Could you please expalin why this is so? I guess I just don't get it. (...) Groups are an invention in MLCad. (...) Ah, we are talking the same thing. "983.dat" is no good. Yes, the tags give you metion give you a unique name (within the scope (...) (19 years ago, 27-Oct-05, to lugnet.cad.dev)
|
|
| | Re: Thoughts on File Format for LDraw Animation
|
|
(...) Oh, I... don't use MLCad ether... :) (...) Yes, Templates is a word I was looking for! :) (...) Lunch break is too short to give an example of how I mean. I will try to explain later this evening/night (CET) /Tore (19 years ago, 27-Oct-05, to lugnet.cad.dev)
|
|
| | 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)
|
|
| | Re: Thoughts on File Format for LDraw Animation [DAT]
|
|
(...) 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 (...) (19 years ago, 27-Oct-05, to lugnet.cad.dev)
|
|
| | 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)
|
|
| | Re: Thoughts on File Format for LDraw Animation
|
|
(...) Yes, but you can give the 'files' any name you want inside the MPD. They don't *have* to match the part name outside of the MPD. So you *can* get named parts inside an MPD (with the help of a suitable 'post-processing' program). I certainly (...) (19 years ago, 27-Oct-05, to lugnet.cad.dev)
|
|
| | Re: Thoughts on File Format for LDraw Animation [DAT]
|
|
(...) Well, hair goes under the category "Hat". It may sound a little strange, but that's the way it has to be. Like I said: 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 (...) (19 years ago, 27-Oct-05, to lugnet.cad.dev)
|
|
| | Re: Thoughts on File Format for LDraw Animation
|
|
In lugnet.cad.dev, Anders Isaksson wrote: <snip> (...) Ah, yes.... but only if you leave it to a committee! LOL! As the who has, invented the most meta-commands (I know, no LPub experience), I just create what I need, and tell people about them. No (...) (19 years ago, 28-Oct-05, to lugnet.cad.dev)
|
|
| | Re: Thoughts on File Format for LDraw Animation
|
|
(...) Hey you, don't steal my philosophy! :) (19 years ago, 28-Oct-05, to lugnet.cad.dev)
|
|
| | Re: Thoughts on File Format for LDraw Animation
|
|
(...) Is it OK if we share? ;^) Kev (19 years ago, 28-Oct-05, to lugnet.cad.dev)
|
|
| | Re: Thoughts on File Format for LDraw Animation
|
|
(...) Yes, why not. :) (19 years ago, 28-Oct-05, to lugnet.cad.dev)
|
|
| | Re: Thoughts on File Format for LDraw Animation
|
|
(...) Except me. ;) Seriously, this is why I butt into animation discussions. I care so much I want other people to at least come up with something that will survive time. I don't want someone to create something that will be incompatible with what (...) (19 years ago, 29-Oct-05, to lugnet.cad.dev)
|
|
| | Re: Thoughts on File Format for LDraw Animation [DAT]
|
|
(...) Yes, this is exactly what I suggest in my tutorial on how to model stuff. Then, in test1.mpd, you can rotate block1, and it will rotate all of its children as well! And you *should* rotate block1 so that you can see if you got its rotation (...) (19 years ago, 29-Oct-05, to lugnet.cad.dev)
|
|
| | Re: Thoughts on File Format for LDraw Animation
|
|
(...) This menas a huge download every time you wish to updated? <snip> Your project is in deed very interesting. I will try to follow the progress, and someday maybe I'll join it! But for now, I will explore where the LDA project leads. (...) Well, (...) (19 years ago, 30-Oct-05, to lugnet.cad.dev)
|
|
| | Tweening (and some Backwards Engineering)
|
|
I've been thinking a little about Tweening the last two weeks. Linear Motion Tweening between two keyframes is very simple I guess. If x(0)=50 and x(1)=250, then x(0.1)=50+(250-50)*0.1=70. "kx+m". But then I came to the rest of the LDraw Type 1 (...) (19 years ago, 11-Nov-05, to lugnet.cad.dev)
|
|
| | Re: Tweening (and some Backwards Engineering)
|
|
(...) Hi Tore, Finding the angles is quite complicated and depends on the choice of how you express the angles. The main way of expressing an angle are Euler angles ((URL) however there is another way to express angles which is slightly more (...) (19 years ago, 12-Nov-05, to lugnet.cad.dev)
|