Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Aug 31, 2023
2 parents f647049 + 6fe5d9a commit 265f26e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
16 changes: 16 additions & 0 deletions bin/resources/GameIndex.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,8 @@ PCPX-96312:
PCPX-96314:
name: "The Sky Odyssey"
region: "NTSC-J"
clampModes:
vu0ClampMode: 3 # Fixes runway line thickness on minimap.
PCPX-96315:
name: "Phase Paradox"
region: "NTSC-J"
Expand Down Expand Up @@ -3856,6 +3858,8 @@ SCES-50034:
SCES-50105:
name: "Sky Odyssey"
region: "PAL-M5"
clampModes:
vu0ClampMode: 3 # Fixes runway line thickness on minimap.
SCES-50139:
name: "World Rally Championship"
region: "PAL-M7"
Expand Down Expand Up @@ -6969,6 +6973,8 @@ SCPS-15002:
SCPS-15003:
name: "Sky Odyssey"
region: "NTSC-J"
clampModes:
vu0ClampMode: 3 # Fixes runway line thickness on minimap.
SCPS-15004:
name: "Dark Cloud"
region: "NTSC-J"
Expand Down Expand Up @@ -22737,6 +22743,11 @@ SLES-54521:
SLES-54522:
name: "Nickelodeon SpongeBob and Friends - Battle for Volcano Island"
region: "PAL-A"
gsHWFixes:
mipmap: 2 # Better characters and environment.
trilinearFiltering: 1 # Using mipmaps, so may as well.
autoFlush: 2 # Fixes texture corruptions.
getSkipCount: "GSC_BlueTongueGames" # Render mipmaps on the CPU.
SLES-54527:
name: "Flushed Away"
region: "PAL-M5"
Expand Down Expand Up @@ -24026,12 +24037,14 @@ SLES-54990:
gsHWFixes:
mipmap: 1 # Fixes garbage textures in the distance.
halfPixelOffset: 2 # Corrects most vertical lines.
getSkipCount: "GSC_BlueTongueGames" # Mipmap rendering on CPU.
SLES-54991:
name: "Nickelodeon SpongeBob and Friends - Attack of the Toybots"
region: "PAL-M6"
gsHWFixes:
mipmap: 1 # Fixes garbage textures in the distance.
halfPixelOffset: 2 # Corrects most vertical lines.
getSkipCount: "GSC_BlueTongueGames" # Mipmap rendering on CPU.
SLES-54992:
name: "PDC World Championship Darts 2008"
region: "PAL-M6"
Expand Down Expand Up @@ -47221,6 +47234,8 @@ SLUS-20134:
name: "Sky Odyssey"
region: "NTSC-U"
compat: 5
clampModes:
vu0ClampMode: 3 # Fixes runway line thickness on minimap.
SLUS-20136:
name: "Barbarian"
region: "NTSC-U"
Expand Down Expand Up @@ -54859,6 +54874,7 @@ SLUS-21605:
gsHWFixes:
mipmap: 1 # Fixes garbage textures in the distance.
halfPixelOffset: 2 # Corrects most vertical lines.
getSkipCount: "GSC_BlueTongueGames" # Mipmap rendering on CPU.
SLUS-21606:
name: "Metropolismania 2"
region: "NTSC-U"
Expand Down
6 changes: 3 additions & 3 deletions pcsx2/GS/Renderers/HW/GSHwHack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ bool GSHwHack::GSC_BlueTongueGames(GSRendererHW& r, int& skip)
r.m_r.x = r.m_vt.m_min.p.x;
r.m_r.y = r.m_vt.m_min.p.y;
r.m_r.z = r.PCRTCDisplays.GetResolution().x;
r.m_r.w = r.m_vt.m_max.p.y;
r.m_r.w = r.PCRTCDisplays.GetResolution().y;

for (int vert = 32; vert < 40; vert+=2)
{
Expand All @@ -763,9 +763,9 @@ bool GSHwHack::GSC_BlueTongueGames(GSRendererHW& r, int& skip)
r.m_vertex.buff[vert].U = (vert * 16) << 4;
r.m_vertex.buff[vert].V = 0;
r.m_vertex.buff[vert+1].XYZ.X = context->XYOFFSET.OFX + ((((vert * 16) + 32) << 4) - 8);
r.m_vertex.buff[vert+1].XYZ.Y = context->XYOFFSET.OFY + 8184; //511.5
r.m_vertex.buff[vert+1].XYZ.Y = context->XYOFFSET.OFY + (r.PCRTCDisplays.GetResolution().y << 4) + 8;
r.m_vertex.buff[vert+1].U = ((vert * 16) + 32) << 4;
r.m_vertex.buff[vert+1].V = 512 << 4;
r.m_vertex.buff[vert+1].V = r.PCRTCDisplays.GetResolution().y << 4;
}

/*r.m_vertex.head = r.m_vertex.tail = r.m_vertex.next = 2;
Expand Down

0 comments on commit 265f26e

Please sign in to comment.