problem with shader writing

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
  08 August 2007
Angry problem with shader writing


I try to write a shader, but i don't get it to work. I do exactly the same as it is describet XSI SDK documentation. My shader compiles, i copy the dll to Application\bin\nt-x86 and installed is it anyway since i'm creating it in the user folder (but i already tried to uninstall and reinstall it).
Always when I try to render an object with the material i get the error:

' ERROR : PHEN 0.3 error 051011: shader "test_shader" not found

sometimes it's also PHEN 0.4
I also tried to use exactly the same sample code as in the xsi sdk doc, but it's still the same error.

I've installed the microsoft SDK v6.0 and the .net framework 2.0 is also installed and i'm using microsoft Visual Studio 2005 to program.

Can somebody tell me what i'm doing wrong?

  08 August 2007
This looks like the classic missing dlls error. I don't know if the .NET install would take care of this, but check for the files in your system32 directory:


Real Fun Art, LLC
  08 August 2007
thanks for the answer. All the dll's are there - is there anything else that could cause this error?
  08 August 2007
Originally Posted by MatthiasBuehlmann: thanks for the answer. All the dll's are there - is there anything else that could cause this error?

Did you use the shader wizard to generate the code? If not, make sure your function definitions (and/or declarations) have the requisite prefixes. E.g.:

extern "C" DLLEXPORT miBoolean test_shader( miColor *r, miState *s, void *p )

Failing that, get a hold of depends.exe and open your DLL with it. It'll tell you how your symbols are exported (ie. what your exported functions look like to XSI and mental ray) and whether there are any missing DLL dependencies.
  08 August 2007
I tried to play around with the same thing a few months ago and had the same problem.

Unfortunately I can't remember exactly how I solved the problem but I vaguely remember that I had to restart the app, uninstall and delete the files I created everytime I made a change.
  08 August 2007
Thread automatically closed

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.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright ©2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 06:24 PM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.