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 / 8907
8906  |  8908
Subject: 
Re: Lego XML?
Newsgroups: 
lugnet.cad.dev
Date: 
Mon, 5 May 2003 20:42:32 GMT
Viewed: 
1784 times
  
Here is an idea! Anyone used Rover before?

http://www.flatland.com/

The idea is you have "block-sets" that you customize using XML to create worlds.

The concept could be adapted for sets, very easily.

IMO: I think it is a little redundant to have the same 2Lx2Wx1H block brick
with different patterns
when we could have a brick 'class' so to speak that you just set the LxWxH
dimensions for. Then,
you have additional parameters like technic='yes' then automatically puts
the axle holes in the
block 'class'.

Example:

<brick length='4' width='2' heigth='1' x='4' y='4' z='4' color='white' />
Would be equal to
http://www.peeron.com/inv/parts/3001

<plate length='4' width='2' x='4' y='4' z='4&1/3' color='ffffff' />
Would be equal to:
http://www.peeron.com/inv/parts/3020

Then, you could sub 'class' the block super 'class' to make the round
bricks, or anything else.

<sub name='1x2blockwgrille'>
   <brick length='2' width='1' height='1' location='4,4,4&2/3'
color='trans-blue' />
   <edges length='right' pattern='grille' />
   <edges length='left' pattern='grille' rotation='90' />
</sub>
Would be equal to:
http://www.peeron.com/inv/parts/2877

but later on in the model you could just call.

<brick class='1x2blockwgrille' color='black' location='4,5,4' />

<torso name='mini-figtrainchevron'>
   <mini-fig color='black' right-arm='black' left-arm='000'
left-hand='yellow' right-
hand='yellow' />
   <front url='.../torso/minifig/train/chevron.png' />
</torso>

or

<torso type='mini-fig' color='black' arms='black' left-arm-rotation='90'
hands='yellow'
location='4,4,5' front='.../
torso/minifig/train/chevron.png' />

Would be equal to:
http://www.peeron.com/inv/parts/973p19

Additional parameters could be something like:

rotation=0 thru 360,x|y|z //Rotation value and then which axis so you rotate
in multiple
directions

technic='yes|no|0|1' //For automatic technic axle holes
location=x,y,z or x= y= z= //Positioning
alpha=% or transparent='yes|no'

I'm sure someone is going to ask about tubes.

<tube location='(4,4,6),(4,4,7),(4,5,7)' color='gray' />

With this scheme I believe you could have tubes running thru your technic
bricks.

And for rotation of parts for animation you could give parts id numbers and
then do this.

<trigger event='on-click'>
     <id='123' rotation='90,z' speed='2' />
     <id='124' location='(4,4,5),(4,4,6),(PAUSE,5s),(4,4,7)' speed='5' />
</trigger>

And to build sets!

<set number='####'>

</set>

Then you just set the origin for the entire set via location or set one
brick in the set as the origin
for the set.

To put two sets in the same area you could just do this.

<set number='####' location='x,y,z' id='55' />
<set number='####' location='x,y,z' id='56' />

Set id's take priority over piece id's of course.
-----

Or to stick more to the flatland standard
<level number='0'>
_______BB______
_______BB______
_______BB______
_______BB______
</level>
Would automatically create http://www.peeron.com/inv/parts/3001
<level number='1'>
_______BB______
_______BB______
_______PP______
_______PP______
</level>
Now you added a 2x2 plate and 2x2 brick on top of the 2x4 brick.
<level number='1&1/3'>
_______________
_______________
_______PPTT___
_______PP______
</level>
Now I've added another 2x2 plate on top of the existing 2x2 plate. And just
for fun there is a 1x2
tile in mid-air but next to the plate.

It would be easy to build editors for this type of building. And you could
edit both in text format
and graphiclly. This way you can move completely around your model. You
could even create
brick worlds to move and interact with using a javascript sub language or
xml based language. It
would also be easier for children to use and create models.

You could also create your own text based symbols for different type of
tiles, bricks, etc.

Oh, just to let you know Rover automatically D/L's block-sets if you don't
have them. But we
could have a basic, technic, mindstorms, space, belville, monorail, etc
block-sets to do the same
thing.



Message is in Reply To:
  Re: Lego XML?
 
(...) This must one of the slowest threads ever - 3 posts in over 4 years :) Exciting stuff. I also worked on this myself about a year ago. I had big plans and then got tied up with work and school. I created a sourceforge project, but only produced (...) (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
    

Custom Search

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