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 / 14865
14864  |  14866
Subject: 
Re: PreL3P 1.0
Newsgroups: 
lugnet.cad
Date: 
Tue, 9 Oct 2007 20:43:08 GMT
Viewed: 
3041 times
  
In lugnet.cad, Philippe Hurbain wrote:

For example, stone colors are not well supported by several programs other than
L3P. If I want to build with these colors I generally use old greys, but it
would be nice that the final rendering be done with real tone hues. That would
need to remap colors 7 and 8 to non-standard colors.

With a customized ldconfig file, you can use PreL3P to convert color codes
directly to the hexadecimal equivalents of other other colors. For example, here
are the default gray definitions:

0 !COLOUR Gray              CODE   7  VALUE #C1C2C1  EDGE 0
0 !COLOUR Dark_Gray         CODE   8  VALUE #635F52  EDGE 0
0 !COLOUR Stone_Gray        CODE  71  VALUE #A3A2A4  EDGE 0
0 !COLOUR Dark_Stone_Gray   CODE  72  VALUE #635F61  EDGE 0

If you want to render the original grays as the new grays, you can combine them
like this:

0 !COLOUR Gray              CODE   7  VALUE #A3A2A4  EDGE 0
0 !COLOUR Dark_Gray         CODE   8  VALUE #635F61  EDGE 0

With PreL3P 1.1, you can use multiple ldconfigs. So if you save the two lines
above as graymap.ldr, you can override the default 7 and 8 codes but use all the
others normally like this:

prel3p -ldconfig $LDRAWDIR/ldconfig.ldr -ldconfig graymap.ldr

I agree that a tool to map LDraw color codes to other regular color codes would
be useful, but I haven't decided whether that would be outside the scope of
PreL3P. (Can you do it with LDDP or MLCAD?) It could be controlled with
unofficial ldconfig meta commands and/or command line options:

0 !PREL3P MAP 7 71
-map 7,71

What do you think?

Jim



Message has 2 Replies:
  Re: PreL3P 1.0
 
(...) You're fast! :) If my memory serves my well, I think my ldfilter utility did that - even though it wasn't its main purpose. Check out the "Color Filter" frame. (URL) (17 years ago, 9-Oct-07, to lugnet.cad)
  Re: PreL3P 1.0
 
(...) That was exactly my point - perfect! (...) Probably outside prel3p scope indeed. Both LDDP and MLCad can change colors, but not if they are inside subfiles. To me the modified ldconfig is a good solution. Philo (17 years ago, 10-Oct-07, to lugnet.cad)

Message is in Reply To:
  Re: PreL3P 1.0
 
It would be interesting to be able to have a secondary remap file other than LDraw.ldr. For example, stone colors are not well supported by several programs other than L3P. If I want to build with these colors I generally use old greys, but it would (...) (17 years ago, 9-Oct-07, to lugnet.cad)

22 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