Miscellaneous Forums > Scripting and Reverse Engineering

[FF7]Snowboard minigame and Emscripten

<< < (3/3)

mav:
The last update did indeed resolve the graphical glitches in the tree sections, good job!

I see one more texture related glitch - the background image has this black outline on some parts of it:



Otherwise it looks perfect!

Oh and one other thing - initially keyboard controls worked, but in this new version I could only use gamepad, keyboard would not work for me anymore.

ergonomy_joe:
Hi @mav, thanks for the feedback.

Yeah, when the code detects that a joypad is plugged in, it disables the keyboard input. That is stupid, and I'll try to fix it.
Thanks for the background issue screenshot too. I'll have to investigate that too.

BTW, during the Great Glacier run, there is a cave with rocks falling from the ceiling, right ?
And in the PlayStation version, the rocks flashes a little just before falling.
But there is no such effect in the windows version. Did anyone notice this ?

In the windows version, there is a call to the function at @0066335F, the equivalent of SetFarColor I guess, with parameters (255, 255, 255). That would set the far color white.
Also, there is only one rendering function (for the snowboard minigame) that has depth cueing (@00732429), and it totally ignores the far color. Instead, it does as if the far color was (0, 0, 0), which is black. And this function is called in the case of the falling rock, so my guess is that it is a bug. The programmer forgot to take the far color into account.

I found this video on youtube:
https://www.youtube.com/watch?v=_OVouVCewcE
you can check the effect from 2'35"

Maybe I will add a fix with an option at the start.

ergonomy_joe:
Just so everyone can have fun with snowbarding this weekend, I uploaded a new version.
Same URL : https://ergonomy-joe.github.io/ff7snobo.github.io/test.html

I removed all filtering on textures, this is was caused the glitch on the mountains in the background. I may have to find a better patch in the future, but for now, it looks ok.

I also fixed the input function: now you can have a gamepad connected to your system and still be able to use the keyboard.

Have fun !

Navigation

[0] Message Index

[*] Previous page

Go to full version