
The scale is set to approximately what it would be in the real world I don’t know if this is important, but it feels like the right thing to do, so why not?
Css colorblender how to#
The 3D model for this tutorial is hosted and included within the JavaScript, so don’t worry about downloading or having to do any of this unless you’d like to look further into using Blender, and learning how to create your own model. Here’s some information about how our chairs 3D model is authored. This isn’t a 3D modelling tutorial, but I will explain how the model is set up in Blender, and if you’d like to create something of your own, change a free model you found somewhere online, or instruct someone you’re commissioning. If you want to skip this part entirely, feel free to do so, but it may pay to read it just so you have a deeper understanding of how everything works. That being said, each time we paste some HTML, I’ll explain quickly what the CSS does.

The CSS really is just for the dressing around the app, it focusses on the UI only. I’m going to do something a little bit different here in the interest of actually teaching you, and not making you copy/paste parts that aren’t all that relevant to this tutorial, we’re going to start with all of the CSS in place. This tool is built inspired by the Vans shoe customizer, and uses the amazing JavaScript 3D library Three.js.įor this tutorial, I’ll assume you are comfortable with JavaScript, HTML and CSS. See the demo in action: 3D Model Color Customizer App with Three.js A quick introduction

In this tutorial you’ll learn how to create a customizer app that lets you change the colors of a 3D model of a chair using Three.js.
