|
|
||||||||||
|
Tutorials and other helpful stuff: Computing the direction towards an Object from the current sample point: While writing an advanced material for Mental Ray in XSI, I wanted to use an object (like a Null etc.) for defining a shading direction. I thought that would be very simple, but the SDK is very taciturn when it comes to objects in the scene. Maybe someone else needs this too, so here is my solution.
|
![]() |
|||||||||
|
Not exactly a tutorial but helpful for Mental Ray shader coding: Syntax Highlighting for Mental Ray keywords: If you happen to use Visual Studio to write Mental Ray (3.3) Shaders for XSI, this file may be useful to you: Download and extract it and put it into the directory where your msdev.exe is located. Start the IDE and under Tools->Options you can now set your own color for "User Keywords". If you already have a Usertype.dat from a different SDK, copy the content of this one into your existing file with a text editor.
|
![]() |
|||||||||
|
|
|
|||||||||