Page 1 of 1
24-bit Images
Posted: May 31st, 2013, 6:24 pm
by t0rxe
Hi. Does anyone have an example of displaying 24-bit images?
I tried using Sony's example, but their RGB24.OBJ (psyq/psx/sample/graphics/BASIC) is missing some routines required for their code (RGB24.C) and hence wont compile.
Re: 24-bit Images
Posted: May 31st, 2013, 7:54 pm
by LameGuy64
I'm currently working on one but I'm having trouble with my buffered file loader...I'll release it along with source once I've fixed the problem and adding a file selector.
Link to the thread:
http://www.psxdev.net/forum/viewtopic.php?f=41&t=304
Re: 24-bit Images
Posted: June 1st, 2013, 9:31 pm
by t0rxe
Well, I fixed Sony's example. Here is RGB24 all working

It has a 'puzzle' solving algorithm in it that will be need to ripped out in order to display the 24-bit flowers correctly.
Help on creating BS images using MC32 would be fantastic, as I have been trying but during psymake I get the error "
image.bs:1: parse error before character 240". If I play around with the sector and or CD-ROM info, I get different compiler errors, such as "
more {'s than {'s". Very weird.
RGB24.zip
Re: 24-bit Images
Posted: June 6th, 2013, 3:44 pm
by t0rxe
Okay, there is a very useful document in the Psy-Q Software Development Kit Documentation CD-ROM called '
MDECNOTE.PDF' that explains
.BS files.
When I create my
.BS file from my
.TIM using
MC32 or
Movie Converter, the file it gives me looks like this when edited with notepad. This is why I was getting those weird and random compiler error messages I described above:
However, Sony's
FLOWER.BS looks much different:
I tried converting mine to a header file using BIN2H, but all I get is a black screen.
The compiled PS-EXE seems to be causing the PSX to freeze...
Any suggestions?
FLOWER.BS
Re: 24-bit Images
Posted: June 6th, 2013, 9:32 pm
by Orion_
The "0x..." format isn't a binary format, it's simply a binary file converted to hexadecimal values for easier include into your C program.
But for example, when loading an external data from CDrom, you will need to load the binary file, not the hexa file !!
My library can load BS file but I didn't made an example on how to use it, gotta find out by yourself until I find some time to make more use samples of my lib.