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 / 11984
11983  |  11985
Subject: 
Re: LDGlite and LPub (and maybe ldview?
Newsgroups: 
lugnet.cad, lugnet.cad.dev
Followup-To: 
lugnet.cad.dev
Date: 
Thu, 14 Oct 2004 21:23:14 GMT
Viewed: 
1468 times
  
Note that I'm sending followups to lugnet.cad.dev.

In lugnet.cad, Don Heyse wrote:
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.

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 SRC="transparent.png">
</BODY>
</HTML>

You should be able to copy the above and paste it into an empty html file.  Make
sure transparent.png is in the same directory.

As for solving the problem, I'm not sure what would be best.  You could always
go back and draw the lines a second time with blend func set to GL_ONE, GL_ONE,
depth test disabled and glColorMask set to GL_FALSE, GL_FALSE, GL_FALSE,
GL_TRUE.  This should get rid of the unwanted transparency in the middle of the
image, but it would also remove the antialiasing of the alpha channel around the
edges.

--Travis



Message has 1 Reply:
  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)

Message is in Reply To:
  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)

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