home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / next / programm / 7309 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  1.1 KB

  1. Path: sparky!uunet!wupost!micro-heart-of-gold.mit.edu!bu.edu!it-next2.bu.edu
  2. From: ambi@it-next2.bu.edu (Michael Amirault)
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: Shadows and Tall Trees... (RenderMan)
  5. Message-ID: <102588@bu.edu>
  6. Date: 19 Nov 92 16:17:25 GMT
  7. Sender: news@bu.edu
  8. Lines: 27
  9.  
  10.  
  11.  Todays RenderMan question:  How's does one get shadows?? And why
  12. isn't automatic? (i.e. You have a wall, you put a spotlight behind
  13. the wall, why isn't there a shadow??
  14.  
  15. >From reading portions of the RenderMan Companion, it seems that
  16. you have to create a shadow map first and then render the scene
  17. again and use the shadow map to get the shadows.
  18.  
  19. I tried the following in my RIB file:
  20.  
  21. Display "test.z" "file" "rgbz"
  22.  
  23. This seems to create the shadow map file (I assume). But then I can't
  24. load in the shadow map file in the second pass. I've tried stuff like:
  25.  
  26. Declare "shadowname" "string"
  27. MakeShadow "test.z" "myShadow"
  28. LightSource "shadowspot" 5 "shadowname" "myShadow" "from" [0 0 0]
  29.     "to" [0 1 0]
  30.  
  31.  Any thoughts?
  32.  
  33. Mike
  34.  
  35. ps. You get bonus points if you can identify what musical group wrote
  36. the song in the subject field..  :-)
  37.