To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.mlcadOpen lugnet.cad.mlcad in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / MLCad / 385
384  |  386
Subject: 
Re: Doing Patterns and Bitmaps in MLCad
Newsgroups: 
lugnet.cad.mlcad, lugnet.cad.dev
Date: 
Tue, 5 Sep 2000 20:19:12 GMT
Viewed: 
2548 times
  
In lugnet.cad.mlcad, Farlie A wrote:

OK,Revised Suggestion. (Still needs Further Disscussion)

[snip]

Urg.  Why so wordy?  Just do:

0 TEXTURE <position vector> <orientation matrix> <filename.type> [START
<standard ldraw commands go here>
0 TEXTURE END]

The <position vector> and <orientation matrix> parameters are identical to
the parameters on the standard subfile command (linetype 1).

The entire START ... 0 TEXTURE END segment is optional.  If someone is
making a custom file, they don't have to include any more code than is
necessary.

In a different post, Travis wrote:

This actually wouldn't be necessary.  Just put the DAT file which represents
the texture in between the TEXTURE START and TEXTURE END comments, and it
accomplishes the same thing without any compatibility issues.

That would work, but would require the use of a subfile for the pattern.
Which isn't the end of the world.

0 TEXTURE <filename.type> [START]
1 16 <position vector> <orientation matrix> <filename.dat>
0 TEXTURE END

An advantage of this approach is that existing tools (such as LDAO) can
still be used to edit (rotate, scale, inline) this code.

Is there any reason that both syntaxes couldn't be supported?

BTW, none of this stuff will ever make it into the LDraw/LCAD parts
library, in the library's current form.  At some point in the future, I
hope we advance enough to require a new library, with parts that are no
longer compatible with the old LDraw/DAT standard.  But we aren't there
yet.

The main reason that this won't make it to the library is *not* the
meta-commands.  It is because we'd have to carry the extra image files in
the library.  The current (unwritten) spec does not allow non-DAT files to
exist in either the ldraw\p\ or ldraw\parts\ subdirectory trees.

Steve



Message has 2 Replies:
  Re: Doing Patterns and Bitmaps in MLCad
 
"Steve Bliss" <steve.bliss@home.com> wrote in message news:oekarsonpfetb7s...4ax.com... (...) I tend to agree about putting it all in 2 separate commands. However, I don't think a position vector and orientation matrix are appropriate. A texture is (...) (24 years ago, 6-Sep-00, to lugnet.cad.mlcad, lugnet.cad.dev)
  Texture mapping spec? (was Re: Doing Patterns and Bitmaps in MLCad)
 
(...) Sorry, Computing course at college showing through. (We were told try and specify EVERYTHING. Unfotunatly there is no concrete defintion of what EVREYTHING is.) (...) Agreed, but with the following questions? (Assuming simple rectangular (...) (24 years ago, 6-Sep-00, to lugnet.cad.mlcad, lugnet.cad.dev)

Message is in Reply To:
  Re: Doing Patterns and Bitmaps in MLCad
 
(...) (Hence the suggestionf making it a line type.) OK,Revised Suggestion. (Still needs Further Disscussion) 0 TEXTURE <fname> fname is name of the PNG/JPEG/BMP etc to be used instead of the *.DAT version. The extension of the file shall determine (...) (24 years ago, 4-Sep-00, to lugnet.cad.mlcad)

24 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