To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cadOpen lugnet.cad in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / 11511
11510  |  11512
Special: 
[DAT] (requires LDraw-compatible viewer)
Subject: 
Re: ldraw newbie
Newsgroups: 
lugnet.cad
Date: 
Sat, 5 Jun 2004 04:28:45 GMT
Viewed: 
1240 times
  
In lugnet.cad, Orion Pobursky wrote:
As far a portabiliy is concerned, I'm not sure if I can.  The way windows are
created across platform is fundimentally different.  I would have to switch to a
META command based system which could be imposing to the LDraw newbie.  Any
ideas on this?

Do you mean LDraw meta-commands?  Or some command system called META?

Anyway, you could look at LDAO's set of meta-commands for modelling minifigs.  At
least as a starting point.  It's pretty straight-forward.  LDAO's minifig modeller
generates files like this:

0 Minifig shortcut
0 Name: Untitled
0 Author: Generated by LDAO Minifig Editor
0 Unofficial Minifig
0 - The MINIFIG meta-commands are used to reload settings into LDAO's Minifig
0 - Modeler.  Please do not modify.
0 MINIFIG HEAD      0 0 3626BP63.DAT
0 MINIFIG TORSO     0 0 973.DAT
0 MINIFIG HIPS      0 0 970.DAT
0 MINIFIG LEFTARM   0 0 976.DAT
0 MINIFIG LEFTHAND  14 0 977.DAT
0 MINIFIG LEFTLEG   0 0 972.DAT
0 MINIFIG RIGHTARM  0 0 975.DAT
0 MINIFIG RIGHTHAND 14 0 977.DAT
0 MINIFIG RIGHTLEG  0 0 971.DAT
0 Hips
1 0 0 -12 0 1 0 0 0 1 0 0 0 1 970.DAT
0 Torso
1 0 0 -44 0 1 0 0 0 1 0 0 0 1 973.DAT
0 Head
1 0 0 -68 0 1 0 0 0 1 0 0 0 1 3626BP63.DAT
0 Left Arm
1 0 -.004 -36.008 0 1 0 0 0 1 0 0 0 1 976.DAT
0 Left Hand
1 14 23.007 -15.998 -15.5 0 0 1 -.707 .707 0 .707 .707 0 977.DAT
0 Right Arm
1 0 .004 -36.008 0 1 0 0 0 1 0 0 0 1 975.DAT
0 Right Hand
1 14 -23.007 -15.998 -15.5 0 0 1 -.707 .707 0 .707 .707 0 977.DAT
0 Left Leg
1 0 0 0 0 1 0 0 0 1 0 0 0 1 972.DAT
0 Right Leg
1 0 0 0 0 1 0 0 0 1 0 0 0 1 971.DAT
0

The way it works is the 0 MINIFIG statements are simply definitions - basically, they
duplicate the information in the LDraw statements which follow.  When an existing
minifig file is read, the LDAO minifig modeller only looks at the MINIFIG lines - the
rest of the file is ignored.

The 0 MINIFIG command has 4 parameters: type of part (HEAD, TORSO, etc), color,
rotation, and part file.

It needs more part-types (headwear, neckwear, etc) defined, and it would probably be
useful to have a MINIFIG END statement, to put *after* the generated LDraw code.
That way, minifigs could be put in model files, without having to be separate
(sub)files.

Steve



Message is in Reply To:
  Re: ldraw newbie
 
(...) The vast majority of my work is in Delphi (with a small smattering of C and VB for good measure) As far a portabiliy is concerned, I'm not sure if I can. The way windows are created across platform is fundimentally different. I would have to (...) (20 years ago, 4-Jun-04, 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