alpha blending manually

View previous topic View next topic Go down

alpha blending manually

Post  oioioi on Thu Dec 11, 2008 9:02 am

How can I use alpha blending on my tga textures? Do I use sio2ImageSetAlpha()? I have tried this but can't get it to work

Thanks!

oioioi

Posts : 136
Join date : 2008-12-02
Location : Norway

View user profile

Back to top Go down

Re: alpha blending manually

Post  meteors on Thu Dec 11, 2008 4:12 pm

Did you call this for your material:

_SIO2material->blend = SIO2_MATERIAL_ALPHA;



-j
avatar
meteors

Posts : 241
Join date : 2008-11-08
Location : Sunny Florida

View user profile

Back to top Go down

Re: alpha blending manually

Post  oioioi on Fri Dec 12, 2008 8:23 am

How can I apply material to a texture?

oioioi

Posts : 136
Join date : 2008-12-02
Location : Norway

View user profile

Back to top Go down

Re: alpha blending manually

Post  matt on Fri Dec 12, 2008 1:56 pm

A material "has a" texture. So basically if you're doing it programmatically, you create a material, load an image or assign an image from the resource to the materials image attribute (_SIO2image[0] or something like that), and that's basically it.

Best,
Matt

matt

Posts : 155
Join date : 2008-09-30

View user profile http://elfrun.net

Back to top Go down

Re: alpha blending manually

Post  oioioi on Sat Dec 13, 2008 4:21 am

Thanks! I will try that

oioioi

Posts : 136
Join date : 2008-12-02
Location : Norway

View user profile

Back to top Go down

Re: alpha blending manually

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum