[font="Arial,"][size="4"]So the first step would be figuring out the alpha color so I can correctly render it. This is a preview of the bitmap (in .png format) and here is a link to the actual file in case any of you knowledgeable folk know how to figure out what the alpha color should be without simply looking at it and sampling it. Here is the link: [/font]http://www.mediafire...3q45ix1&thumb=4
[font="Arial,"][size="4"][/font]
[font="Arial,"][size="4"]As you can see, it is a railing texture where RGB(160,158,148) is the color that should be invisible. I can figure this out just by looking at it. The problem is, how do I find this value in the file?[/font]
[font="Arial,"][size="4"]So that is step one. The second is an OpenGL issue where I am rendering a bunch of geometry with vertex arrays. How do I accommodate for the fact a color needs to be removed from the texture when rendered? Do I need to render this in a specific order? Also, I should mention I am using SDL if that helps make any of this a bit easier. Someone suggested [/font]http://www.opengl.org/wiki/Transparency_Sorting#Alpha_test but I want to make sure I am using the best method.
[font="Arial,"][size="4"]Thanks![/font]