Skip to content

MrShameer/ThreeJS-WebGL-Template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic ThreeJS/WebGL Tutorial & Template

Feel free to take the code. I have provided comments throughout the code and simple steps on how to use it

Fluid SimulationSpawning ModelsHexagon Grid

Fluid Simulation

Things you need to know

  • Coding inside index.html is basic
  • Download script.js
  • You can try changing "mouseover" at line '1379' in script.js to "mousedown"
  • You can also try modifying the config at line '48-74' to suit your need
  • Tutorial

Spawning Models

Things you need to know

  • Download script.js
  • Here you can modify the threejs code to suit your need (I have left some comments in the code)
  • If you want to spawn bunch of different models then you can make a folder for all ther models and make a php code that gets all that model and give it to the three js code for it to spawn Like This

Hexagon Grid

Things you need to know

  • Download index.html
  • You can change the frustumSize at line 17 to change how many hexagon you want on the screen
  • Here you can modify the threejs code to suit your need (I have left some comments in the code)

About

ThreeJS website Templates to use

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published