Transparent image

Blitz3D Forums/Blitz3D Programming/Transparent image

luke101(Posted 2004) [#1]
Hello, just trying to figure out how to make an image transparent. I have already searched the code archives but all pertained to 3d stuff.


Matty(Posted 2004) [#2]
If you mean in 3d then you can use the entityalpha command. If you mean in 2d then you can make regions of the image transparent using a mask color. What exactly are you after?


ChrML(Posted 2004) [#3]
He's probably talking about alpha DrawImage()

You can loop through all pixels the image will draw over, find the middle-value between the pixel that's already there, and the pixel in the image, and draw that. It's painly slow though... Only a 200x200 image results 200*200 = 40 000 loopings with drawing, resulting 1- 15 fps, depends on computer.


_PJ_(Posted 2004) [#4]
You're better off using Sprites in 3D!

---Oops just re-read your post.---

(damn twice i done that today!)


Ross C(Posted 2004) [#5]
Check out the user creations forum and check out Snarty's post. He is doing work on a c++ thingy that allows images in 2D to be transparent.

http://www.blitzbasic.com/Community/posts.php?topic=31478

That's it there :)


luke101(Posted 2004) [#6]
ok...thanks guys