Page 18: Real Texturing

Spring 2026 Sample Solution

There are three categories of things we need to think about:

  1. The “science” - how do the methods work?
  2. The “engineering” - how do we use the methods in practice? (specifically, in a practical API)
  3. The “art” - how do we use these to create interesting effects?

For 1 (the science), we’ve learned how the methods work in theory. Make sure you understand it.

For 2 (the engineering), we’ve seen how THREE exposes the functionality. We’ll see more of what is going on “under the hood” later when we start to program our own shaders.

For 3 (the art), you’ll need to try it out to try to make cool-looking stuff. Look for examples on the web to inspire you. In this workbook, try to focus on how to use textures to make cool appearances. You will have the opportunity to make cool shapes and motions in future workbooks. So you might want to focus on simple objects (primitives are OK) and simple motions for this assignment.

The exercises in this workbook ask you to try out the features in THREE for fancy texture mapping. We would like you to try to make interesting things to explore what the different types of textures do, but the requirements are pretty minimal for each of the exercises.

Exercise: Make a Real Object!

Textures provide an easy way to make a simple object (like a box) into something more interesting.

Here is a simple example I made - note how simple geometry (it’s basically a box - although I did some extra things to get the cover to overhang the edges) becomes much more interesting with a texture.

05-18-01   view Kinds of boxes:
view - look at the box and experiment with it
examine - look at the code for the box
edit - change the box's content
rubric - several steps are suggested in the rubric page - form elements on page in rubric
   05-18-01.html   05-18-01.js

The example is in 05-18-01.js . There are videos of how I made it. The video uses old-style three.js geometry, but it should give you some ideas.

In this video, I try to make my woodgrained table.

You can also see the book in the Book on Table Demo. Here you can also see how to use a repeating texture to make woodgrain.

Now it’s your turn. Create some real-world object with a texture in 05-18-02.js below. Look around and see if there’s something you want to model: your laptop, a book, etc. This is a good opportunity to incorporate real photos in a texture.

A goal here is to use simple shapes, but more complex textures, to make an object that is interesting. And the important thing is that you make it (so, you need to at least take the photograph yourself). You need to make something other than the Fundamentals of Computer Graphics book.

05-18-02   rubric Kinds of boxes:
view - look at the box and experiment with it
examine - look at the code for the box
edit - change the box's content
rubric - several steps are suggested in the rubric page - form elements on page in rubric
   05-18-02.html   05-18-02.js
Kind Kind of rubric items:
standard - expected from all students
advanced - used to get a better grade
creative - an opportunity to do something creative
levels - rubric item graded by selected achievement level
optional - not required, but encouraged
Description
standard identifiable as a real object
standard texture makes it look like a real object

Then we’ll go on to Next: Page  19 - Advanced Texturing.