|
|
FB 4
Internationale Media and Computing
MeSoII: Media Software II
Sommersemester 2003
|
Exercise 8:
Lighting and Textures
Pick up where you had to leave off last week, and continue on for another 2 blocks of time. Use your fantasy to make up other things to try, if you want to. The important thing is to describe your process - what did you do in the lab?
- Please turn to Chapter 6, Lighting. Read about
Shading. Copy out the code for the Simple Lights Example and see if you can get
it to work. Now add a DirectionalLight to the content branch graph of the scene
graph. What does your scene look like now?
- What is the difference between
the four Light classes?
- (Only for the bored) Play around with the shadow
class! Using ShadowApp.java as a starting point, find situations where the shadow
polygon produced by SimpleShadow is not correct, then fix SimpleShadow to make
it work. (You could spend many
hours working on this!) - Now go on to
Chapter 7. Read the first sections and then try out the SimpleTextureApp.java.
- Play
with some of the other examples in the texture subdirectory and report on what
you got to work (with screen shots). I am interested in the process, that is,
what you tried, what worked, what didn't work.
- (Only for the bored) Now
go on and read the chapter on Multiple Levels of Textures. Can you get any of
this to work? How can multiple textures be applied to a single visual object?
How can you apply different textures to the opposite sides of the same visual
object? How can you apply different textures to the lines and the surfaces of
a polygon?
Next week we will start work on our own Photoshop-like
tool :-)
The URL to your report, which will describe what you did during
the exercise and include links to your code, is due in my email box next year
in week 2. This means Tuesday at 8.00 for Group 1 and Thursday at 12.00 for Group
2. Do not forget to put your names on the report! When you send the URL to me,
include your partner in the CC. That way I don't get either 2 emails or none,
while each thought the other was doing it. And when I answer you, I can immediately
answer both of you without having to look up your preferred email account.
Copyright 2003,
Debora Weber-Wulff
(weberwu@fhtw-berlin.de)