Skip to content

Commit

Permalink
remove console logs and update navigation instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor-Vuk committed Oct 18, 2024
1 parent 3ab84eb commit 38ed0a7
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 14 deletions.
2 changes: 0 additions & 2 deletions src/Experience.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ useTexture.preload(assetsPath.modelsTerrainTexture)
/* ----------------------------------------------------------- */

export default function Experience() {
console.log("EXPERIENCE")

const mapRef = useRef<MapRef>(null)

const sceneRender = SceneRenderControl()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ const AssetModels: FC<AssetProps> = ({
groupedMeshes = null,
textures = null,
}) => {
console.log("ASSET MODELS", groupedMeshes)

const [ready, setReady] = useState(false)
const instancesGroupRef = useRef<THREE.Group | null>(null)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ const BuildingsModels: FC<AssetProps> = ({
groupedMeshes = null,
textures = null,
}) => {
console.log("CITY MODELS", groupedMeshes)

const [ready, setReady] = useState(false)
const instancesGroupRef = useRef<THREE.Group | null>(null)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ const CityBorder: FC<AssetProps> = ({
groupedMeshes = null,
textures = null,
}) => {
console.log("CITY BORDERS", groupedMeshes)

// Memoize the material to avoid re-creating it on each render
const material = useMemo(() => {
const mat = new THREE.MeshStandardMaterial()
Expand Down
2 changes: 0 additions & 2 deletions src/contentComponents/canvasComponents/CityText/CityText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import * as THREE from "three"
import { BigNameValue } from "../canvasComponents.types"

const CityText: FC = () => {
console.log("CITY TEXT")

const schoolRef = useRef<THREE.Mesh>(null)
const footballRef = useRef<THREE.Mesh>(null)
const jeruzalemRef = useRef<THREE.Mesh>(null)
Expand Down
1 change: 0 additions & 1 deletion src/contentComponents/canvasComponents/Models.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import assetsPath from "../../data/assetsPath.json"
import useGroupedMeshes from "../../customHooks/useGroupedMeshes.ts"

const Models = ({ zoomLevel }: { zoomLevel: ZoomLevel }) => {
console.log("MODELS", zoomLevel)
/* -----------------------------Files------------------------------- */
const cityModelsFile = useGLTF(assetsPath.cityModel)
const modelsAssetsTexture = useTexture(assetsPath.modelsAssetsTexture)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ const TerrainModels: FC<AssetProps> = ({
groupedMeshes = null,
textures = null,
}) => {
console.log("CITY MODELS", groupedMeshes)

const [ready, setReady] = useState(false)
const instancesGroupRef = useRef<THREE.Group | null>(null)

Expand Down
10 changes: 10 additions & 0 deletions src/contentComponents/regularComponents/Menu/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,19 @@ const Menu: FC<MenuProps> = ({ mapRef }) => {
description: (
<div className="space-y-2 text-sm">
{/* Adds spacing between lines */}
<p>
<u>Desktop</u>
</p>
<p>Left Mouse - Move</p>
<p>Right Mouse - Rotate</p>
<p>Scroll Wheel - Zoom</p>
<p>SHIFT + Left Mouse(Drag) - Select location</p>
<p>
<u>Mobile</u>
</p>
<p>One finger - Move</p>
<p>Two fingers - Rotate</p>
<p>Pinch - Zoom</p>
</div>
),
})
Expand Down
1 change: 0 additions & 1 deletion src/sceneComponents/EnvironmentMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { EnvironmentMapControl } from "../helpers/leva"
import assetsPath from "../data/assetsPath.json"

const EnvironmentMap = () => {
console.log("ENVIRONMENT")
const environmentMap = EnvironmentMapControl()

const environmentMapTexture = useEnvironment({
Expand Down

0 comments on commit 38ed0a7

Please sign in to comment.