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.
24-bit Images
- t0rxe
- C Programming Expert
- Posts: 139
- Joined: Dec 19, 2012
- Motto: /\OX[]
- PlayStation Model: SCPH-5502
- Location: Australia
24-bit Images
"Nostalgia isn't a big enough word to describe the PlayStation from my eyes"
- LameGuy64
- Psy-Q Enthusiast
- Posts: 388
- Joined: Apr 10, 2013
- I am a: Hobbyist Game Developer
- Motto: Commercial or not, play it!
- PlayStation Model: H2000/7000
- Location: Philippines
- Contact:
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
Link to the thread:
http://www.psxdev.net/forum/viewtopic.php?f=41&t=304
Please don't forget to include my name if you share my work around. Credit where it is due.
Dev. Console: SCPH-7000 with SCPH-7501 ROM, MM3, PAL color fix, Direct AV ports, DB-9 port for Serial I/O, and a Xplorer FX with Caetla 0.35.
DTL-H2000 PC: Dell Optiplex GX110, Windows 98SE & Windows XP, Pentium III 933MHz, 384MB SDRAM, ATI Radeon 7000 VE 64MB, Soundblaster Audigy, 40GB Seagate HDD, Hitachi Lite-on CD-RW Drive, ZIP 250 and 3.5" Floppy.
Dev. Console: SCPH-7000 with SCPH-7501 ROM, MM3, PAL color fix, Direct AV ports, DB-9 port for Serial I/O, and a Xplorer FX with Caetla 0.35.
DTL-H2000 PC: Dell Optiplex GX110, Windows 98SE & Windows XP, Pentium III 933MHz, 384MB SDRAM, ATI Radeon 7000 VE 64MB, Soundblaster Audigy, 40GB Seagate HDD, Hitachi Lite-on CD-RW Drive, ZIP 250 and 3.5" Floppy.
- t0rxe
- C Programming Expert
- Posts: 139
- Joined: Dec 19, 2012
- Motto: /\OX[]
- PlayStation Model: SCPH-5502
- Location: Australia
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.
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.
You do not have the required permissions to view the files attached to this post.
"Nostalgia isn't a big enough word to describe the PlayStation from my eyes"
- t0rxe
- C Programming Expert
- Posts: 139
- Joined: Dec 19, 2012
- Motto: /\OX[]
- PlayStation Model: SCPH-5502
- Location: Australia
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?
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?
You do not have the required permissions to view the files attached to this post.
"Nostalgia isn't a big enough word to describe the PlayStation from my eyes"
-
- Legendary Programmer
- Posts: 240
- Joined: Aug 13, 2012
- I am a: Programmer
- PlayStation Model: Net Yaroze
- Location: France
- Contact:
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.
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.
Retro game development on Playstation and other consoles http://orionsoft.free.fr/
Who is online
Users browsing this forum: No registered users and 8 guests