Tomb Raider Forums

Tomb Raider Forums (https://www.tombraiderforums.com/index.php)
-   Tomb Raider (https://www.tombraiderforums.com/forumdisplay.php?f=7)
-   -   PSX: Messing with water colours (https://www.tombraiderforums.com/showthread.php?t=219881)

b122251 19-04-18 13:55

PSX: Messing with water colours
 
Hi everybody,

I was working on a new program (which I will tell you all about... some other time) and as part of the process I was investigating water colour on PSX.
I discovered that unlike the PC, on PSX "water colour" as such doesn't really exist. Rather, the PSX has two sets of colour palettes: one for above water, and one for under water. And if Lara goes under water, the playstation swaps out the palettes.
Therefore what water looks like is not determined by the engine, but by the level file.
I embedded the option of changing what water looks like in my program, and here is me messing about with it a bit.
Some of these are viable options and could add a nice effect to a level, and others just look weird and cool.
Hope you like it.
[YOUTUBE]zB3gRVFRZ64[/YOUTUBE]
Greetings,
b122251

Alex Fly 19-04-18 15:40

Wow it's so cool, thanks for sharing. Some of those variations really make incredible effects! :tmb:

Dustie 19-04-18 15:57

Interesting. I understand that the "underwater palette" is also used when Lara is on the surface and we see inside water tanks?

What is the default scheme for the water palette on the PS1?

Zebra 19-04-18 15:59

That's really interesting! Would be fun if we could use some of those above water, too, play whole levels like that :D.

TheLostSecret 19-04-18 16:20

Wow nice ! :tmb:

b122251 19-04-18 16:23

[QUOTE=Dustie;7858784]Interesting. I understand that the "underwater palette" is also used when Lara is on the surface and we see inside water tanks?

What is the default scheme for the water palette on the PS1?[/QUOTE]

Dividing the value for red by 2 using a logical right shift of one bit (or in my notation: R>1).

[QUOTE=Zebra;7858786]That's really interesting! Would be fun if we could use some of those above water, too, play whole levels like that :D.[/QUOTE]

I could easily do that. Instead of altering the underwater palette, just alter the above-water palette.

TheLostSecret 19-04-18 16:24

But I've been wondering that how do you do all these stuff on PSX files ? :confused:

b122251 19-04-18 16:26

[QUOTE=TheLostSecret;7858808]But I've been wondering that how do you do all these stuff on PSX files ? :confused:[/QUOTE]

I'm a programmer. I write a program that alters them. In the end every file on earth is just a series of bytes. If you know what the bytes mean, you can come up with ways to change them. I had to figure out how the PS1 format worked, but now I know, and can use that knowledge.

The program I'm currently working on (which I also used to change the water palettes in this thread) isn't released yet. When it is, anybody can do this.

Pigfaced 19-04-18 16:32

Very interesting. It's great to see what programmers can do with old games like this.

TheLostSecret 19-04-18 16:33

[QUOTE=b122251;7858811]I'm a programmer. I write a program that alters them. In the end every file on earth is just a series of bytes. If you know what the bytes mean, you can come up with ways to change them. I had to figure out how the PS1 format worked, but now I know, and can use that knowledge.

The program I'm currently working on (which I also used to change the water palettes in this thread) isn't released yet. When it is, anybody can do this.[/QUOTE]

I'm a professional C++ program though . But I was wondering how do you do it with PlayStation engines ? The only thing I want to know is that do you use any special softwares or SDKs ?


All times are GMT. The time now is 16:20.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Tomb Raider Forums is not owned or operated by CDE Entertainment Ltd.
Lara Croft and Tomb Raider are trademarks of CDE Entertainment Ltd.