XFire
12-22-2004, 01:52 AM
Hi Folks,
I need some advice about the fastest way to multitexture a polygon.
I would like to apply various textures to a single polygon. The first texture should be completly opaque. All other textures should be drawn above the previously applied and should appear completly opaque on one corner and between slightly transparent and completly transparent on the remaining corners.
On way to solve the problem would be to render each polygon multiple times using blending for transparency.
Using multitexturing could be an other way. Although i was not yet able to apply a texture (unit) transparent based on a vertex alpha value. (Is this possible?)
Or maybe i should use a fragment shader? (But how much textures can be accessed for one fragment?)
What do you think would lead to the best performance?
Which solution would you prefer?
Are there any other ways to multitexture a polygon?
Plase let me know if you have any advice.
Thanks in advance and a merry christmas,
Mike
I need some advice about the fastest way to multitexture a polygon.
I would like to apply various textures to a single polygon. The first texture should be completly opaque. All other textures should be drawn above the previously applied and should appear completly opaque on one corner and between slightly transparent and completly transparent on the remaining corners.
On way to solve the problem would be to render each polygon multiple times using blending for transparency.
Using multitexturing could be an other way. Although i was not yet able to apply a texture (unit) transparent based on a vertex alpha value. (Is this possible?)
Or maybe i should use a fragment shader? (But how much textures can be accessed for one fragment?)
What do you think would lead to the best performance?
Which solution would you prefer?
Are there any other ways to multitexture a polygon?
Plase let me know if you have any advice.
Thanks in advance and a merry christmas,
Mike