Page 2: Practice: Cars

Spring 2026 Sample Solution

To review what we’ve done, we’re going to start with an exercise: make a vehicle (or two).

The pedagogical goals of this exercise are to give you practice defining shapes with meshes and adding textures to them. and gain more practice with the class framework. A reminder: the framework’s documentation is in its comments, but those comments are compiled into a more readable format here.

In the future, you will make Graphics Town, and you will probably want vehicles inside of the class software framework.

So on this page, please make a vehicle. It has to have wheels on the ground. Other than that, there are few restrictions; you can use a primitive (such as a box) for the body. The vehicle must either have a distinct shape or texture to make it look like a car/truck/train.

If you load a model, it must be one that you made. Do not simply find a car model on the web.

Here are some simple ones from the 2000 Graphics Town I mentioned. You should be able to make something nicer.

To get points for this page, you must make a vehicle in the class software framework. That is, it must be defined as a GrObject. You can make 1 simple car. Or you can make something fancier. Don’t worry about making it drive around (that’s a future workbook). You can use this as an opportunity to explore how to make shiny materials. Or not.

Do not re-use the construction equipment for this assignment. The cars you use for this assignment should be new and not from a previous assignment or workbook.

06-02-01   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
   06-02-01.html   06-02-01.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 Car or Vehicle (looks like a car or other vehicle)
advanced Has texture or materials
creative Exceptional Vehicles (more than one, interesting)

You may want to reuse these vehicles for a future assignment, so effort you put into making nice vehicles now will pay off in future workbooks. You can make more vehicle types later - but more work now may pay off later.

Next: Page  3 - Some Foundations