Giter Site home page Giter Site logo

mitchcamza / threejs-lighting-showcase Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 21 KB

A comprehensive Three.js project showcasing advanced lighting setups, including ambient, directional, hemisphere, point, rect area, and spotlights. This project demonstrates my skills in 3D graphics and interactive lighting controls.

Home Page: https://three-js-lighting-showcase.vercel.app

License: MIT License

HTML 3.03% JavaScript 95.64% CSS 1.33%

threejs-lighting-showcase's Introduction

Three.js Lighting Showcase

Screenshot 2024-05-25 at 12 18 33

A comprehensive Three.js project showcasing advanced lighting setups, including ambient, directional, hemisphere, point, rect area, and spotlights. This project demonstrates my skills in 3D graphics and interactive lighting controls.

Live Demo

https://three-js-lighting-showcase.vercel.app

Features

  • Ambient Light: General lighting for the scene with adjustable intensity and color.
  • Directional Light: Parallel light rays suitable for simulating sunlight, with position and helper controls.
  • Hemisphere Light: Gradient sky and ground lighting with customizable colors.
  • Point Light: Omni-directional light source with distance and decay settings.
  • Rect Area Light: Rectangular light with width, height, and position controls.
  • Spot Light: Focused light beam with adjustable angle, distance, and penumbra.

Installation

To run this project locally, follow these steps:

  1. Clone the repository:
    git clone https://github.com/yourusername/threejs-lighting-showcase.git
  2. Navigate to the project directory:
    cd threejs-lighting-showcase
  3. Install the dependencies:
    npm install
  4. Start the development server:
    npm run dev

Usage

Open the project in your web browser at http://localhost:5173 (or the port specified in your setup). You can interact with the lighting controls through the GUI to see the effects in real-time.

Technologies Used

  • Three.js - JavaScript 3D Library
  • lil-gui - Lightweight GUI for adjusting parameters
  • Stats.js - Performance monitor for JavaScript
  • OrbitControls - Control the camera with mouse interactions

Screenshots

Screenshot 2024-05-25 at 12 17 56 Screenshot 2024-05-25 at 14 06 00

Contributing

Contributions are welcome! If you have suggestions or improvements, please create an issue or submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.


This project is a part of my portfolio showcasing my skills and learning journey in 3D graphics and interactive web development.

threejs-lighting-showcase's People

Contributors

mitchcamza avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.