Skip to content

theringsofsaturn/3D-art-gallery-threejs

Repository files navigation

3D Art Gallery Tutorial using Three.js

I made this live coding tutorial about "how to create an interactive 3D Art Gallery using Three.js". This project is perfect for artists or designers to exhibit their artwork portfolios or projects. The full tutorial is almost 8 hours long, and is divided into parts. Please consider subscribing to my YouTube channel if you are interested.

HELP!

First of all, use GitHub commits to mark our progress, so you can easily follow along and see the project evolve. So, to use the initial exact Three.js module I am using, go to "Commits" section of the GitHub repository and scroll down to the first commits, and download that version of the code, then step by step review and compare the other versions of the code. If you don't know how to do that, follow these instructions:

Go to my repository, click "commits", you will see all the commits list. Then scroll down to the first commit. On the right side of each commit name, you will see three small icons:

  • a code number --> which if you hover on it says "view commit details".
  • a two square icon --> which if you hover says "view full SHA"
  • '< >' this icon --> which if you hover on says "browse repository at this point".

Click this last icon I mentioned, '< >'. You will be redirected to the exact point in time of this project. You can then download the repository as you normally do with the green button "Code".

UPDATE!

Dear followers and enthusiasts,

I've been made aware of an issue many of you faced regarding the floor and ceiling textures appearing black. After a thorough investigation, I've identified the root of the problem. The high-resolution 4K textures we recently introduced are relatively large files. To manage such large files, GitHub uses a system called Large File Storage (LFS). However, there's a storage quota associated with LFS, and it seems we've reached that limit. This led to the textures not being stored correctly, resulting in broken image links in the downloaded projects.

The solution at the moment:
Download the 4K textures (or 2K /1K for better performance. I am currently using the 1K textures) and the 3D models yourself and add them in your project woth the correct path.

The Office Ceiling material in 4K: https://ambientcg.com/view?id=OfficeCeiling005

The Wood Floor in 4K: https://ambientcg.com/view?id=WoodFloor040

The Walls in 4K: https://polyhaven.com/a/leather_white

3D Model Statue: https://sketchfab.com/3d-models/100kz11-aphrodite-kallipygos-statuette-c01ba617ec83491195146583b70e3df9

Installation

You need Node.js installed on your computer. And VSCode as an Editor. Download link:

After cloning, or downloading the zip file, on GitHub (green button <> Code) open your terminal, and run:

  npm install

to install all the dependencies. "node_modules" folder will appear at the left in the Explorer files in VsCode.

Then run:

  npx vite

to run the local server. You'll see the URL address and the info help. Like for example:

  VITE v4.3.1  ready in 1759 ms

  ➜  Local:   http://123.4.5.6:7890/
  ➜  Network: use --host to expose  ➜  press h to show help
Screenshot 2024-03-23 at 23 03 41 Screenshot 2024-03-23 at 23 01 41 Screenshot 2024-03-23 at 20 16 09 Screenshot 2024-03-22 at 18 51 31

YouTube Video

Click here!

Authors

About

This is an interactive 3D art gallery made with Three.js, perfect for artists or designers to exhibit their portfolio of artworks and projects.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published