CS559 Fall 2003 |
|
Some more advanced topics for Project 3...There are lots of things that you probably will not have time to get to. If you're fealing ambitious, try some of these. Information on these topics (and many more) can be found by searching the web. Or feel free to ask the instructor or TA for resources to learn about them. CullingYou can spend a lot of time making nice objects for your world, but if it doesn't draw quickly enough, ... In order to be able to look "animated" you must be able to redraw your town many times per second. Hopefully, your town will be big and complex enough that even with a fast computer you cannot draw every object in the world all of the time. Instead, you must avoid drawing objects (or simulating the behavior of objects) that you cannot see. While clipping and z-buffering will hide objects that you cannot see, if you can figure out a way to decide even faster that there will be no-way to see an object, you can save time. Doing culling well is a difficult topic. The trick is to quickly rule out large portions of the geometry in ways that are faster than simply trying to draw each piece and let culling and z-buffering decide. Computer games and simulators use many fancy tricks to quickly rule out lots of the geometry. Here are some simple methods you might want to implement:
When culling is implemented correctly, the user should not notice (because you are only throwing away things that can't be seen). If you implement a culling method, you should provide some way for us to tell that it works. For example, you can give the user the opportunity to turn it on and off so they can see how much it helps. Level of DetailAn optimization related to culling is level of detail. That is, sometimes we draw simpler versions of objects if we want to save time. For example, if an object is far away (so it appears small) we might want to save time by drawing a simplified version of it. Or, if we decide that we simply do not have time to draw the complex version, we draw a simplified version. As with culling, you should provide the user with some way to see that it is working. You may want to allow the user the option of controlling what levels of detail are used (in addition to letting the system decide). Curved SurfacesWe described various ways to make curved surfaces in class - the main ways are tensor product surfaces and subdivision. Because we didn't have enough time to do a project on either of these, you might want to try to implement them (I would recommend subdivion surfaces - they're easier. Loop surfaces or Butterfly surfaces are probably the easiest). Some possibilities: make some nice smooth shapes (your cars can be nicer than boxes!). Make something that when you click on an object in the world, it gets subdivided and smoothed (this is a good way to see that subdivison works). Particle EffectsMake rain, snow, dust storms, fireworks, a fountain - all involve having lots of little pieces that move around independently. Look up "particle systems" on the net. TerrainYour town doesn't have to be flat - try giving it hills and valleys and mountains. You could use Fractals to generate mountains. WaterSimulating good looking water is hard. However, you could do a simple hack to make something simple. Make a river and use an animated texture to make it moves. Make simple waves with sinusoids to put waves in your lakes and oceans. Stylized RenderingUse NPR rendering techniques to make your town more interesting looking. Consider making it look like a cartoon, or a line drawing, or a technical illustration, or ...
|
|