How to load image data from one file but alpha mask from other.
For example:
ImageData:
Alpha mask:
Lload image from one file but alpha mask from other
-
- Posts: 518
- Joined: Tue Mar 29, 2005 9:02 pm
- Location: Alex,Egypt
- Contact:
ok JP & hybrid gave you the answer, but i have a note.
your image size is 1200 x 40 ,some VGA card only supprots a max 1024 X1024 size ,so did you first try to load this image with irrlicht ?
your image size is 1200 x 40 ,some VGA card only supprots a max 1024 X1024 size ,so did you first try to load this image with irrlicht ?
Magic 2d Library For Irrlicht : http://www.freewebs.com/bcxgl/index.htm
http://www.freewebs.com/bcxdx/index.htm
http://groups.yahoo.com/group/bcxdxc/
http://www.freewebs.com/bcxdx/index.htm
http://groups.yahoo.com/group/bcxdxc/
nice diamonds where did you get them?
BTW, you can use alpha channel of another texture without byte work - just create your own material and set color texture as first and alpha as second and make a bunch of right pID3DDevice8->SetTextureStageState(0/ 1/ 2, ...); (assuming you are using DX)
video card will do the rest. it is useful when you want to use the same alpha with different color textures
BTW, you can use alpha channel of another texture without byte work - just create your own material and set color texture as first and alpha as second and make a bunch of right pID3DDevice8->SetTextureStageState(0/ 1/ 2, ...); (assuming you are using DX)
video card will do the rest. it is useful when you want to use the same alpha with different color textures