fix: remove clownfish (broken untextured scene model)

The clownfish GLB is a full aquarium scene (water plane, light, bubbles,
mirrored body) with no textures. It renders as a giant gray/white object
that obscures the tank. Replaced with a second blue_tang in the starter
lineup. 9 species remain.
This commit is contained in:
2026-10-07 22:50:08 +00:00
parent df4fb24822
commit 88fb870dbb
4 changed files with 3 additions and 17 deletions
-11
View File
@@ -56,7 +56,6 @@ function getSpeciesUrl(sp: FishSpecies): string {
neon_tetra: "models/blendswap/neon_tetra.glb",
oscar: "models/blendswap/oscar_cichlid.glb",
knifefish: "models/blendswap/ghost_knifefish.glb",
clownfish: "models/blendswap/clownfish.glb",
};
return urls[sp];
}
@@ -65,8 +64,6 @@ function getSpeciesUrl(sp: FishSpecies): string {
// swim-clip evaluation of the actual GLB data). Fish are scaled by
// targetLength / modelLength. This replaces the old
// Box3.setFromObject auto-measure, which under-reports armature-scaled
// models (oscar, knifefish) and for the clownfish is dominated by its
// 45.3-unit water plane (see FishSpec.modelLength).
const SPECIES_LENGTH: Record<FishSpecies, number> = {
angelfish: 4.2139,
goldfish: 1.7386,
@@ -77,14 +74,7 @@ const SPECIES_LENGTH: Record<FishSpecies, number> = {
neon_tetra: 3.6548,
oscar: 8.8411,
knifefish: 23.0140,
clownfish: 8.2773,
};
// The clownfish GLB bundles a whole aquarium scene: an untextured white
// "Surface" water plane (45.3 units — the "white box"), a "TopLight"
// emissive slab, a "Bubbles" prop, and "Original-Mirrored", a mirrored
// duplicate of the body that overlaps the real "ClownFish" node. Hide
// everything except the fish itself.
const HIDDEN_CLOWNFISH_NODES = ["Surface", "TopLight", "Bubbles", "Original-Mirrored"];
function fishToSpec(f: FishData): FishSpec {
return {
url: getSpeciesUrl(f.species),
@@ -93,7 +83,6 @@ function fishToSpec(f: FishData): FishSpec {
speed: [0.3 * f.genetics.speedMult, 0.7 * f.genetics.speedMult],
orient: isQuaternius(f.species) ? { y: Math.PI / 2 } : undefined,
genetics: f.genetics,
hideNodes: f.species === "clownfish" ? HIDDEN_CLOWNFISH_NODES : undefined,
};
}