[Gtkradiant] RE: gtkradiant transparent textures, uh, differe nt

Monroe, James gtkradiant@zerowing.idsoftware.com
Mon, 11 Nov 2002 13:21:51 -0600


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C289B7.9667F110
Content-Type: text/plain

Is this related to improperly expanding the jpeg to 32 bit, and possibly
corrupting the alpha channel?

-James

-----Original Message-----
From: Arnout 'RR2DO2' van Meer [mailto:rr2do2@splashdamage.com] 
Sent: Friday, November 08, 2002 1:39 PM
To: gtkradiant@zerowing.idsoftware.com
Subject: RE: [Gtkradiant] RE: gtkradiant transparent textures, uh, different

It's related to jpegs. When I grab your jpg, it displays striped as
well. When I save it as tga though it works fine.
 
- Arnout

	-----Original Message-----
	From: Monroe, James [mailto:jmonroe@ravensoft.com] 
	Sent: 08 November 2002 17:30
	To: 'Timothee Besset'; Monroe, James
	Cc: gtkradiant@zerowing.idsoftware.com
	Subject: [Gtkradiant] RE: gtkradiant transparent textures, uh,
different
	
	

	Yes, pretty much all of our system textures are failing (they
are mostly JPEGs).  If the trans value is set below 0.5 then it just
turns grey. At 0.5 it renders, but not much more transparent than our
radiant and it has stripes.  So it's either loading the image wrong,
which I doubt since it is correct in the texture window, or (more
likely) rendering it with odd blending.  The images themselves do not
have alpha, we're just using the trans X setting on the shaders.

	The msg below refers to textures\system\trigger.jpg 



	-James 

	-----Original Message----- 
	From: Timothee Besset [ mailto:ttimo@idsoftware.com] 
	Sent: Friday, November 08, 2002 3:50 AM 
	To: Monroe, James 
	Cc: gtkradiant@zerowing.idsoftware.com 
	Subject: Re: gtkradiant transparent textures, uh, different 

	The texture file loading and the camera drawing code are pretty
different 
	in GtkR. But transparency should be working fine though. I think
it can be 
	done with both a shader parameter or alpha channel in the
