| | Re: LDGlite and LPub (and maybe ldview? Steve Bliss
|
| | (...) Doh! Thanks for mentioning this. We've been wanting to make transparent LDraw part images (for use by Peeron, et al). And it's been there, all along. Double-Doh! It's a nice, simple command-line option, too. :) The parts images are being (...) (20 years ago, 14-Oct-04, to lugnet.cad)
|
| | |
| | | | Re: LDGlite and LPub (and maybe ldview? Don Heyse
|
| | | | (...) Oh oh, does it still work? I remember I compiled it out at one point to save memory when I discovered IE didn't support transparent pngs. This is way back when I built the DOS version of ldglite, so maybe I put it back in since then. Don (20 years ago, 14-Oct-04, to lugnet.cad)
|
| | | | |
| | | | | | Re: LDGlite and LPub (and maybe ldview? Steve Bliss
|
| | | | | (...) Oh, yeah, it works. :) Of course, I'm just doing parts, not models. So maybe we'd run into more trouble if we were doing more complex rendering... Steve (20 years ago, 15-Oct-04, to lugnet.cad)
|
| | | | | |
| | | | Re: LDGlite and LPub (and maybe ldview? Travis Cobbs
|
| | | | (...) 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? Steve Bliss
|
| | | | | (...) 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? Don Heyse
|
| | | | | (...) 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? Travis Cobbs
|
| | | | | (...) 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? Don Heyse
|
| | | | | (...) 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? Travis Cobbs
|
| | | | | 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? Don Heyse
|
| | | | | (...) 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? Don Heyse
|
| | | | | (...) 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? Don Heyse
|
| | | | | (...) 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)
|
| | | | | |
| | | | Re: LDGlite and LPub (and maybe ldview? Ross Crawford
|
| | | | (...) I'd think twice about making all part images transparent. Especially patterned parts don't really work, look at the images for these pics (URL) (20 years ago, 15-Oct-04, to lugnet.cad)
|
| | | | |
| | | | | | Re: LDGlite and LPub (and maybe ldview? Steve Bliss
|
| | | | | (...) Peeron has (by preference) use the Clear as the 'default' color for part images for awhile now. The default color is shown on the part-information pages, and anywhere that the part-color doesn't have an LDraw-equivalent. Before switching to (...) (20 years ago, 15-Oct-04, to lugnet.cad)
|
| | | | | |
| | | | | | | Re: LDGlite and LPub (and maybe ldview? Orion Pobursky
|
| | | | | | (...) I'm curious why the switch was made from Grey to Clear. As noted by Ross, some of the parts look funky in a transparent color as opposed to a solid color. -Orion (20 years ago, 15-Oct-04, to lugnet.cad)
|
| | | | | | |
| | | | | | | | Re: LDGlite and LPub (and maybe ldview? Steve Bliss
|
| | | | | | (...) At least part of the reason is that Gray is a fairly common color; Clear is more rare (for most parts). When parts where shown in gray, it was sometimes confusing whether it was gray-the-actual-color or gray-the-default-color. Using a (...) (20 years ago, 15-Oct-04, to lugnet.cad)
|
| | | | | | |
| | | | | | | | Re: LDGlite and LPub (and maybe ldview? Andrew Westrate
|
| | | | | | | (...) LDView has a nice feature where you can specify the default color for parts. I use rgb(128,128,80); it's close to grey, but tinted enough to easily differentiate grey parts from color 16. Andy (20 years ago, 15-Oct-04, to lugnet.cad, FTX)
|
| | | | | | | |
| | | | | | | | Re: LDGlite and LPub (and maybe ldview? David Laswell
|
| | | | | | (...) How about a transparent brown? TLC already has an official trans-brown (smoke/trans-black), so there's not much risk of them ever using that. (20 years ago, 15-Oct-04, to lugnet.cad)
|
| | | | | | |
| | | | | | | | Re: LDGlite and LPub (and maybe ldview? Orion Pobursky
|
| | | | | | (...) Not that my opinion goes for everyone but I think a solid color looks better. A transparent render show all the back edge making the image appear jumbled. To be honest I don't see how using grey, yellow, red or any other solid color is (...) (20 years ago, 16-Oct-04, to lugnet.cad)
|
| | | | | | |
| | | | | | | | Re: LDGlite and LPub (and maybe ldview? Jan Folkersma
|
| | | | | | | (...) Let's have a vote! I'm with Orion btw :) (20 years ago, 16-Oct-04, to lugnet.cad)
|
| | | | | | | |
| | | | | | | | | Re: LDGlite and LPub (and maybe ldview? Orion Pobursky
|
| | | | | | | | | (...) It's not really a votable issue since it's ultimately Peeron admin's decision. I don't want to twist the Boger's arms on something trival like this. -Orion (20 years ago, 16-Oct-04, to lugnet.cad)
|
| | | | | | | | | |
| | | | | | | | | Re: LDGlite and LPub (and maybe ldview? Tim David
|
| | | | | | | | (...) I have to say I think a trans colour is better as it allows you to see the interior detail of the part, some of the default orientations for parts don't allow you differentiate between similar parts when in a solid colour. Tim (20 years ago, 18-Oct-04, to lugnet.cad)
|
| | | | | | | | |
| | | | | | | | Re: LDGlite and LPub (and maybe ldview? Steve Bliss
|
| | | | | | | (...) The default color is also used in inventory lists, when there's no matching LDraw color for the part-color. For example, this set has a lot on non-LDraw'n colors: (URL) (20 years ago, 18-Oct-04, to lugnet.cad)
|
| | | | | | | |
| | | | | | | | Re: LDGlite and LPub (and maybe ldview? Dan Boger
|
| | | | | | (...) I always thought solid colors were confusing, especially where the pattern on the part happend to be of the same color. However, I just added support for a new user preference, allowing you to choose what color to use: (URL) that helps! Dan (20 years ago, 18-Oct-04, to lugnet.cad)
|
| | | | | | |
| | | | | | | | Re: LDGlite and LPub (and maybe ldview? Orion Pobursky
|
| | | | | | (...) That's cool. I didn't mean to actually cause you any work but thanks for the effort. -Orion (20 years ago, 18-Oct-04, to lugnet.cad)
|
| | | | | | |
| | | | | | Re: LDGlite and LPub (and maybe ldview? Chris Dee
|
| | | | (...) Steve was comparing "PNG" with "Transparent PNG" which affects the background of the image. The LDraw images used by peeron are generated in multiple colours, including trans-white (LDraw colour 47). I think(?) the peeron admins control which (...) (20 years ago, 15-Oct-04, to lugnet.cad)
|
| | | | |
| | | | | | Re: LDGlite and LPub (and maybe ldview? Steve Bliss
|
| | | | (...) One extra note to this: for parts which Peeron has inventories of only one color, that color is used as the default color automatically. 3001p01 is one example of this. I suppose we could enhance the system to track parts with CMDLINE settings (...) (20 years ago, 15-Oct-04, to lugnet.cad)
|
| | | | |