Skip to content

Voxxer3D is a 3D Voxel World Rendering Engine written from "scratch" utilizing the WebGL Interface.

Notifications You must be signed in to change notification settings

j-2k/Voxxer3D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Voxxer3D

Voxxer3D is a 3D Voxel World Rendering Engine written from "scratch" utilizing the WebGL Interface.

Project Requirement Notes

Building the project

  1. Enter the correct directory WebGL-Trial/webgl-main
  2. Install dependencies using npm i in your terminal
  3. Run & start the project using npm run dev in terminal again
  4. The website should automatically open on localhost:5173! (Check the terminal incase its a different port! If it is taken Vite will automatically try the next available port.)

My Platform, Versioning, & Dev environment

I will list what I used, just incase for anyone wondering what I used/platform choice to make this project.

  • Mac (Sonoma 14) & Windows 10
  • Visual Studio Code / Cursor
  • npm version npm -v 10.8.2
  • node version node -v v20.17.0
  • nvm version nvm -v 0.39.0

Project Dependencies

  • GL-Matrix
    • X
  • Typescript
    • For obvious reasons.
  • Vite
    • Vite fixed many issues I had previously.
  • WebGL
    • Make sure your browser/machine supports WebGL!
  • Old/Previous Packages (IGNORE THIS)
    • Was using lite-server & watcher (replaced by vite).

Guide to run Typescript code locally in VSC

SKIP THIS IF YOU DONT CARE ABOUT COMPILING PURE TS CODE BY ITSELF!

  1. Pre-pre-requsite note, please if you are on windows just use a cmdprompt terminal in VSC & not powershell, for some reason powershell was auto defaulted for me & it made things worse.
  2. Pre-requsites have nodejs & npm check by doing:
    • mac/terminal > node -v && npm -v
    • windows/powershell > node -v ; npm -v
    • windows/cmdprompt > node -v && npm -v
  3. Install typescript compiler globally via npm npm install -g typescript
  4. Compile typescript code tsc filename.ts
  5. Run compiled javascript code node filename.js
    • tsc converts your TS to JS & ultimately we just run the JS file, you can do all this with just this 1 command that just merges the two together, check below:
      • mac/terminal > tsc filename.ts && node filename.js
      • windows/powershell > tsc.cmd filename.ts ; node filename.js
      • windows/cmdprompt > tsc filename.ts && node filename.js

Resources

Graphics Rendering Pipeline Process

Very important, I will write this out once I fully/almost understand everything in the pipeline.

Important Computer Graphics Concepts

This is here to list important topics & showcase some things I went through whilst learning CG & WebGL!
I want to make this clear, but im trying to learn more about CG rather than WebGL right now, since if you know CG you will adapt to any graphics specification!

Progress Log

  • Following the guide of WebGL Fundamentals on https://webglfundamentals.org/
  • Showcasing my progress through the guide. I'm mostly going by order but sometimes I skip around.

Part 1 - Interpolated Triangle

Image Description
Fully refactored the backend from the ORIGINALLY forked repository (Webgl-trial)!

About

Voxxer3D is a 3D Voxel World Rendering Engine written from "scratch" utilizing the WebGL Interface.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published