jak-project/goal_src/jak3/engine/gfx
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
..
background jak3: add missing texture animations (#3577) 2024-07-15 02:25:18 +02:00
foreground [jak3] Fix eye slot assignment and textures (#3603) 2024-07-26 11:42:52 -04:00
generic decomp3: font widescreen and shadow hacks, generic renderer, misc files (#3483) 2024-04-28 08:59:46 -04:00
hw Jak3 sky (#3514) 2024-05-12 09:36:50 -04:00
mood [high fps] Increase input buffer for jak1 and jak3 (#3578) 2024-07-15 02:56:10 +02:00
ocean [jak3] implement autocollect and city turbo board cheats, fix actor heap and level flags (#3541) 2024-05-31 16:41:35 +01:00
shrub Add hfrag, clean up some background renderer stuff (#3509) 2024-05-09 20:11:43 -04:00
sky [jak3] implement autocollect and city turbo board cheats, fix actor heap and level flags (#3541) 2024-05-31 16:41:35 +01:00
sprite jak3: sprite limit increase + add bsphere toggle for region faces (#3529) 2024-05-22 16:27:00 +01:00
texture [jak3] Fix eye slot assignment and textures (#3603) 2024-07-26 11:42:52 -04:00
tie jak3: add goal_src skeleton (#3069) 2023-10-10 15:41:05 +02:00
blit-displays-h.gc Jak3 sky (#3514) 2024-05-12 09:36:50 -04:00
blit-displays.gc decomp3 title-obs, credits-h (#3476) 2024-04-29 20:23:31 +02:00
font-h.gc decomp3: more engine files, get-texture macro, use print method in autogenerated inspect, fix bitfield float print (#3432) 2024-03-23 09:25:11 -04:00
font.gc decomp3: font widescreen and shadow hacks, generic renderer, misc files (#3483) 2024-04-28 08:59:46 -04:00
math-camera-h.gc decomp3: loader-h, capture-h, math-camera-h, math-camera, connect, gs, texture-h (#3333) 2024-01-25 15:44:26 +01:00
math-camera.gc jak3 pc: math-camera, letterbox, led and auto-save (#3479) 2024-04-22 22:57:09 +01:00
vu1-user-h.gc Jak3 sky (#3514) 2024-05-12 09:36:50 -04:00
warp.gc decomp3: font widescreen and shadow hacks, generic renderer, misc files (#3483) 2024-04-28 08:59:46 -04:00