ZX Format #06
29 июля 1997 |
|
Programmers - sharing experiences: "3-colour". Description of the effect of colors on 8-point ", help to the viewer, and how many words on the conversion of images in format "3-colour".
Extended color capabilities ZX. music by DNK (C) CREATOR G (C) GODFATHER _______________________________ So, hello everyone! You probably think that I now begin you "drip on the brain" with all sorts of stories about it: EGA graphics, video card to spectrum, etc. But it is not. All that is here written will work on any sinter even on the "brake" and besides - do not need to solder and connect ... "- This can not be!" "- May be ..." (C), my ... Tricolor, that's what I would like to tell you. Well for starters of course, a little Technical Information: in the tricolor on kartinyke, in full screen, up to 8 colors on one point, without depending on others. Although the screen flickers a little, but who have one on it will not pay attention ... Well, now standard, the theory ... Who does not please can scroll through the text further. At the heart of the tricolor is known all students, the principle of forming images on the "CRT" well, or ask for regular, color TV. There, on TV, the image is formed by three primary colors: red, blue, green. And all the others shades are produced by mixing these primary colors at one point. Here, for example, how is the color on the TV screen: R - red beam G - green light B - blue ray 1 2 3 Screen> * * * ^ ^ ^ B R G ^ ^ R B ^ G 1 - point to be white. 2 - point will be red. 3 - point will be yellow, because it accounts for two rays, green and blue. Well, a white point because it come all the three beams. You can experiment yourself at home with red, blue and deer color. Similarly, in the tricolor. There are three screen with the image pixels of a color. And they in turn are thrown into the main screen, and in the process added attributes. Its for each screen, red, blue or green. Here is an example for the tricolor: 123 imaginary screen> Green Screen> * * blue screen> * * red screen> * * 1 - point to be white. 2 - point will be red. 3 - point will be yellow, because She posed in a blue and green screen. The first point of white for the same reason as in the example of the television screen, in the case of the tricolor surrounding it in all three screens. What a sham the screen? This is what they see as a result of our eyes. Since the inertia of human vision is large enough, then when you change screens, with a frequency around the critical value (in normal circumstances about 50Hz, but the level of threshold depends on the brightness - the darker the lower, and the eye just typical deceived) picture can be seen combined. The truth is still flickering markedly. Thus, the problem for the coding is clear: we must have time to change the screen for one interrupt that sobsvenno and done in the viewer, which is located in the annex. Actually, the procedure itself, "throwing" images: it came up with our encoder MIK from Virt Group, Well, I realiznul. But even before the him, first, to their credit, made to work on Pentagon'e tricolor Volga soft. Problem is that you can not throw a screen for a single interrupt (40000-50000 cycles) And now the very essence: in the viewer, of course, "kidalka did not have time to meet the int, but this is not required. We only need to keep up screen drawn by video processor. In this procedure itself Shipping costs a HALT, and everything else is done "Streak" (transfer images + music + survey of the keyboard). But here is a little trick: one screen, along with the attributes stored in 7 bank, on-site second screen. And his "throwing" in a few cycles of merely switching screens, that is a time saver. Therefore, the remaining screens enough time for the right moment. That it can give to users? Here's what: in games, using the tricolor You can enhance the "brilliance" registration as a MORTAL KOMBAT by ANCCAH '& VIRT GROUP. There, in the game, used tricolor to show the heroes in all their "Beauty" and looks a very even vpechetlyayusche. So, gentlemen, coders and hackers, it's time "Paint" your game to a higher Level ... Program for viewing and pictures you can be found in the annex of the journal, but how to manage this program, I now tell ... Downloading images - roll over desired fail and presses enter, 0,5, space. File loaded and the program returns to the view image. All pictures and have zakompressovany extension of "Y". Kompressovat Pictures can be anything important to observe certain conditions. starting address of the compressed Unit: 47,104 address of decompressor: 16384 Address decompressed Pictures: 47,104 interrupts are disabled. This mode is available: Tuning (used very rarely and then - For turbo mode) - press 1 and 2. Changing the brightness of the screen - enter (you never know useful) 3 - change the color border space - access to the file menu In the file menu is available: Downloading music. Osushestvlyaetsya just as well as images, the program recognizes the music to expand the "M", ie therefore you can only download music from Pro-Tracker'a v2.1. Enable / disable the music - the key "M" if the music is generally loaded. Log in to view pictures - key "V" of course, if the picture is in memory. Change the disc - the key "R" Changing the drive - press "A", "B", "C", "D" ootvetstvenno. Output in TR-DOS - the key "E" Well, here's all in viewer. ККККККККККККККККККККККККККККККККонвертация pictures with the IBM PC. This is a separate conversation, I do not convertible, so this raskazhet another person, namely Denis, who actually and envelopes of these pictures. Hi! I-Denis (on-same GODFATHER). Here, you rasckazhu on the method of conversion in the regime 3colour with IBM or any other machine yet what I know. I'll start with the first procedure. First of all you need to find any editor to convert from XXX colors 8. What method - fleshtambergom (shrimp) or patterns (fill) in principle does not matter (This is the picture depends). After so unpleasant procedure, which turned your screen at a dried banana, you can begin the most routine work - sharing Eight flowers on 3 basic: R-red, G-green, and B-blue. This is done quite simple: stay in the editor function "Percentage of flowers", is removed 2 colors (for example, to select R, have lower% G and B to 0%). Since konverchu I am at IBM, then let me as examples and benefits are the editors and viewers on a PC, but on what means this is done on AMIG'e - find out for yourself, if necessary. So, after the destruction of what a 2-color we need to write the resulting 2-color Zoom in on the XXX, and repeat the procedure 2 more times with ostavshimesya flowers. Thus, you will have the 3 images, which located in 2 colors-X + BLACK. Now you need to make X in white. I am a doing in PHOTO FINISH'e, but this method You can use other editors. For starters, we should find out the number of a color that is in the palette of this format and make it white. It now remains only to rewrite them on the Spectrum and change in ART STUDIO (or anywhere else) white on R, G or B. Well, finally resulting files can only merge, and check out our viewer. _______________________________
Other articles:
Similar articles:
В этот день... 21 November