jak-project/goal_src/jak3/engine/gfx/foreground
water111 9d80ada016
[jak3] Fix eye slot assignment and textures (#3603)
I found two issues with Jak 3 eyes. The first was simple - we were
missing a `-pc` texture upload in `texture.gc` for `pris2` textures,
which has eye textures for a few characters, like torn or damas.

The second was a little more annoying. Unlike jak 2 and jak 1, jak 3 can
dynamically assign eye slots when merc models are loaded. This involves
modifying eye data to tell the eye renderer where to render, and
modifying the merc model's adgif shaders to point to the correct eye
texture. The modification to the merc adgif shader is problematic since
our PC port of merc assumes this slot is constant.

My solution here was to bypass this whole slot system entirely for jak
3. I modified the GOAL eye renderer to tell the c++ eye renderer the
name of the merc-ctrl containing the eye. Then, the PC C++ Merc renderer
can just look up the merc-ctrl by name. To make this fit nicely in the
existing memory layout, I used a 64-bit fnv hash of the name. (which
honestly is how we should have handled a lot of other texture/model
names stuff...)

Unrelated fix to Overlord2 so it handles the case where file size
changes after the game starts, I had this in jak2/jak1 and forgot it for
jak 3.
2024-07-26 11:42:52 -04:00
..
merc decomp3: lightning renderer, nav code, texture remap, fix progress menu crash (#3461) 2024-04-12 18:44:38 -04:00
bones-h.gc Decompile foreground and bones (#3427) 2024-03-16 14:50:41 -04:00
bones.gc Decompile foreground and bones (#3427) 2024-03-16 14:50:41 -04:00
debug-foreground.gc jak3: add goal_src skeleton (#3069) 2023-10-10 15:41:05 +02:00
eye-h.gc [jak3] A bunch of small fixes to get game.cgo to load (#3435) 2024-03-24 16:30:28 -04:00
eye.gc [jak3] Fix eye slot assignment and textures (#3603) 2024-07-26 11:42:52 -04:00
foreground-h.gc decomp3: spawn target, add merc and particle buckets and some temporary hacks (#3445) 2024-04-05 00:07:39 -04:00
foreground.gc [jak3] implement autocollect and city turbo board cheats, fix actor heap and level flags (#3541) 2024-05-31 16:41:35 +01:00
lights-h.gc decomp drawable, main (#3434) 2024-03-24 12:27:04 -04:00
lights.gc d/j3: do a few mood related files and fix some issues along the way (#3365) 2024-02-04 08:40:43 -05:00
ripple.gc decomp3: more misc files (#3466) 2024-04-22 18:43:51 +02:00
shadow-cpu-h.gc decomp3: more engine stuff, fix ja macro detection for jak 2/3, unmerged let matcher, part-tracker-spawn macro (#3436) 2024-03-30 10:28:02 -04:00
shadow-cpu.gc jak 3 shadows (#3530) 2024-05-23 18:29:42 +01:00
shadow-vu1-h.gc decomp3: more misc files (#3349) 2024-01-31 18:25:06 -05:00
shadow-vu1.gc jak 3 shadows (#3530) 2024-05-23 18:29:42 +01:00