phildog
01-03-2007, 05:27 PM
Hi there,
Ive searched alot of posts about getting started creating mental ray shaders for maya using visual c++ on windows.
Alot of them are too cryptic because they all start at different points (as per whatever step the poster was at at the time)
but could someone please explain a simple step by step method of getting started. Ive tried compiling some demo code .c files in Visual C++ , and pointing the include and lib paths in the options for the project but cant seem to get the dll working. (it does compile tho). Im not a total beginner in programming I have done some C++ in Uni and even made some plugins for maya in my spare time but that was straight forward compared to this. its like no one has a clear tute on how to get started.
Event the mental ray docs are cryptic. They just give you some commands like this:
NT x86, VC
cl /c /O2 /G6 /MD /nologo /W3 -DWIN_NT example.c
link /nologo /nodefaultlib:LIBC.LIB /OPT:NOREF
/INCREMENTAL:NO /DLL /OUT:example.dll
example.obj shader.lib
but where do you put it ? in the options in visual c++ where it says additional commands?
I love how there is a folder installed in the docs here
..\Alias\Maya8.0\devkit\mentalray\docs\gettingStar ted
that has html help for using the shaders but this one
..\Alias\Maya8.0\devkit\mentalray\docs\writingShad ers
just has some example code in it.... great..
I really wish i was student again and had the time to solve this great puzzle but since im not and working full time it
would be great not to reinvent the wheel and get some help on this....
Surely im not the only one that is frustrated with getting started.
thanks sorry for the long winded question but i hope you
understand
Ive searched alot of posts about getting started creating mental ray shaders for maya using visual c++ on windows.
Alot of them are too cryptic because they all start at different points (as per whatever step the poster was at at the time)
but could someone please explain a simple step by step method of getting started. Ive tried compiling some demo code .c files in Visual C++ , and pointing the include and lib paths in the options for the project but cant seem to get the dll working. (it does compile tho). Im not a total beginner in programming I have done some C++ in Uni and even made some plugins for maya in my spare time but that was straight forward compared to this. its like no one has a clear tute on how to get started.
Event the mental ray docs are cryptic. They just give you some commands like this:
NT x86, VC
cl /c /O2 /G6 /MD /nologo /W3 -DWIN_NT example.c
link /nologo /nodefaultlib:LIBC.LIB /OPT:NOREF
/INCREMENTAL:NO /DLL /OUT:example.dll
example.obj shader.lib
but where do you put it ? in the options in visual c++ where it says additional commands?
I love how there is a folder installed in the docs here
..\Alias\Maya8.0\devkit\mentalray\docs\gettingStar ted
that has html help for using the shaders but this one
..\Alias\Maya8.0\devkit\mentalray\docs\writingShad ers
just has some example code in it.... great..
I really wish i was student again and had the time to solve this great puzzle but since im not and working full time it
would be great not to reinvent the wheel and get some help on this....
Surely im not the only one that is frustrated with getting started.
thanks sorry for the long winded question but i hope you
understand