CGTalk > Software > Autodesk Miscellaneous > Autodesk Softimage
Login register
Thread Closed share thread « Previous Thread | Next Thread »  
 
Thread Tools Search this Thread Display Modes
Old 08-02-2007, 09:56 AM   #1
MatthiasBuehlmann
Frequenter
 
MatthiasBuehlmann's Avatar
portfolio
Matthias Bühlmann
Zürich, Switzerland
 
Join Date: Nov 2004
Posts: 231
Send a message via ICQ to MatthiasBuehlmann
Angry problem with shader writing

Hi!

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?

Thanks!
 
Old 08-02-2007, 03:17 PM   #2
DougNicola
Living on XSIsland
 
DougNicola's Avatar
Doug Nicola
Real Fun Art, LLC
Denver, USA
 
Join Date: May 2003
Posts: 148
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:

msvcp71.dll
msvcr70.dll
msvcr71.dll

~Doug
__________________
Real Fun Art, LLC
 
Old 08-02-2007, 04:34 PM   #3
MatthiasBuehlmann
Frequenter
 
MatthiasBuehlmann's Avatar
portfolio
Matthias Bühlmann
Zürich, Switzerland
 
Join Date: Nov 2004
Posts: 231
Send a message via ICQ to MatthiasBuehlmann
thanks for the answer. All the dll's are there - is there anything else that could cause this error?
 
Old 08-06-2007, 01:52 AM   #4
halfdan
Team Lead - Rendering
 
halfdan's Avatar
Halfdan Ingvarsson
Softimage
Canada
 
Join Date: Jul 2003
Posts: 20
Send a message via MSN to halfdan
Quote:
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.
 
Old 08-06-2007, 02:04 AM   #5
Mic_Ma
lightfooted rambling-man
 
Mic_Ma's Avatar
Murkus
Tiddelduddledee
Vatican City State (Holy See)
 
Join Date: Dec 2004
Posts: 825
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.
 
Old 08-06-2007, 02:04 AM   #6
CGTalk Moderation
Lord of the posts
CGTalk Forum Leader
 
Join Date: Sep 2003
Posts: 1,066,480
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
CGSociety
Society of Digital Artists
www.cgsociety.org

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

All times are GMT. The time now is 07:09 AM.


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