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 / 10482
10481  |  10483
Subject: 
Re: What does a subpart with color=24 mean?
Newsgroups: 
lugnet.cad.dev
Date: 
Tue, 5 Sep 2006 22:17:02 GMT
Viewed: 
2818 times
  
Steve Bliss wrote:
In lugnet.cad.dev, Mark Tarrabain wrote:
Okay... that makes sense.

But what if the contrast color for the current file's main color is just
an RGB value rather than a color index?   What should the subfile's
contrast color be set to in that case?

In the case of some kind of direct color, I guess the rendering program is free
to do whatever it wants.  The simplest action would be to default to black
(either LDraw 0, or RGB #000000).

I'd be interested to hear what actual rendering programs do...

Well, one that I have gives a warning message that says it can't handle
color 24 and substitutes 16 for such lines.  But I wasn't sure if that
was correct behaviour.  Another one that I've played with quietly
accepts such lines, but appears to always use black as the edge color
within a subfile if 24 is given as the main color, regardless of what
the main color was in the calling file.   So I don't know what to think.

Thank you for your help, by the way.

No problem.

BTW, it looks like most instances of "1 24 ..." in the parts library are
mistakes -- all primitives are coded to be used with color 16.  Sometimes,
people assume that edge-primitives need to be given the edge-color.

This possibility had occurred to me, but I didn't want to make that
assumption.

But if these occurrences are just a mistake, would it be a bad thing to
just treat lines "1 24 ..." as if it were "1 16 ..." (as the program I
mentioned above does)?

>> Mark



Message is in Reply To:
  Re: What does a subpart with color=24 mean?
 
(...) In the case of some kind of direct color, I guess the rendering program is free to do whatever it wants. The simplest action would be to default to black (either LDraw 0, or RGB #000000). I'd be interested to hear what actual rendering (...) (18 years ago, 5-Sep-06, to lugnet.cad.dev)

12 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