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 / 11979
  Re: LDGlite and LPub (and maybe ldview?
 
(...) 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 (...) (20 years ago, 14-Oct-04, to lugnet.cad)
 
  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)
 
  Re: LDGlite and LPub (and maybe ldview?
 
(...) 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 (...) (20 years ago, 14-Oct-04, to lugnet.cad)
 
  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)
 
  Re: LDGlite and LPub (and maybe ldview?
 
(...) Eeek. I was just wondering about that. Do you have a link, or a quick html snippit. Is there a different opengl alpha blend fn that I should perhaps be using? I guess I'd better read up after all, opengl, and png. (...) Yeah. (20 years ago, 14-Oct-04, to lugnet.cad)
 
  Re: LDGlite and LPub (and maybe ldview?
 
Note that I'm sending followups to lugnet.cad.dev. (...) All I did was create an HTML document real quick and looked at it in Firefox. The following is the content of that document: <HTML> <HEAD> </HEAD> <BODY BGCOLOR="#FF0000"> <IMG (...) (20 years ago, 14-Oct-04, to lugnet.cad, lugnet.cad.dev)
 
  Re: LDGlite and LPub (and maybe ldview?
 
(...) Thanks, that did it. Yuck! (...) Let's see if I understand what's going on here. When I antialias the edge lines, the RGB colors buffer gets blended, and so does the alpha channel. If alpha was all zeros, now instead of all ones, it gets (...) (20 years ago, 15-Oct-04, to lugnet.cad.dev)
 
  Re: LDGlite and LPub (and maybe ldview?
 
(...) Ok i did a quick once over of glBlendFunc manpage and it looks like switching line antialiasing from: glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); to glBlendFunc(GL_SRC_A..._SATURATE, GL_ONE_MINUS_SRC_ALPHA); eliminates the problem (...) (20 years ago, 15-Oct-04, to lugnet.cad.dev)
 
  Re: LDGlite and LPub (and maybe ldview?
 
(...) Ahh, nevermind. That didn't really work either. Applying the opaque/transparent only filter right before dumping the png is simple, and looks good enough for me. I'm going with that and forget about the icky sharp outer edges for now. They (...) (20 years ago, 15-Oct-04, to lugnet.cad.dev)

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR