Color Effects under 16Bit
Hi,
i thought that i easily put some Color Effects in my Game, first problem: 16Bit and second that no Graphikcard uses the DirectDrawColorControl. So how can i make for example a dark night, edit every images ? can anybody help me ?
Thanx
Lutz Hören
Power Productions
psYchOtroW
Well, in my engine I load the light value of the level at start up simply by passing a light value (from 0-255) to my RGB16BIT(r,g,b) function. This then modifies each colour component and gives a darker, or lighter, colour.
Of course this can only be done at level load time because it requires you to load all your graphics again, but in my game there is no need to implement smooth transitions.
Another thing I have experimented with is "simulated palletes" which are basically just arrays of shorts which I treat as a palletised surface (ie the old video_buffer pointer). I then assign a pallete to each seperate surface and then draw by drawing each pixel. It is very slow but lets you do some effects like fire which are very easy to do with 8bit modes. It is not *that* slow if you are only doing small things.
Apart from that, you could change the gamma settings of the video card to simulate a fading out / fading in routine. I think there is a DDGAMMACONTROL or something - just check the DX help file. Only problem with that is that I think it is only in hardware - but I haven''t used it so I''m not sure.
good luck!
Of course this can only be done at level load time because it requires you to load all your graphics again, but in my game there is no need to implement smooth transitions.
Another thing I have experimented with is "simulated palletes" which are basically just arrays of shorts which I treat as a palletised surface (ie the old video_buffer pointer). I then assign a pallete to each seperate surface and then draw by drawing each pixel. It is very slow but lets you do some effects like fire which are very easy to do with 8bit modes. It is not *that* slow if you are only doing small things.
Apart from that, you could change the gamma settings of the video card to simulate a fading out / fading in routine. I think there is a DDGAMMACONTROL or something - just check the DX help file. Only problem with that is that I think it is only in hardware - but I haven''t used it so I''m not sure.
good luck!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement