Subject:
|
Re: Lego XML?
|
Newsgroups:
|
lugnet.cad
|
Date:
|
Tue, 29 Apr 2003 23:15:36 GMT
|
Viewed:
|
918 times
|
| |
| |
In lugnet.cad, Kyle McDonald writes:
> I know VRML was mentioned earlier, and now XML.
>
> Someone may want to look at X3D (I think that's what it's called.)
> It is a newer relative of VRML for 3D graphics done in XML.
Well actually I was thinking more along the lines of describing a model in
terms of it's parts, but not a full 3d description like X3D. Something like
this (sorry, this looks terrible without a monospaced font):
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE model SYSTEM "http://brick-xml.sourceforge.net/DTD/brick-xml.dtd">
<model>
<info creator="Gary Thomas" date="04/02/2002" title="Test MOC">
Long description, blah blah blah blah.
</info>
<part id="3001" color="#FF0000" x="0" y="1" z="3"/>
<!-- optional transform attribute uses matrix transformation -->
<part id="3001" color="#FFFF00" x="2" y="1" z="3" transform="matrix(1 0 0 0
1 0 0 0 1)"/>
<!-- optional transform shows a rotation about the x axis -->
<part id="3003" color="#000000" x="1" y="9" z="0" transform="rotate(90,0,0)"/>
<!-- color uses optional alpha channel -->
<part id="3005" color="#FFFFFFAA" x="6" y="0" z="0"/>
</model>
So in theory, it's still compatible with ldraw/lgeo parts, etc.
Later,
Gary
>
> I haven't looked at it myself, but I hear about it all the
> time on the Java3D list I'm on.
>
> It might be interesting who knows.
>
> -Kyle
|
|
Message has 2 Replies: | | Re: Lego XML?
|
| (...) Looked fine to me. I only use a monospace font. :) (...) I see. I know nothing about X3D, but I imagined a model might be something like you describe. However, theoretically the part files the model referenced could (I think?) be coded in (...) (22 years ago, 29-Apr-03, to lugnet.cad)
| | | Re: Lego XML?
|
| (...) 1 0 0 0 1)"/> (...) Wow, that is pretty cool. A person could write a 20-line Perl program to transmogrify that into .ldr format pretty easily, and vice-versa. (...) Waycool. BTW, how do people feel about specifying colors in hex RGB format? (...) (22 years ago, 30-Apr-03, to lugnet.cad)
|
Message is in Reply To:
| | Re: Lego XML?
|
| (...) I know VRML was mentioned earlier, and now XML. Someone may want to look at X3D (I think that's what it's called.) It is a newer relative of VRML for 3D graphics done in XML. I haven't looked at it myself, but I hear about it all the time on (...) (22 years ago, 29-Apr-03, to lugnet.cad)
|
16 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
|
|
|
|