Blade Posted June 10, 2016 Share Posted June 10, 2016 Ever wondered how they did that Chronal vortex effect in RA? Thanks to research done for RA++, you can wonder no more, I'm here to describe how it is accomplished. The effect is actually created using a series of lookup tables, since doing the math for the distortion on the CPU in the days RA was released would probably have been a bit much. The lookups are actually a series of files located in REDALERT.MIX > LOCAL.MIX. They are unknown file names if you are using the standard XCC database but are actually named hole####.lut. There are also the *_VTX.PAL files which contain "fading tables" lookup tables for drawing shading effects like the .mrf files found in C&C. To draw a "frame" of the vortex, the game decides what state the vortex is in and what frame it is on and then loads the .lut file for that frame. It then draws a 96 x 96 pixel buffer containing the terrain, tile and overlay graphics for the area that is going to be distorted to a special buffer used specifically for this effect and passes it to the distortion function. Game objects are not drawn in this buffer and thus are not present in the distortion if it overlaps them. The distortion function applies the lut transformation which is stored as 3bytes per pixel to be transformed. The first two bytes are the X and Y coord in the source buffer, that the destination buffer pixel will be drawn from. The last byte is which table in the "fading table" will be used to shade that pixel as there are several remap tables, each getting progressively darker which are either loaded from the *_VTX.PAL file on theatre change or generated if the file isn't present. The destination is written left to right, top to bottom. The distorted copy of the buffer is then blitted to the actual rendered display. Link to comment Share on other sites More sharing options...
Nyerguds Posted June 10, 2016 Share Posted June 10, 2016 The distortion function applies the lut transformation which is stored as 3bytes per pixel to be transformed. The first two bytes are the X and Y coord in the source buffer, that the destination buffer pixel will be drawn from. The last byte is which table in the "fading table" will be used to shade that pixel Hah, wow. That's surprisingly simple Link to comment Share on other sites More sharing options...
Nyerguds Posted June 10, 2016 Share Posted June 10, 2016 Hey, on a related note... has anyone ever found the old DOS RA vortex? It was a different effect; a big lens rolling over the screen. Link to comment Share on other sites More sharing options...
Chad1233 Posted June 10, 2016 Share Posted June 10, 2016 On PS1 Red Alert the vortex was huge black rainbow like effect that I use to mistake for color burn on my CRT television. XD Link to comment Share on other sites More sharing options...
Nyerguds Posted June 11, 2016 Share Posted June 11, 2016 Didn't that one look like you were holding a magnet against your TV? Link to comment Share on other sites More sharing options...
Blade Posted June 11, 2016 Author Share Posted June 11, 2016 I much prefer the effect as its done in the PC versions personally, the PSX version is just a big smudge. Regarding the DOS version, as far as I know the effect is the same, certainly the same lut files are used. Could be that an earlier build was bugged and the effect didn't transition to the funnel state, the vortex has a few states it can be in and one of them is dissapearing which based on videos of it I've watched doesn't have the darkened funnel effect (different luts are used for different states). Link to comment Share on other sites More sharing options...
Iran Posted June 11, 2016 Share Posted June 11, 2016 I do remember seeing the lens effect Chrono Vortex on PC.. Link to comment Share on other sites More sharing options...
Nyerguds Posted June 13, 2016 Share Posted June 13, 2016 It was definitely not a bugged version of the Win95 one. It was just completely different. That kind of effect can't be achieved by accident. I'll see if I can reproduce it on a completely unpatched DOSBox CD install... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now