Directions please?! ;-)
For a material shader, I wanted to be able to get the direction from the current sample point towards an object in the scene, like a Null etc. Since I was new to Mental Ray programming, I had a hard time finding the right combination of commands, since the SDK is extremely brief in some areas like mi_query and all the database stuff and especially dealing with objects in the scene.
With the help of Alan Jones I was finally able to get it working. And since there is so little information about Mental Ray programming in XSI on the web, I thought it would be nice to make it available for everyone while it is fresh. :-)
Maybe someone else hits the same wall.
If you have questions, ideas for improvements etc. feel free to mail me:
