Search found 3 matches

by Schakal
Fri Jan 30, 2009 11:06 am
Forum: Beginners Help
Topic: Alpha blending
Replies: 10
Views: 2411

Ok guys, I got a bit further with my problem: I just wrote "x*2" instead of "x*4". The result was a blue version of my grass :D So x*2 would mean (because each single pixel is changed), that my texture has a 8-bit format (4bit*2) And it seems that I cant change the alpha value. S...
by Schakal
Thu Jan 29, 2009 6:34 pm
Forum: Beginners Help
Topic: Alpha blending
Replies: 10
Views: 2411

@Bear: Sounds reasonable! :) @arras: I tried this code: void MaskImage(video::ITexture* image,video::ITexture* mask,core::rect<s32> type) { s32* ibuf = (s32*)image->lock(); s32* mbuf = (s32*)mask->lock(); for(int x = type.UpperLeftCorner.X;x<type.LowerRightCorner.X;x++) { for(int y = type.UpperLeftC...
by Schakal
Tue Jan 27, 2009 7:09 pm
Forum: Beginners Help
Topic: Alpha blending
Replies: 10
Views: 2411

Alpha blending

Hi all, i am new to Irrlicht :) And soon I got my first problem: I want to make an isometric game. I made two pictures, the one is grass and the other shall be a mask with a isometric shape: http://cultsoft.cu.ohost.de/pics/gras.jpg http://cultsoft.cu.ohost.de/pics/masktile.jpg And my goal is to lay...