Page 7: Graphics Town Overview
Spring 2026 Sample Solution
Overview
The goal of this project is to create a town. It has to be a living town, with things moving around in it. We will provide you with a starter framework. However, you must add the contents of the town.
We hesitate to tell you what to do, since students in the past have come up with some really creative things. We’ve seen cities with skyscrapers, space cities with flying saucers, tropical islands, jungles, medieval towns, a ski area with lifts and skiers, a Harry Potter city with flying broomsticks, farms with cows and chickens, farms where flying saucers came and abducted the cows, … There are gallery pages with some old projects if you want some inspiration.
If this sounds like it’s arbitrarily open-ended, you have the right idea. Clearly, you could make this as fancy as you want. Our goal is to give you the opportunity to demonstrate your competence at writing 3D graphics programs, as well as an opportunity to experiment with some more advanced topics that you think are interesting. However, we encourage you to focus on the core requirements first.
The hard part in specifying this assignment is providing grading criteria. The short version: do enough cool stuff and document it. We want students to be creative and try things out, but also focus on graphics aspects in their projects. Previous versions of the assignment had long, complicated lists of grading criteria. This semester, it’s simpler, but there are still lots of options listed.
You will create your town by building on top of the “Graphics Town Framework” that we will provide. You have been using this framework over the past several workbooks. In fact, you can take objects from prior workbooks and put them in your town. When you try the example, you will notice that there are some additional features of the framework that you haven’t used yet (like the ability to ride objects or look at specific objects) - these will make it easier for us to see things in your world.
All of the requirements are objects that you add to the framework (you should have experience doing this from prior assignments). Some requirements are specific, while others are more broad.
Requirements
The HTML page has a view of your town that allows the user to explore and see everything. An appropriate interface is provided by the framework. The initial repository you start with provides a simple “world.” You need to change that simple world into something more interesting. You will need to add new objects (and probably remove the ones that are there). You will need to arrange the objects in a meaningful way. You will need to give behaviors to at least some of the objects. We use the term “behavior” for the code that makes the object move and do stuff.
Old versions of the assignment gave specific numbers (e.g., this many objects and that many behaviors). However, even these quantitative measures were problematic: we couldn’t measure and there were lots of exceptions. Is one very cool thing worth many simple ones? Does a particle system count as one big object or a lot of small ones? This year, we are avoiding bean counting. The rubric just has levels.
The requirements:
-
The framework interface must still work. This includes the ability to highlight and ride objects. Objects should have meaningful names so they can be selected in the interface.
-
You need to have a sufficient number of objects (in your scene) and different kinds of objects. These should be objects that you created.
-
You need to have a sufficient number of behaviors and kinds of behaviors. Your town must be alive with enough stuff moving, and things moving in different ways.
-
Your town must look like a reasonable scene - it can’t just be a collection of random objects placed haphazardly (as the sample scene is). We will ask you what your “theme” is.
-
You must also provide documentation by filling in the forms of the workbook and required videos. This is very important! We cannot give you credit for things that you do not document!
-
Your program needs to run at a reasonable frame rate on a testing computer. Not all of the course staff have fast computers with fancy GPUs. Don’t go too overboard with excessive numbers of objects or huge models. Also, please be careful with how much stuff you put into your repository.
Collaboration: Use, Re-Use and Attribution
You must complete this assignment yourself. We are not allowing students to work in groups.
For this assignment, we do allow you to use pieces that you have made for prior assignments without attribution. However, there are a bunch of rules for this.
You must give attribution for anything that you do not make yourself and provide sufficient documentation to show that you understand the code. If you find it on the web, you must give a link. If you get it from someone else, you must explicitly name them in your documentation. You must have permission to use anything that you did not make yourself. If you find it on the web, make sure that it has an open license. If you get it from someone else, make sure it is OK with them. If your work is based on a tutorial, online document, or something like that, please specify it in the textbox.
You are encouraged to use pieces from your old workbooks for this assignment. In the past, you’ve been using the Graphics Town framework to make houses, cars, shiny objects, amusement park rides, … You need to make some new stuff, but you are also encouraged to use old stuff as well. The goal is to have lots of stuff. In fact, some of your 2D assignments can be converted (the fireworks and train are good candidates).
You may use art assets (e.g. 3D model files and images) that you obtain online. If you use a model or texture (or any other “asset”) from the web, make sure you have the legal right to use it, and document where it came from when you give attribution. Note that an object loaded from a 3D model file fulfills a requirement, but not all of your objects can be files you obtained.
History
The Graphics Town Project has a long history (since 2000, and students have generally liked it over the years. The history is described on this 2014 page. That page also discusses the old C++ framework code (which you don’t have to look at). The assignment is described at the 2014 Graphics Town Project Page. 2014 was the last year of the C++ version of the assignment.
The 2000 Graphics Town Assignment Page is an interesting historical artifact. Things have come a long way in 20 years.
Next: Page 8 - Graphics Town Hints