This project is planned to have different interactive 3D Titan Monsters models and Currently showcases a 3D model of Godzilla using Three.js with react-three-fiber in a Next.js application. The model performs animations, reacts to mouse clicks, and changes the GodZilla and text color based on user interactions.
- 3D model rendering with Three.js and
react-three-fiber - Animated Godzilla model with click-triggered animation and sound
- Dynamic text and GodZilla color changes
- Smooth transitions and interaction handling
- Handle camera angles with mouse (
hold right or hold leftclick)
Before you begin, ensure you have met the following requirements:
- You have installed Node.js and npm
- You have a modern web browser (Chrome)
- Clone the repository:
git clone https://github.com/krish4uu/threeJs-monsters-world.git
cd threeJs-monsters-world
- Install dependencies:
npm install
- Create
.env.localfile at root:
NEXT_PUBLIC_DEV = true
- Start the development server:
npm run dev
- Open your browser and navigate to:
http://localhost:3000
- Click on the Godzilla model to trigger the animation and sound.
- The text and GodZilla's color will change to
sky-bluewhile the animation is playing. - After the animation completes, the colors will smoothly transition back to their original states.
GodZilla.mov
- GodZilla GLB Model From:
https://sketchfab.com