Creating basic 3D
scenes for Web using
ThreeJS.
wednesday.is
2
Content
What we’ll be covering
What isThreeJS?
What are some tools that can
help you with 3D stuff?
Creating a basic Scene using
ThreeJS.
Some optimizations that you
can do while creating 3D assets.
Resources.
wednesday.is
What is ThreeJS?
Making the Complex easy!
Problem
The web requires OpenGLES or WebGL
to render anything 3D on the screen.
However WebGLcan only put points,
faces, and other primitive stuff which
require a lot of code.
Solution
ThreeJS handles stuff like scenes, lights,
shadows, materials, textures, 3D math, all
things that you'd have to write yourself if
you were to use WebGLdirectly.
wednesday.is
Before we even startThreeJS, we
need 3DAssets. So here are some
3D tools that you can use!
wednesday.is
Creating a basic 3D Scene
in ThreeJS!
wednesday.is
General stuff that you gotta know
about how the workflow goes in 3D.
wednesday.is
Start by creating a generic markup with a canvas.
wednesday.is
Basic scene setup!
wednesday.is
Setup Camera!
wednesday.is
Setup mesh, materials, and add them to the scene.
wednesday.is
Look what we have!
wednesday.is
Animating the cube to get
the perception of 3
Dimension.
wednesday.is
Request what?
wednesday.is
Are we 3D yet?
https://codepen.io/ihatelactose/pen/poLwmKY?editors=101
wednesday.is
So, what are we
lacking?
wednesday.is
Lights! Camera! Action!
wednesday.is
Let’s add lighting!And change the material.
wednesday.is
Where’s the 3D
Jeez?
https://codepen.io/ihatelactose/pen/abYwgom?editors=101
wednesday.is
Some tips for
optimizations!
wednesday.is
Triangulate!
wednesday.is
A
O
Bake
Shadows!
Few other tips!
I
k
n
o
w
f
r
a
c
t
a
l
s
l
o
o
k
c
o
o
l
!
AnisotropicFiltering
Turbulence kills!
22
Key Takeaways
What we learned
What isThreeJS? Why is it needed!
What are some 3D tools that you can
use!
Setting up a basic scene inThreeJS!
What makes 3D, 3D! Its LIGHTS!
Some optimizations!
Thank you
very much!!!
wednesday.is

Create Basic 3D Scenes Using Three.js