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 / 11981
11980  |  11982
Subject: 
Re: LDGlite and LPub (and maybe ldview?
Newsgroups: 
lugnet.cad
Date: 
Thu, 14 Oct 2004 19:58:13 GMT
Viewed: 
1215 times
  
In lugnet.cad, Steve Bliss wrote:
In lugnet.cad, Travis Cobbs wrote:
In lugnet.cad, Steve Bliss wrote:
The parts images are being regenerated as I write this.

One thing to remember is that the background color almost certainly
still matters for transparent parts, because they'll be blended
with it, even if they are partially transparent in the PNG file.
So be sure to choose a background color that is similar to the one
you expect the parts to be displayed on for transparent parts.

Heh, maybe in ldview, but not in ldglite.  You give me too much credit.
I don't do real transparency for transparent parts.  It's all dithered.
And the only values I output to the alpha channel are fully transparent
(with the png background color set to white) or completely opaque.  Your
caveat may come into play when an oversized image is sampled down
though because that might mix the dithering in with the background.

I'd better read up on png transparency though, because I don't know
what's the point of setting the png background color to white.

Oh, and it probably also effects the antialiasing on all parts.

I believe you're correct on this one.  It looks OK on this antialiased
png, generated with the default white background.

  http://brickshelf.com/cgi-bin/gallery.cgi?i=81648

But I don't know what it'll look like when done at 3x and then sampled
down to 1x.  I think that's the method used for the peeron images.
Not sure about the ldraw part tracker...

That's an interesting point.  We generate all images at a 3x zoom
(3x of the final target render scale) (with fat lines), then use
ImageMagick to reduce the image to 'normal'.  So the transparency of
transparent parts will depend on how ImageMagick processes the alpha
channel.

<Steve goes to look>

I took a very quick glance, but it looks like the background color
(on a Peeron set listing) is coming through the trans parts. :)

Good.  Maybe I don't actually need to read up and understand it.  :^)

Don



Message has 1 Reply:
  Re: LDGlite and LPub (and maybe ldview?
 
(...) That would change things. (...) That color is used when you display it in a program that doesn't have any better color to use. In other words, if the image isn't put over some kind of background, the color in the image is used. (...) that the (...) (20 years ago, 14-Oct-04, to lugnet.cad)

Message is in Reply To:
  Re: LDGlite and LPub (and maybe ldview?
 
(...) That's an interesting point. We generate all images at a 3x zoom (3x of the final target render scale) (with fat lines), then use ImageMagick to reduce the image to 'normal'. So the transparency of transparent parts will depend on how (...) (20 years ago, 14-Oct-04, to lugnet.cad)

52 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