texture with alpha layer in GL scene

Mar 2, 2009 at 4:23pm

texture with alpha layer in GL scene

i’m struggling to get the alpha layer of png files i’m using as textures to work as expected… it’s probably something quite simple that i keep on missing, but at the moment it seems like it’s not drawing correctly.

there are 2 possible causes i can think of at the moment:

1. wrong blend mode applied to objects / texture

2. something to do with draw order, which i’m not sure how to tackle when using jit.gl.multiple… (draw raw?)

any insights would be greatly appreciated, i have attached the patch in zip format, with demo png file for texture.


Mar 2, 2009 at 9:29pm

i think what you want is blend_mode 6 7 and depth_enable 0

Mar 3, 2009 at 12:22am

thanks! i was going round in circles… < pun intended // sadly Wink >


You must be logged in to reply to this topic.