PDA

View Full Version : l_glass problem


Rega
11-05-2005, 12:28 PM
Hi,
I'm having a go at using the l_glass shader in Maya 7. I have no problem changing some of the materials attributes, applying it to a selection etc. I just have a problem when i render it. When I render the scene I get

mental ray: got 8 satellite CPUs.
API 0.0 error 301031: call to undeclared function "l_glass"
API 0.0 error 301032: while defining material "l_glass1SG": undefined shader "l_glass1"
API 0.0 error 301032: while defining material "l_glass1SG": undefined shader "l_glass1"

come up in the output window. I assume this is quite a big problem since when it finishes rendering I get an image that looks like below...

http://img499.imageshack.us/img499/4362/prob8gv.th.jpg (http://img499.imageshack.us/my.php?image=prob8gv.jpg)

I followed the l_glass tutorial found at http://www.deathfall.com/article.php?sid=5678 but missed out the parts about applying materials to the glass, since I don't have any in my scene.

Any help to get this sorted will be appreciated :)

cpan
11-05-2005, 04:25 PM
API 0.0 error 301031: call to undeclared function "l_glass"
API 0.0 error 301032: while defining material "l_glass1SG": undefined shader "l_glass1"
API 0.0 error 301032: while defining material "l_glass1SG": undefined shader "l_glass1"

did you install the shader properly? these errors are spited out when you make syntax errors in the maya.rayrc file or in your material's *.mi file (in this case the l_glass.mi file)

just in case... you need to add these lines to the maya.rayrc file:

link "{MAYABASE}/lib/l_glass.{DSO}"
mi "{MAYABASE}/include/l_glass.mi"


and also i believe l_glass uses the msvcr71.dll library so if you don't have it in _drive_:\windows\system32 then you need to download it... (http://www.dll-files.com/dllindex/dll-files.shtml?msvcr71)



cheers

Rega
11-06-2005, 01:03 AM
Cheers Yashu, works a treat now :)

CGTalk Moderation
11-06-2005, 01:03 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.