texture (.tga). 
	Not sure this is working with png (you're using png, right?) 

	Can you give us some of the textures that are problematic? I
suppose those 
	are editor utility textures? Such as clip etc.? 

	TTimo 

	On Thu, 7 Nov 2002 19:40:34 -0600 
	"Monroe, James" <jmonroe@ravensoft.com> wrote: 

	> Any idea why gtk doesn't draw transparent textures the same as
our radiant? 
	> I turned off texture compression, but it didn't help.  Gtk is
drawing the 
	> 0.5 trans green as stripes for some reason...  I can submit a
bug if it is 
	> one, I just wanted to make sure I'm not missing something
obvious first. J 
	> 
	>  
	> 
	> 
	> 
	>  
	> 
	>  
	> 
	> ----------------- 
	> 
	> Disclaimer:  These are my thoughts alone.  Any attempt to
extrapolate them 
	> to any other entity immediately renders them void and will
then probably 
	> explode. 
	> 
	> James Monroe 
	> 
	> Raven Software 
	> 
	> Lead Programmer; Star Wars: Jedi Outcast (Jedi Knight II) 
	> 
	> www.ravensoft.com 
	> 
	> ----------------- 
	> 
	>  
	> 
	> 

	


_______________________________________________
Gtkradiant mailing list
Gtkradiant@zerowing.idsoftware.com
http://zerowing.idsoftware.com/mailman/listinfo/gtkradiant

------_=_NextPart_001_01C289B7.9667F110
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>RE: [Gtkradiant] RE: gtkradiant transparent textures, uh, =
different</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>Is this related to improperly expanding the jpeg to =
32 bit, and possibly corrupting the alpha channel?</FONT>
</P>

<P><FONT SIZE=3D2>-James</FONT>
</P>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Arnout 'RR2DO2' van Meer [<A =
HREF=3D"mailto:rr2do2@splashdamage.com">mailto:rr2do2@splashdamage.com</=
A>] </FONT>
<BR><FONT SIZE=3D2>Sent: Friday, November 08, 2002 1:39 PM</FONT>
<BR><FONT SIZE=3D2>To: gtkradiant@zerowing.idsoftware.com</FONT>
<BR><FONT SIZE=3D2>Subject: RE: [Gtkradiant] RE: gtkradiant transparent =
textures, uh, different</FONT>
</P>

<P><FONT SIZE=3D2>It's related to jpegs. When I grab your jpg, it =
displays striped as</FONT>
<BR><FONT SIZE=3D2>well. When I save it as tga though it works =
fine.</FONT>
<BR><FONT SIZE=3D2>&nbsp;</FONT>
<BR><FONT SIZE=3D2>- Arnout</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>-----Original Message-----</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>From: =
Monroe, James [<A =
HREF=3D"mailto:jmonroe@ravensoft.com">mailto:jmonroe@ravensoft.com</A>] =
</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>Sent: 08 =
November 2002 17:30</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>To: =
'Timothee Besset'; Monroe, James</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>Cc: =
gtkradiant@zerowing.idsoftware.com</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>Subject: =
[Gtkradiant] RE: gtkradiant transparent textures, uh,</FONT>
<BR><FONT SIZE=3D2>different</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>Yes, =
pretty much all of our system textures are failing (they</FONT>
<BR><FONT SIZE=3D2>are mostly JPEGs).&nbsp; If the trans value is set =
below 0.5 then it just</FONT>
<BR><FONT SIZE=3D2>turns grey. At 0.5 it renders, but not much more =
transparent than our</FONT>
<BR><FONT SIZE=3D2>radiant and it has stripes.&nbsp; So it's either =
loading the image wrong,</FONT>
<BR><FONT SIZE=3D2>which I doubt since it is correct in the texture =
window, or (more</FONT>
<BR><FONT SIZE=3D2>likely) rendering it with odd blending.&nbsp; The =
images themselves do not</FONT>
<BR><FONT SIZE=3D2>have alpha, we're just using the trans X setting on =
the shaders.</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>The msg =
below refers to textures\system\trigger.jpg </FONT>
</P>
<BR>
<BR>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>-James =
</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>-----Original Message----- </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>From: =
Timothee Besset [ <A =
HREF=3D"mailto:ttimo@idsoftware.com">mailto:ttimo@idsoftware.com</A>] =
</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>Sent: =
Friday, November 08, 2002 3:50 AM </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>To: =
Monroe, James </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>Cc: =
gtkradiant@zerowing.idsoftware.com </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>Subject: =
Re: gtkradiant transparent textures, uh, different </FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>The =
texture file loading and the camera drawing code are pretty</FONT>
<BR><FONT SIZE=3D2>different </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>in GtkR. =
But transparency should be working fine though. I think</FONT>
<BR><FONT SIZE=3D2>it can be </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>done with =
both a shader parameter or alpha channel in the</FONT>
<BR><FONT SIZE=3D2>texture (.tga). </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>Not sure =
this is working with png (you're using png, right?) </FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>Can you =
give us some of the textures that are problematic? I</FONT>
<BR><FONT SIZE=3D2>suppose those </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>are =
editor utility textures? Such as clip etc.? </FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>TTimo =
</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>On Thu, 7 =
Nov 2002 19:40:34 -0600 </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>&quot;Monroe, James&quot; &lt;jmonroe@ravensoft.com&gt; wrote: =
</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>&gt; Any =
idea why gtk doesn't draw transparent textures the same as</FONT>
<BR><FONT SIZE=3D2>our radiant? </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>&gt; I =
turned off texture compression, but it didn't help.&nbsp; Gtk is</FONT>
<BR><FONT SIZE=3D2>drawing the </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>&gt; 0.5 =
trans green as stripes for some reason...&nbsp; I can submit a</FONT>
<BR><FONT SIZE=3D2>bug if it is </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>&gt; one, =
I just wanted to make sure I'm not missing something</FONT>
<BR><FONT SIZE=3D2>obvious first. J </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>&gt; =
</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>&gt;&nbsp; </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>&gt; =
</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>&gt; =
</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>&gt; =
</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>&gt;&nbsp; </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>&gt; =
</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>&gt;&nbsp; </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>&gt; =
</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>&gt; =
----------------- </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>&gt; =
</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>&gt; =
Disclaimer:&nbsp; These are my thoughts alone.&nbsp; Any attempt =
to</FONT>
<BR><FONT SIZE=3D2>extrapolate them </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>&gt; to =
any other entity immediately renders them void and will</FONT>
<BR><FONT SIZE=3D2>then probably </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>&gt; =
explode. </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>&gt; =
</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>&gt; =
James Monroe </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>&gt; =
</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>&gt; =
Raven Software </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>&gt; =
</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>&gt; Lead =
Programmer; Star Wars: Jedi Outcast (Jedi Knight II) </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>&gt; =
</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>&gt; =
www.ravensoft.com </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>&gt; =
</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>&gt; =
----------------- </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>&gt; =
</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>&gt;&nbsp; </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>&gt; =
</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>&gt; =
</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
</P>
<BR>

<P><FONT =
SIZE=3D2>_______________________________________________</FONT>
<BR><FONT SIZE=3D2>Gtkradiant mailing list</FONT>
<BR><FONT SIZE=3D2>Gtkradiant@zerowing.idsoftware.com</FONT>
<BR><FONT SIZE=3D2><A =
HREF=3D"http://zerowing.idsoftware.com/mailman/listinfo/gtkradiant" =
TARGET=3D"_blank">http://zerowing.idsoftware.com/mailman/listinfo/gtkrad=
iant</A></FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C289B7.9667F110--