What command does it?
Blitz3D Forums/Blitz3D Beginners Area/What command does it?
| ||
I know that there are several ways to fade a image out and in. My question is what is the command that actually does this? Is it the setbuufer command? Imagebuffer? Please help me understand this. |
| ||
There is no command that *actually* does this. You can fake it pretty well with "SetGamma" tho'. |
| ||
> You can fake it pretty well with "SetGamma" tho'. Only problem is SetGamma applies to the entire screen... On another note, I wonder if you could use SetGamma to make a fading animation of a single image...dunno if it'll work cause I dont know if readpixel or whatever takes notice of the colour changes due to the gamma....worth a try though. |
| ||
Entityalpha? |
| ||
EntityAplha would require the createcamera command, this would require blitz3d! Just pointing it out... |
| ||
Jigga - if you really want to know the actual command(s) involved they're called WritePixelFast and ReadPixelFast. Basically what most functions do is read in the picture, check the color and alter it according to the background and level of translucency. Unfortunately, its a time consuming function and can really slow a machine down if overused. (... fingers crossed Blitz gets a native command for translucent images) |
| ||
The biggest problem with SetGamma for fading effects is that the gamma commands only work in fullscreen. For a fade in/out of black which works in 2D and windowed look for my recent entry in the Code Archives. |