FHTW Berlin

FB 4
Internationale Media and Computing
MeSoII: Media Software II
Sommersemester 2002


Exercise 10: Lighting and Textures

3D seems to be something you really enjoy, so more of the same! Be aware that we will be doing the Advanced Imaging Tutorial next week. I can't get it to work on my XP system, but it *does* work in the lab. So I would try it out this week and see if any of the applets load at home. If not, try installing it. If that does not work, plan on working in the lab next week.


  1. 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?
  2. What is the difference between the four Light classes?
  3. (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!)
  4. Now go on to Chapter 7. Read the first sections and then try out the SimpleTextureApp.java.
  5. 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.
  6. (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.


Debora Weber-Wulff (weberwu@fhtw-berlin.de)