diff --git a/packages/game/Models/MonoGltf.cs b/packages/game/Models/MonoGltf.cs index 5de185da5..2b42cfe36 100644 --- a/packages/game/Models/MonoGltf.cs +++ b/packages/game/Models/MonoGltf.cs @@ -81,7 +81,7 @@ public class MonoGltf { var texture = parameterTexture.Value; var name = Path.GetFileNameWithoutExtension(texture.GetPathName()); - var path = $"textures/{name}.webp"; + var path = $"../../textures/{name}.webp"; materialBuilder.WithChannelImage(channel, stubTexture); materialBuilder.GetChannel(channel).Texture.PrimaryImage.Name = path; diff --git a/packages/website-ue/src/components/TankopediaSandbox/index.tsx b/packages/website-ue/src/components/TankopediaSandbox/index.tsx index 4185d9eb6..0ab085262 100644 --- a/packages/website-ue/src/components/TankopediaSandbox/index.tsx +++ b/packages/website-ue/src/components/TankopediaSandbox/index.tsx @@ -1,5 +1,5 @@ import { OrbitControls } from "@react-three/drei"; -import { useLoader } from "@react-three/fiber"; +import { Canvas, useLoader } from "@react-three/fiber"; import { GLTFLoader } from "three-stdlib"; import styles from "./index.module.css"; @@ -7,21 +7,24 @@ export function TankopediaSandbox() { return (
- {/* {!import.meta.env.SSR && } - */} +
); } function Content() { - const gltf = useLoader(GLTFLoader, "/amogos.glb"); + const gltf = useLoader( + GLTFLoader, + "/models/tanks/TankEntity.A128_Concept_1b/hull.glb", + ); gltf.scene.traverse((child) => { child.castShadow = true; @@ -29,12 +32,12 @@ function Content() { return ( <> - + - - + +