Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 06:51 14 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

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 States
Posts: 110
Posted: 09:08am 28 Jul 2020
Copy link to clipboard 
Print this post

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 States
Posts: 110
Posted: 09:13am 28 Jul 2020
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 10580
Posted: 09:33am 28 Jul 2020
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 134
Posted: 09:48am 28 Jul 2020
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 134
Posted: 09:58am 28 Jul 2020
Copy link to clipboard 
Print this post

  matherp said  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.


Thats better than my suggestion lol. I'm still a newbie, so feel free to ignore my post xD
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025