View Full Version : Re:Mental Ray shaders for Linux
08-21-2004, 06:07 PM
Hi mental rayers, well I just thought I would upload some of the various mental ray shaders for linux, I only have 3 of Danial Rinds (BigMuh) that some kind cgtalkers have compiled for linux, as we linux hackers seem to have to wait for these to be compiled, thanks to Daniel for providing the source code for a start, thanks to Digidim for his flt icons, and thanks to my friend MayaPT for compiling the diffraction shader. If you have something you would like to add please pm me and I'll upload them with the others.
and ofcourse pixero has provided some of his shaders for us all, you can find them on his website:
in the downloads/mental ray section,
these files have are for maya 6 by the way.
Keep up the good work guys and render on
08-21-2004, 06:37 PM
Cheers! Thanksalot :applause:
08-23-2004, 01:01 AM
Duuuuuude :D Let's keep'em comming boys.
EDIT: Oh yeah, I forgot. The links don't work btw.
08-23-2004, 08:41 AM
visualboo, community effort ........aaaiiigggh :thumbsup:
The links work for me, pm me and I'll email them to you.
08-24-2004, 12:38 AM
Thank you for posting those shaders! We use dirtmap of thebigMuh's pretty heavily but couldn't get the diffraction to work before, so I'll give these a try with yours.
You mentioned that these files are for Maya6, so do they not work for Maya5?
We still use Maya5 on Redhat9 and I was wondering if the compile is different...
08-24-2004, 10:39 AM
Hi coocoo, pretty sure it will work with maya 5, I just used the new .mi files, if they dont work use the ones in bigmuhs original package.
08-24-2004, 04:41 PM
OK, a little update, thanks to francescaluce for the source code and MayaPT for the compile.
Hope it works for you guys.:thumbsup:
Check the link in the 1st post, good luck
08-25-2004, 03:59 PM
Another little update, MayaPT has kindly compiled francescaluce's bump combiner for us all, keep 'em coming lads.
PS: Link at top of post
08-26-2004, 11:48 PM
I installed them and all seem to be all working with Maya5!
I have 2 questions:
* Is there anywhere I can find example files of Diffraction shader that opens on Maya5?
* Where can I find more about BumpCombiner and Mix8? I really like that I can color correct and all but I'm not sure how to connect it so that the bump works...
Thanks in advance!
08-27-2004, 08:02 AM
Hiya coocoo, the only thread I can find on the mix8 shader is here:
I havent used the diffraction shader, but the bump combiner has some info here:
perhaps post any success in here for us all :thumbsup:
08-28-2004, 04:08 PM
I have uploaded Linux version of my shaders. Compiled by Muncher.
(JS_fisheye compiled by Monica Berrondo.)
The Shaders are:
08-28-2004, 04:32 PM
Thanks for making them available to us all Pixero :thumbsup::thumbsup:
08-29-2004, 08:06 AM
Three more shaders added. Linux compile by Muncher.
09-14-2004, 06:30 PM
Thanks for the shaders they are pretty cool! (I like mix8 especially.)
I found Oren-Nayar shader for NT with source code on Highend3d site but I'm not sure how to compile.
Could you compile it for linux and post like others, please??
Thank you in advance.
09-14-2004, 06:42 PM
dude, I shall give it a go, that was the first shader I ever tried and it didnt work hehe, wont see my linux box for a couple of days though so I cant have a go at it till then, I made myself a little readme since reading the maya help is like masterbating with a cheese grater.
copy the source file and everything in usr/aw/maya6.0/devkit/mentalray/include
into a folder then from a console type:
gcc -shared -o filename.so filename.cpp
the first file is what you want the shader to be called and the second
is the source filename, sometimes just .c
see how you get on.
09-14-2004, 10:35 PM
Thanks Muncher, I'll give it a try...
I'm not sure how to compile 2 source files, though.
09-15-2004, 03:10 AM
just do one at a time, I was kinda quick to dismiss it and being a bit of a newb I didnt really know how to troubleshoot it, see how you go anyway.:thumbsup:
edit: so just put specBlinn.c and OrenNayar.c in a folder with the files from that mental ray directory then cd to the dir and run :
gcc -shared -o specBlinn.so specBlinn.c
gcc -shared -o OrenNayar.so OrenNayar.c
keep your fingers crossed you should have a new specBlinn.so and OrenNayar.so
in the folder:D
09-16-2004, 07:03 PM
Good news! I got to have our engineer friend compile and it seems to be working.
The thing is, we are in a process of upgrading our Maya from 5 to 6 over the next couple of days so the shader we have now is compiled for Maya5 (Redhat 9).
I'll have him help us re-compile once we upgrade to Maya6, so I can post .so files for you.
Or I will ask him how he compiled and post it here.
Either way, we are pretty close (I think)!
09-18-2004, 09:46 AM
dude, I think its prett much distro independant, the mi files are usually de-versioned (ie: no node id) and I'm pretty sure it depends what version of gcc you're using, glad you got it to work anyhow, did my instructions help or did you do something else?
09-18-2004, 02:53 PM
Just a little update, pixero's franchesca mix8layer mix20layer mod (that is a bit of a mouthful) many thanks to him. It has been compiled for linux, checkout his website:
09-19-2004, 09:43 PM
I asked him and he gave me these commands he used (it's tested and it works).
Note: This page might show it like it's 4 command lines but one command line for one .c file (2 command lines total).
gcc -shared -I /usr/aw/maya/include/maya/ -I /usr/aw/maya/devkit/mentalray/include/ -o OrenNayar.so OrenNayar.c
gcc -shared -I /usr/aw/maya/include/maya/ -I /usr/aw/maya/devkit/mentalray/include/ -o specBlinn.so specBlinn.c
He said he would use different command for C++ and it would be slightly different for Maya5.
Now we have .so files that seem to work for Maya6 on Linux! I guess there is a known issue with shadow and stuff but I guess it's worth giving a try.
I would like to post the compiled .so files but I'm not sure how... Do I need to have a server?
09-26-2004, 10:57 AM
Two more shaders compiled for Linux.
09-27-2004, 03:14 AM
Thanks pixero, I forgot to post :D
07-05-2005, 09:31 PM
I just moved so hadn't had a chance to check these out yet, however, I tried extracting all of those files that are linked in the original post and I get corrupt header errors on Linux, OSX, and Windows. Someone mind repacking those and are they compiled with g++ or gcc? I'm assuming the source is in the .rars? Thanks.
07-05-2005, 10:21 PM
Days ago I was trying to compile the bumpCombiner (It wasn't loading properly in maya, so I don't know if this was a gcc problem - I'm using fedora core 4 64 bits = gcc4).
I've downloaded and extracted bumpCombiner and Dirtmap files and everything is ok (rar 3.50 beta 5).
I guess I have to do more tests
07-06-2005, 12:02 AM
Odd, I'm using Stuffit and it won't open, WinRar won't open the files linked in the original post as well. I don't have internet access at home yet, so won't be able to do any further testing of those files until then.
Wow... this is awesome.
I've been waiting for this for so long.
07-06-2005, 04:40 PM
it would be great to have a compile of the "ctrl buffers" for linux
07-07-2005, 06:25 PM
woot.. I recompiled bumpCombiner. No errors, but I get this in the script editor:
// Warning: (Mayatomr.Nodes) : Node "bumpCombiner" not created. //
And as I'm updating some shaders, I noted the same with JS_VectorMath_vector, JS_BiasGain_scalar and JS_SetRange_scalar nodes.
I've tried both gcc32 and gcc (4.0) .. what are you people using (to compile and distro)?
11-10-2005, 10:09 AM
eddgarpv, you have to use the gcc version that your maya version was compiled with, its buried in the docs somewhere(sorry not installed yet) anyone know what gcc version maya 7 for linux was compiled with?
11-10-2005, 10:58 AM
As most distros switched to gcc4 I had to build the 3.3.4 compiler myself. It is important not to "downgrade" your system to 3.3.4 but to install both compilers alongside each other. This process is described in the docs.
03-21-2006, 12:02 AM
Hi guys. Long time no one has posted on this thread, but I'll give it a go. Does anyone have the source for L_Glass? Or has anyone already compiled that for Linux? I would like to have that shader for Linux. Thanks
03-21-2006, 12:02 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2014, Jelsoft Enterprises Ltd.