Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Graphics > OpenGL 3D API > Re: Another Tra...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 5 Topic 4891 of 5041
Post > Topic >>

Re: Another Transparency Problem using png

by grayaii <grayaii@[EMAIL PROTECTED] > Aug 27, 2008 at 06:03 PM

mi76, thank you so much.  You were right on target.  I downloaded the
source for csgl from http://csgl.sourceforge.net/
and sure enough when
I stepped into the OpenGLTexture2D class I saw this:

glTexImage2D(GL_TEXTURE_2D, 0, (int)GL_RGB8, image.Width,
image.Height,
			                IsBorder ? 1 : 0, GL_BGRA_EXT, GL_UNSIGNED_BYTE,
			                tex.Scan0);

(Notice the nasty GL_RGB8!!!)
I simply changed it to GL_RGBA8, per your suggestion, re-compiled, and
it worked like a charm!
I can now get on with my life and tackle whatever problem arises next!
 




 5 Posts in Topic:
Another Transparency Problem using png
grayaii <grayaii@[EMAI  2008-08-27 08:20:44 
Re: Another Transparency Problem using png
"jbwest" <jb  2008-08-27 10:40:55 
Re: Another Transparency Problem using png
grayaii <grayaii@[EMAI  2008-08-27 11:31:01 
Re: Another Transparency Problem using png
mi76 <mi333@[EMAIL PRO  2008-08-28 01:01:30 
Re: Another Transparency Problem using png
grayaii <grayaii@[EMAI  2008-08-27 18:03:29 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Dec 2 0:06:40 CST 2008.