What command does it?

Blitz3D Forums/Blitz3D Beginners Area/What command does it?

jigga619(Posted 2003) [#1]
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.


FlameDuck(Posted 2003) [#2]
There is no command that *actually* does this. You can fake it pretty well with "SetGamma" tho'.


Genexi2(Posted 2003) [#3]
> 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.


Anthony Flack(Posted 2003) [#4]
Entityalpha?


darklordz(Posted 2003) [#5]
EntityAplha would require the createcamera command, this would require blitz3d! Just pointing it out...


Neo Genesis10(Posted 2003) [#6]
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)


jhocking(Posted 2003) [#7]
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.