HARRRRRRD HOT FIX: Remove all error and warning

This commit is contained in:
iMax 2024-12-06 06:08:00 +01:00
parent d685e00bc3
commit f8ffe3e16f
9 changed files with 4 additions and 15 deletions

View file

@ -1,6 +1,4 @@
import React from 'react'
import { LineBasicMaterial, Line, Group } from 'three'
import { useFrame } from '@react-three/fiber'
import * as THREE from 'three'
export default function Axes() {

View file

@ -1,11 +1,10 @@
import { Group, Mesh, MeshStandardMaterial, BufferGeometry } from 'three'
import { useGLTF } from '@react-three/drei'
export default function Character() {
// import glb file
// load the glb file in "/models/BASEmodel.glb"
const { nodes, materials, scene } = useGLTF('/models/man.glb')
const { scene } = useGLTF('/models/man.glb')
// rotate the character
scene.rotation.x = -Math.PI / 2

View file

@ -1,5 +1,3 @@
import React from 'react'
import { Group } from 'three'
import * as THREE from 'three'

View file

@ -1,5 +1,4 @@
import React from 'react'
import { Group } from 'three'
import * as THREE from 'three'
interface MarkerProps {
@ -15,7 +14,7 @@ export default function Marker({ position, color, onClick }: MarkerProps) {
// Return the marker object
// return <primitive object={marker} />
return (
<mesh position={positionState} rotation={[Math.PI,0,0]} onClick={onClick} onPointerOver={(e) => setPositionState(positionState.clone().setZ(positionState.z + 0.1))} onPointerOut={(e) => setPositionState(new THREE.Vector3(...position))}>
<mesh position={positionState} rotation={[Math.PI,0,0]} onClick={onClick} onPointerOver={() => setPositionState(positionState.clone().setZ(positionState.z + 0.1))} onPointerOut={() => setPositionState(new THREE.Vector3(...position))}>
<coneGeometry args={[0.15, 0.6, 6]} />
<meshStandardMaterial color={color} side={THREE.DoubleSide} />
</mesh>

View file

@ -2,7 +2,6 @@
import React, { useEffect, useRef } from 'react';
import * as THREE from 'three';
import { Water, WaterOptions } from 'three/examples/jsm/objects/Water.js';
import { WaterMesh, WaterMeshOptions } from 'three/examples/jsm/objects/Water2Mesh.js';
const Ocean: React.FC = () => {