home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / next / programm / 7154 < prev    next >
Encoding:
Internet Message Format  |  1992-11-11  |  1.3 KB

  1. Path: sparky!uunet!hela.iti.org!usc!news.aero.org!strauss
  2. From: strauss@aero.org (Daryll J. Strauss)
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: Re: RIBs, RenderMan, and Textures
  5. Date: 11 Nov 1992 21:11:57 GMT
  6. Organization: The Aerospace Corporation
  7. Lines: 26
  8. Message-ID: <1drsutINNpea@news.aero.org>
  9. References: <101558@bu.edu>
  10. NNTP-Posting-Host: armadillo.aero.org
  11.  
  12. In article <101558@bu.edu> ambi@it-next2.bu.edu writes:
  13. >
  14. > I've been messing around with Renderman and RIB files for a couple
  15. >of days and need some help. I can pretty much get everything to work
  16. >except textures.  I've tried everything and can't get a simple texture
  17. >to display from a RIB file I created. I can use 3DReality and add a
  18. >texture fine, but I can't do it from my RIB file.
  19. >
  20. > I've tried things like:
  21. >
  22. > Surface "SD_Simple_tx" "txmap" "/NextLibrary/Textures/brick.tex"
  23. > Surface "texmap" "texname" "brick"
  24.  
  25. The minimal useful call to the texture map shader would be:
  26.  
  27.     Surface "texmap" "texname" "brick.tx"
  28.  
  29. Notice that you need the extension on the brick file and that the
  30. extension is tx. RenderMan will complain that it doesn't know the token
  31. "texname" if you do this, so you should declare it:
  32.     Declare "texname" "string"
  33. prior to the call to Surface.
  34.  
  35. You can compile your own shaders with the "shader" program in
  36. /usr/prman. Doing 'man shader' should tell you all you need to use it.
  37.  
  38.