Skip to content

Commit

Permalink
Added some Models of Telephone Booth + Stylish Wine shop + Modern Two…
Browse files Browse the repository at this point in the history
… Storey House and Deleted some Lord Krishna Models
  • Loading branch information
AMAN9876543210 committed Nov 10, 2024
1 parent 03b902c commit a14844f
Show file tree
Hide file tree
Showing 7 changed files with 436 additions and 4 deletions.
Binary file added public/Telephone_comp_opt.glb
Binary file not shown.
Binary file added public/white_silver_Comp_opt.glb
Binary file not shown.
Binary file added public/wine_bar_comp_opt.glb
Binary file not shown.
14 changes: 10 additions & 4 deletions src/ModernCity/City.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ import { LittleKrishna } from './Models/LittleKrishna';
import { AdultKrishna } from './Models/AdultKrishna';
import { AdultKrishnaSitting } from './Models/AdultKrishnaSitting';
import styles from "./City.module.css"
import { Booth } from './Models/Booth';
import { Wine } from './Models/Wine';
import { DreamHouse } from './Models/DreamHouse';
export default function City() {

const [showReader,setShowReader] = useState(true);
Expand Down Expand Up @@ -98,13 +101,16 @@ export default function City() {
<BasketBallStad position ={[30,0.5,63]} scale ={[3.5,3.5,3.5]}/>
<BasketBallStad position ={[-62,0.5,103]} rotation={[0,Math.PI/2,0]} scale ={[2.2,3,3]}/>
<BasketBallStad position ={[-85,0.5,193]} rotation={[0,0,0]} scale ={[2.5,3,3.6]}/>
<Disco position ={[-80,0.5,-80]} scale ={[5.5,5.5,5.5]}/>
{/* <Disco position ={[-80,0.5,-100]} rotation={[0,0,0]} scale ={[5.5,5.5,5.5]}/> */}
<DreamHouse position ={[-75,0.5,-100]} rotation={[0,0,0]} scale ={[0.04,0.04,0.04]}/>
<Booth position ={[-100,0.5,-40]} rotation={[0,89.55,0]} scale ={[2,2,2]}/>
<StreetPeople position={[-79,0.5,270]} scale={[2,2,2]}/>
<StreetPeople position={[-127,0.3,132]} scale={[2,2,2.5]} rotation={[0,Math.PI/2,0]}/>
<GreyTheater position ={[25,0.4,190]} rotation={[0, 90, 0]} scale ={[0.8,0.8,0.8]} />
<TheaterBig position ={[15,2,350]} rotation={[0, 0, 0]} scale ={[1.4,1.4,1.4]} />
<Wine position ={[-144,0.5,0]} rotation={[0, 89.55, 0]} scale ={[0.2,0.2,0.2]} />
<AdultKrishna scale={[3,3,3]} position={[100,1,15]} rotation={[0,-Math.PI/2,0]} />
<AdultKrishna scale={[1,1,1]} position={[-130,1,-10]} rotation={[0,Math.PI/2,0]}/>
{/* <AdultKrishna scale={[1,1,1]} position={[-130,1,-10]} rotation={[0,Math.PI/2,0]}/> */}
<LittleKrishna scale={[.2,.2,.2]} position={[40,1,15]} rotation={[0,-Math.PI/2,0]}/>
<AdultKrishnaSitting scale={[.13,.13,.13]} position={[-153,0.5,137]} rotation={[0,0,0]} />
<AdultKrishnaSitting scale={[.13,.13,.13]} position={[-153,0.5,140.5]} rotation={[0,Math.PI,0]} />
Expand All @@ -114,8 +120,8 @@ export default function City() {
<AdultKrishna scale={[.2,.2,.2]} position={[-19,1,261]} rotation={[0,-Math.PI/2,0]}/>
<AdultKrishna scale={[.2,.2,.2]} position={[-82,1,261]} rotation={[0,Math.PI/2,0]}/>
<AdultKrishna scale={[.2,.2,.2]} position={[-82,1,201]} rotation={[0,Math.PI/2,0]}/>
<AdultKrishna scale={[.2,.2,.2]} position={[-140,1,141]} rotation={[0,Math.PI/4,0]}/>
<AdultKrishna scale={[.2,.2,.2]} position={[-132,1,141]} rotation={[0,Math.PI/2,0]}/>
{/* <AdultKrishna scale={[.2,.2,.2]} position={[-140,1,141]} rotation={[0,Math.PI/4,0]}/>
<AdultKrishna scale={[.2,.2,.2]} position={[-132,1,141]} rotation={[0,Math.PI/2,0]}/> */}
<Building_One position ={[-100,0.1,380]} rotation={[0,0,0]} scale ={[0.007,0.007,0.007]} />
<Modern_VILLA position ={[-70, -1, 50]} rotation={[0,359.7,0]} scale ={[2,2,2]} />
<pointLight position={[35,10,-20]} intensity={1000} color="#fff" target={new THREE.Vector3(0, 0, -1)} />
Expand Down
42 changes: 42 additions & 0 deletions src/ModernCity/Models/Booth.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@


/*
Auto-generated by: https://github.com/pmndrs/gltfjsx
Author: Janis Zeps (https://sketchfab.com/Zeps3D)
License: CC-BY-4.0 (http://creativecommons.org/licenses/by/4.0/)
Source: https://sketchfab.com/3d-models/telephone-booth-ea3e24f9738a49319df879df55752c94
Title: Telephone Booth
*/

import React, { useRef } from 'react'
import { useGLTF } from '@react-three/drei'

export function Booth (props) {
const { nodes, materials } = useGLTF('/Telephone_comp_opt.glb')
return (
<group {...props} dispose={null}>
<group position={[-4.911, -0.164, -5.238]} scale={0.001}>
<mesh
castShadow
receiveShadow
geometry={nodes.mesh_0.geometry}
material={materials.background}
/>
<mesh
castShadow
receiveShadow
geometry={nodes.mesh_0_1.geometry}
material={materials.booth}
/>
<mesh
castShadow
receiveShadow
geometry={nodes.mesh_0_2.geometry}
material={materials.glass}
/>
</group>
</group>
)
}

useGLTF.preload('/Telephone_comp_opt.glb')
112 changes: 112 additions & 0 deletions src/ModernCity/Models/DreamHouse.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
/*
Auto-generated by: https://github.com/pmndrs/gltfjsx
Author: Francesco Coldesina (https://sketchfab.com/topfrank2013)
License: CC-BY-4.0 (http://creativecommons.org/licenses/by/4.0/)
Source: https://sketchfab.com/3d-models/white-silver-green-residence-ec516ba32f03403f97954472c5d4b2cf
Title: White Silver Green Residence
*/

import React, { useRef } from 'react'
import { useGLTF } from '@react-three/drei'

export function DreamHouse (props) {
const { nodes, materials } = useGLTF('/white_silver_Comp_opt.glb')
return (
<group {...props} dispose={null}>
<group position={[-1272.332, -140.7, -987.676]} scale={0.089}>
<mesh
castShadow
receiveShadow
geometry={nodes.mesh_0.geometry}
material={materials.Base_Stone}
/>
<mesh
castShadow
receiveShadow
geometry={nodes.mesh_0_1.geometry}
material={materials.Glass}
/>
<mesh
castShadow
receiveShadow
geometry={nodes.mesh_0_2.geometry}
material={materials.Render_Material_255_255_255}
/>
<mesh
castShadow
receiveShadow
geometry={nodes.mesh_0_3.geometry}
material={materials.Roof1}
/>
<mesh
castShadow
receiveShadow
geometry={nodes.mesh_0_4.geometry}
material={materials.Site_Foundation001}
/>
<mesh
castShadow
receiveShadow
geometry={nodes.mesh_0_5.geometry}
material={materials.Solar_System}
/>
<mesh
castShadow
receiveShadow
geometry={nodes.mesh_0_6.geometry}
material={materials.Stoffa}
/>
<mesh
castShadow
receiveShadow
geometry={nodes.mesh_0_7.geometry}
material={materials.Structure001}
/>
<mesh
castShadow
receiveShadow
geometry={nodes.mesh_0_8.geometry}
material={materials.Tubo}
/>
<mesh
castShadow
receiveShadow
geometry={nodes.mesh_0_9.geometry}
material={materials.VetriLamp}
/>
<mesh
castShadow
receiveShadow
geometry={nodes.mesh_0_10.geometry}
material={materials.Whitello}
/>
<mesh
castShadow
receiveShadow
geometry={nodes.mesh_0_11.geometry}
material={materials.Wood_A}
/>
<mesh
castShadow
receiveShadow
geometry={nodes.mesh_0_12.geometry}
material={materials.wire_000000000}
/>
<mesh
castShadow
receiveShadow
geometry={nodes.mesh_0_13.geometry}
material={materials.Material__592}
/>
<mesh
castShadow
receiveShadow
geometry={nodes.mesh_0_14.geometry}
material={materials.Rubber}
/>
</group>
</group>
)
}

useGLTF.preload('/white_silver_Comp_opt.glb')
Loading

0 comments on commit a14844f

Please sign in to comment.