Mentalray Light-Wrap Model ?


I am having trouble finding any recourse or materials for Mentalray that does light wrapping… can someone please point me somewhere.


There are a couple of custom shaders for mr that do it.


Cim could you possibly show me where to find them, im having serious issuses finding them.


here’s one courtesy of Jan Sandstrom from (seems to be down)
Hope that helps



thx dudders, i just tried that one and it seems to give a chunky light wrap ish effect. i dunno why.


you should be able to achieve the desired effect you’ll have to fiddle with attributes a bit, maybe your lights are effecting it strangely??


i will try another light type i guess.


doesnt work with shadows at allf or me, gets wierd effects.


The shader on the Pixero’s site is the compiled version of the shader on the This shader simply reposition normals (sort of) to get more light. I’ve tried to implement this idea (but I’ve really changed normals) for Oren-Nayar shader. This model works OK if lights don’t cast shadows. When the shadows turned on, you see a hard edge between lighter and darker side. I believe the problem is self shadows. When the point currently rendered doesn’t see the light source at all and only gets light because of wrap, object shadowing itself. I don’t know how this problem can be solved. I’ve sent a mail to mental images mailing list, but couldn’t get any reply.


I have compiled a phong wraplight shader with the help of
There seem to be something wrong with the redirection adress to my site at the moment but you can still access it at the original adress:


Just to prevent misunderstanding: i didn’t say this to offend you, you’re doing a great job with compiling/porting all those shaders.

After a little more Google: It seems my theory is correct, and renderman implementation has same problem.


Augustus, No offence taken. Some time ago I found another Wraplight shader by theBigMuh.

I´ve written the mi file and melscript for it. Havent used it much yet but you can try it and see if it works any different.

Since I have forgotten where I first found it, (probably in a post somewhere at the xsibase forum) Im posting the complete package with all files for Maya.

Get it here:


thx pixero, and agustus. you guys do work that intrest me. i have a hige amount of programming history. If i ever finnish this reel i would really like to get into mentalray shader development.


seems to be prommising, my only issue is i cant get it working =P something about the light linking stuff. i have lights connceted but still no render. Steven has managed to get it working. if its the same version ?


nevermind i found my ignorance in the maya.rc file lol


Works with defualt values, as soon as i change a value in the node it crashes when i click render, with a memory read error. but the shader works without any adjusments. ??? could this be fixed ?


works great now, turns out to be the light linking. I did figure out a way to create a shadow effect over a lightwrapped surface in one pass.

Example : If your connect a SSS node to a lightwrapped nodes ambience it will diffuse to black in the shadow ares, because SSS doesnt scatter where light is absent. creating a shadow effect over a lightwrapped surface. but sicne the light wrap i use crashes with light linking i cannot use this as a workaround.


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.