Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
js
A B O U T T HE A U T H O R
RICHARD MAT T K A
w: richardmattka.com
t: @synergyseeker
job: Creative director,
designer, developer
areas of expertise:
Shaders, VFX, WebGL
THREE.JS
In this article we’ll be looking at how you can planes or spheres, simulating virtually any type of
add video textures to your 3D scenes. You do effect you might need.
this by loading them as a special texture class and You can layer video on top of another material
applying them to various 3D meshes. The ability to to create effects that look as though animations
update the texture of each animation frame enables are under glass. You could fill an aquarium with
your video to play seamlessly. fish, have beautiful animated skies or detailed
Using a 3D plane, you can easily create a movie backgrounds. And with the new playsinline option for
theatre scene, a video playing on a television video elements, this will work on mobile devices too!
screen or detailed information panels for a sci-fi 3D
interface. You can modify the geometry of a plane WEBGL 3D FOR THE WEB
to curve it, giving it a unique look like the inside of WebGL is a graphics language designed for the web. It
a helmet, reminiscent of an Iron-Man-style HUD. is a subset of OpenGL but optimised for the needs and
We’ll do this in the tutorial just ahead! limitations of the browser. It can create amazing 3D
Another great use for video is the ability to pre- scenes combining models, lighting, geometry, GLSL
render animations in tools like Cinema 4D or After shaders and interactivity all inside an HTML <canvas>
Effects and then easily integrate them into your element. WebGL is also a web-standard. So, whether
scene. Complex animations could play on various your goal is mobile or desktop, it will get it done.
76 march 2020
three.js
march 2020 77