Skip to content

A personal website, made using pure HTML, CSS and Javascript and Unity WebGL to showcase custom made 3D models in an interactive way.

License

Notifications You must be signed in to change notification settings

abullard1/Sams-3D-Library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sams-3D-Library

A personal website, made using pure HTML, CSS and Javascript and Unity WebGL to showcase custom made 3D models in an interactive way.

version Last Commit Website Status Website Uptime in Percent License: Apache 2.0

Table of Contents

Website


Information

Context
This project started in summer 2022 after I had finished two projects for university pertaining to 3D modeling with Blender. I wanted to have my own little place on the web where I could showcase some of the 3D models that I had created for these projects, to ensure that they wouldn't just sit on a hard drive somewhere, never to be seen again. 3D models take a lot of time to create; so in my opinion, they deserve all the attention they can get.

Why Vanilla HTML, CSS & JavaScript
Initially, I began with just a regular 2D website, which started out as part of some coursework on HTML and CSS. I thought about reworking the website, making heavier use of frameworks such as Bootstrap or others, but deliberately opted not to, in order to get a clearer grasp of HTML, CSS, and JavaScript, which would benefit me more in the longterm. I believe it is important to get hands-on experience with any new language first, before efficient use of the frameworks and technologies that build on them can be made.

Unity WebGL Version
During the making of the 2D website, I had the idea of also creating an interactive WebGL version of the website in Unity. I have always been interested in game development, which is why I initially picked up 3D modeling in the first place some three to four years ago. I felt like adding a Unity WebGL version of the 3D library was simply the natural next step. The 3D Version also has mobile support. It will automatically detect if you are on a mobile device and enable a mobile UI letting you play using an onscreen joystick and buttons. The 3D Version Unity Project project can be downloaded here.

Current State
Currently, six 3D models are displayed on the website, all of which can be downloaded/purchased on CGTrader and TurboSquid (or ripped from the files of this repository if you're smart). More 3D models will be uploaded further down the line, some of which can be seen under Upcoming Models. I highly appreciate any visits to the Website.


Note: Unity WebGL is not officially supported on mobile devices! The experience may vary across devices.


Showcase

2D Version

2D/3D Selection Page Main Page
2D/3D Selection Page Main Page
Model Inspection Overlay
Model Examination Overlay

3D Version

Introduction Screen 3D Model Hallway
Introduction Screen 3D Model Hallway
Looking at 3D Model Examining 3D Model
Looking at 3D Model Examining 3D Model
Pause Menu Mobile Platform UI
Pause Menu Mobile Platform UI

Upcoming Models

Großer Kopf Military Fast Attack Spaceship Worn/Dirty Laboratory Table
Großer Kopf -Trude Esser Military Fast Attack Spaceship Worn & Dirty Laboratory Table

Known Issues

2D

  • Scrollbar disappearing and not reappearing in overlay

3D

  • 3D Version crashes when changing Texture Resolution Slider back and forth.
  • Window Resolution Setting sometimes causes issues. (More or less added for completeness only anyways)
  • Cursor control will sometimes get handed over back to browser when exiting examination of object. Clicking once will bring control back to the game though.
  • On some Mobile Devices and older browsers an error will be shown when trying to play the 3D Version.
  • On some Mobile Devices a black screen will be shown, or rather, the scene will have no lighting.
  • On mobile: Looking around while first using the joystick not possible. Looking around and then using the joystick works. (Multitouch issue)
  • Sound Reverb not working in WebGL (Not supported).

Credits

Credit goes out to:

  1. @marcusx2 for his free FullscreenWebGL Unity asset.
  2. @SpeedTutor for his ExamineSystemV1 Unity asset, which, while heavily modified, formed the basis of the project.
  3. @QuantumTekSupport for their free QuantumUI Unity asset.
  4. @jhmaverick for his free Virtual Buttons Unity asset.
  5. @dentedpixel for his free LeanTween Unity asset.

About

A personal website, made using pure HTML, CSS and Javascript and Unity WebGL to showcase custom made 3D models in an interactive way.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published