|
Forum Index : Microcontroller and PC projects : cmm2 8 bit CLUT can we load a photoshop ACT file to set the CLUT?
| Author | Message | ||||
| berighteous Senior Member Joined: 18/07/2020 Location: United StatesPosts: 110 |
Hi I wrote several 320x200 vga games for the dos PC way back in the late 90's. All the art is in 8 bit bmp files with a common vga palette which photoshop can save as an ACT file. If I want to recreate the games on the CMM2, can I just bring the pictures in and set the 320x200 CLUT with the ACT file? |
||||
| berighteous Senior Member Joined: 18/07/2020 Location: United StatesPosts: 110 |
The act files are 768 bytes and are 3 hex bytes per color r,g,b for 256 colors starting with color 0 Youtube video of OidZone (1997) Edited 2020-07-28 19:30 by berighteous |
||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 10580 |
Should be easy. Just read in the file 3 bytes at a time and then constuct the MAP command for that colour. STR2BIN may be useful. |
||||
| Atomizer_Zero Senior Member Joined: 04/07/2020 Location: United KingdomPosts: 134 |
Looking at the hex details of an .ACT file, it appears to me that the colours are stored in 3 byte, which are the RGB values for each colour. For example #D296A5 = RGB(210,150,165). <- that would work in CMM2, so you could parse the file and read the bytes for RGB colour. But, I think you should just try drawing the image directly. I'm assuming you don't have your CMM2 yet, right? If so, you can send me one of the bmp's, I'll open it on the CMM2 and save a capture of the output for you, so you can see what it'll look like. |
||||
| Atomizer_Zero Senior Member Joined: 04/07/2020 Location: United KingdomPosts: 134 |
Thats better than my suggestion lol. I'm still a newbie, so feel free to ignore my post xD |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |