Skip to content

This is a Website that allows people to design their own t-shirt on a 3D t-shirt , This is done by using Three js

License

Notifications You must be signed in to change notification settings

PHANTOMGOD2OP/ThreeJs-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

<<<<<<< HEAD

AI Three.js T-Shirt Designer JSM

screenshot-hompage

Description

This project was built using a tutorial by JavaScript Mastery on youtube.

This is a 3D T-Shirt Designer application where users can design their own T-shirts using user-uploaded patterns and logos. The website includes technologies such as ThreeJS, React Three Fiber, TailwindCSS, Framer Motion, and OpenAI.

⭐ Note: This website may require some time for the server to spin up and the 3D shirt to render. In addition, the AI functionality of this app may become unresponsive due to an inactive key, however users can still upload their own images.

Table of Contents

Installation

  1. Clone the repository.
  2. Install the dependencies in both the client and server folders by running npm install.
  3. Create a .env file in the server folder and add the following environment variables:
OPENAI_API_KEY
  1. Start the client by running npm run dev.
  2. Start the server by running npm start.
  3. Navigate to http://localhost:8080 to view the project.

⭐ Note: An active OpenAI api key is required for the AI funtionality to work.

Features

  • Customization: Users can upload different patterns and logos to design their T-shirts.
  • 3D View: The T-shirt design is displayed in a 3D view, allowing users to see how it looks from different angles.
  • OpenAI Integration: The website uses OpenAI to apply AI-generated patterns and logos based on user prompts.
  • Save and Share: Users can save their T-shirt designs as a downloadable image.

Screenshots

screenshot-homepage2

screenshot-customizer

Technologies Used

  • ThreeJS: A JavaScript library for creating 3D graphics in the browser.
  • React Three Fiber: A React renderer for ThreeJS.
  • TailwindCSS: A utility-first CSS framework for rapid UI development.
  • Framer Motion: A library for creating animations in React.
  • OpenAI: A platform for building and deploying AI models.

Contributing

If you'd like to contribute to this project, please fork the repository and submit a pull request.

Links

Introduction

Many large corporations already use 3D graphics to showcase their products. Here is a repo that helps you to understand how to use threejs and to build your own ThreeJS 3D product website and infuse it with the power of artificial intelligence!

Libraries Used

  • ThreeJS - a powerful 3D graphics library for rendering and animating the 3D model
  • React Three Fiber - a popular library for creating 3D graphics with ThreeJS in React
  • TailwindCSS - a popular utility-first CSS styling framework
  • Framer Motion - the most popular library used to bring your React website to life with animations

You'll also learn how to:

  • Load, create and customize stunning 3D models and geometries with various lights, as well as understand the 3D world with a camera and positioning of an object in space.
  • Make your code reusable and scalable using Higher Order Components (HOCs) and other industry-standard best practices
  • Add custom color and file support.
  • Generate and use images through DALLE AI
  • Download the resulting t-shirt model image
  • Ensure responsiveness across all devices and improve your site's performance

4d6fb1ddd87618deb14f3f18328918530ccfd088

About

This is a Website that allows people to design their own t-shirt on a 3D t-shirt , This is done by using Three js

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published