The models are created using primitive shapes provided by Three.js, such as boxes, spheres, and planes.
- Techonologies Used
- Current Stage of Development
- Features
- Installation
- Usage
- References
- Three.js: A JavaScript library used to create and display animated 3D graphics in the browser.
- JavaScript: The primary programming language used for the project.
- HTML & CSS: Used for structuring and styling the web page.
- npm: Node package manager used for managing dependencies.
- vite: A powerful and efficient tool offering fast build times, real-time updates, and optimized code handling
The project currently features a basic structure of a haunted house with adjustable settings using a GUI.
demo.mp4
- Audio
- Flicker Animations
- Additional objects
To get started, clone the repository and install the dependencies: bash Copy code
git clone https://github.com/GuichoEstrada/Haunted-House.git
cd Haunted-House
npm install
To run the project locally, use the following command to start the development server: bash Copy code
npm run dev
This will start a local server and open the project in your default web browser.
- House: Built using boxes for walls and cone geomtery for the roof.
- Graveyard: Consists of boxes to create tombstones.
- Trees: Modeled using spheres for foliage.
- Ghosts: Still looking for suitable models so I'm using Point Lights for now
- Lights: Various light sources including ambient, directional, point, and spotlights to create a spooky atmosphere.
- Orbit Controls: Allowing the user to rotate around the scene, zoom in and out, and pan.
- Shadows: Implemented using Three.js shadow capabilities.
- Sky: Utilized built in Sky feature of Three.js
- Fog: Added to enhance the eerie atmosphere using Fog feature of Three.js.
- Lighting: Adjustable settings for ambient, directional and point lights
- Floor Displacement: Adjustable floor displacement scale and bias.
- Ghosts: Adjustable colors for the ghosts
- Sky: Sky settings like turbidity, rayleigh, position, etc.
- Fog: Can adjust fog color and density
- Coast Sand Rocks 02 by Rob Tuytel - https://polyhaven.com/a/coast_sand_rocks_02
- Plastered Stone Wall by Rob Tuytel - https://polyhaven.com/a/plastered_stone_wall
- Roof Slates 02 by Rob Tuytel - https://polyhaven.com/a/roof_slates_02
- Classic Brick Broken 06 by Rob Tuytel - https://polyhaven.com/a/castle_brick_broken_06
- Leaves Forest Ground by Dario Barresi & Dimitrios Savva - https://polyhaven.com/a/leaves_forest_ground
- Door by Eren Katsukagi - https://3dtextures.me/2019/04/16/door-wood-001/