Thread View: comp.sys.next.programmer
7 messages
7 total messages
Started by Mike Amirault
Wed, 11 Nov 1992 19:24
RIBs, RenderMan, and Textures
Author: Mike Amirault
Date: Wed, 11 Nov 1992 19:24
Date: Wed, 11 Nov 1992 19:24
20 lines
1083 bytes
1083 bytes
I've been messing around with Renderman and RIB files for a couple of days and need some help. I can pretty much get everything to work except textures. I've tried everything and can't get a simple texture to display from a RIB file I created. I can use 3DReality and add a texture fine, but I can't do it from my RIB file. I've tried things like: Surface "SD_Simple_tx" "txmap" "/NextLibrary/Textures/brick.tex" Surface "texmap" "texname" "brick" ... Does anyone know how to do this? Does anyone have any docs on the RIB syntax? I bought the RenderMan Companion book but that doesn't really help. Also, does anyone know how to compile shader function source to a *.slo file? Thanks for the help, Mike
Re: RIBs, RenderMan, and Textures
Author: John Soward
Date: Wed, 11 Nov 1992 20:45
Date: Wed, 11 Nov 1992 20:45
28 lines
1721 bytes
1721 bytes
Mike Amirault writes
->
-> I've been messing around with Renderman and RIB files for a couple
-> of days and need some help. I can pretty much get everything to work
-> except textures. I've tried everything and can't get a simple texture
-> to display from a RIB file I created. I can use 3DReality and add a
-> texture fine, but I can't do it from my RIB file.
->
-> I've tried things like:
->
-> Surface "SD_Simple_tx" "txmap" "/NextLibrary/Textures/brick.tex"
-> Surface "texmap" "texname" "brick"
-> ...
->
-> Does anyone know how to do this? Does anyone have any docs on the
-> RIB syntax? I bought the RenderMan Companion book but that doesn't
-> really help. Also, does anyone know how to compile shader function
-> source to a *.slo file?
->
well, I can answer the last question....
/usr/prman/sharder shadercode
man shader for more info....
--
________________________________________________________________________
/ 'The midnight sun will burn you up" -The Cure, Piggy in the Mirror /
/ soward@ms.uky.edu | soward@inslab.uky.edu (NeXT Mail) /
/_______________________________________________________________________/
Re: RIBs, RenderMan, and Textures
Author: Erik C. Sowa
Date: Wed, 11 Nov 1992 21:11
Date: Wed, 11 Nov 1992 21:11
12 lines
948 bytes
948 bytes
>>>>> "Mike" == Mike Amirault <ambi@it-next2.bu.edu> writes: Mike> I've tried everything and can't get a simple texture Mike> to display from a RIB file I created. I can use 3DReality and add a Mike> texture fine, but I can't do it from my RIB file. I haven't tried this, but you could apply a texture to a shape in 3DReality, save the result as a RIB file, and study that output for clues. -- erik sowa (sowa@amdew.llnl.gov)
Re: RIBs, RenderMan, and Textures
Author: Daryll J. Strauss
Date: Wed, 11 Nov 1992 21:11
Date: Wed, 11 Nov 1992 21:11
25 lines
1413 bytes
1413 bytes
In article <101558@bu.edu> ambi@it-next2.bu.edu writes: > > I've been messing around with Renderman and RIB files for a couple >of days and need some help. I can pretty much get everything to work >except textures. I've tried everything and can't get a simple texture >to display from a RIB file I created. I can use 3DReality and add a >texture fine, but I can't do it from my RIB file. > > I've tried things like: > > Surface "SD_Simple_tx" "txmap" "/NextLibrary/Textures/brick.tex" > Surface "texmap" "texname" "brick" The minimal useful call to the texture map shader would be: Surface "texmap" "texname" "brick.tx" Notice that you need the extension on the brick file and that the extension is tx. RenderMan will complain that it doesn't know the token "texname" if you do this, so you should declare it: Declare "texname" "string" prior to the call to Surface. You can compile your own shaders with the "shader" program in /usr/prman. Doing 'man shader' should tell you all you need to use it.
Re: RIBs, RenderMan, and Textures
Author: Michael B. Johnson
Date: Thu, 12 Nov 1992 05:46
Date: Thu, 12 Nov 1992 05:46
47 lines
1967 bytes
1967 bytes
Mike Amirault writes > > I've been messing around with Renderman and RIB files for a couple > of days and need some help. I can pretty much get everything to work > except textures. I've tried everything and can't get a simple texture > to display from a RIB file I created. I can use 3DReality and add a > texture fine, but I can't do it from my RIB file. > > I've tried things like: > > Surface "SD_Simple_tx" "txmap" "/NextLibrary/Textures/brick.tex" > Surface "texmap" "texname" "brick" > ... > I'll take the quickies, since I'm about to go home for the evening: > Does anyone know how to do this? Does anyone have any docs on the > RIB syntax? I bought the RenderMan Companion book but that doesn't > really help. RIB came out after the Companion was published. Pixar (I believe) still sells copies of the RIB spec - it's Rev 3.1 (NeXT is actually sort of 4.0, but it shouldn't trip you up much), and I think it costs something like $11. Pixar has moved since it was published, and their new address is: Pixar 1001 West Cutting Richmond CA 94804 (510) 236-4000 (voice) (510) 236-0388 (FAX) Also, does anyone know how to compile shader function > source to a *.slo file? In a terminal window, for a shader foo.sl, type: /usr/prman/shader foo.sl Later. -- --> Michael B. Johnson --> MIT Media Lab -- Computer Graphics & Animation Group --> (617) 253-0663 -- wave@media-lab.media.mit.edu --> NeXT Mail accepted at wave@nordine.media.mit.edu
Re: RIBs, RenderMan, and Textures
Author: Bill Bumgarner
Date: Thu, 12 Nov 1992 17:05
Date: Thu, 12 Nov 1992 17:05
33 lines
1664 bytes
1664 bytes
In article <101558@bu.edu> ambi@localhost.bu.edu (Mike Amirault) writes: > > I've been messing around with Renderman and RIB files for a couple > of days and need some help. I can pretty much get everything to work > except textures. I've tried everything and can't get a simple texture > to display from a RIB file I created. I can use 3DReality and add a > texture fine, but I can't do it from my RIB file. > > I've tried things like: > > Surface "SD_Simple_tx" "txmap" "/NextLibrary/Textures/brick.tex" > Surface "texmap" "texname" "brick" > ... I suspect that you need to declare the "txmap" variable type-- RenderMan isn't going to be able to figure it out by itself.... add something like this to it: Declare "txmap" "string" (I think it is "string"-- you might have to hack around a moment to figure it out) BTW: For those interested, pick up the latest release of SmartFieldsPalette from the archive sites (the 3.0 version should be available later today/tomorrow sometime) and check out the info panel-- it has a 3DReality created animation in it.... sort of cool. Excuse the slowness on opening; it is a jpeg compressed set of TIFF images.... -- Bill Bumgarner <bbum@object.com> Objective Technologies, Inc. -- Bill Bumgarner <bbum@object.com>
Re: RIBs, RenderMan, and Textures
Author: Bill Bumgarner
Date: Thu, 12 Nov 1992 17:06
Date: Thu, 12 Nov 1992 17:06
33 lines
1664 bytes
1664 bytes
In article <101558@bu.edu> ambi@localhost.bu.edu (Mike Amirault) writes: > > I've been messing around with Renderman and RIB files for a couple > of days and need some help. I can pretty much get everything to work > except textures. I've tried everything and can't get a simple texture > to display from a RIB file I created. I can use 3DReality and add a > texture fine, but I can't do it from my RIB file. > > I've tried things like: > > Surface "SD_Simple_tx" "txmap" "/NextLibrary/Textures/brick.tex" > Surface "texmap" "texname" "brick" > ... I suspect that you need to declare the "txmap" variable type-- RenderMan isn't going to be able to figure it out by itself.... add something like this to it: Declare "txmap" "string" (I think it is "string"-- you might have to hack around a moment to figure it out) BTW: For those interested, pick up the latest release of SmartFieldsPalette from the archive sites (the 3.0 version should be available later today/tomorrow sometime) and check out the info panel-- it has a 3DReality created animation in it.... sort of cool. Excuse the slowness on opening; it is a jpeg compressed set of TIFF images.... -- Bill Bumgarner <bbum@object.com> Objective Technologies, Inc. -- Bill Bumgarner <bbum@object.com>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads