View Full Version : MR Shader XYZ Object Position Offset for Deriver
08 August 2006, 01:14 PM
Now after three weeks of experimenting I'm really perplexed about the following:
I like to make a Anisotrophic Shading with the Help of the Deriver Shader. It behaves perfectly as long the Object is on World Coordinate 0,0,0. Everthing is really perfect!
With the mode 2 (North position) and the XYZ Coordinate (3dsmax) Shader attached for the North Position it goes perfectly! If I turn my Object around the Anisotrophy works fine with the mib_ward_illum_deriv shader! The Derivatives are so perfect that I could use it for the mib_reflection_glossy shader,too! Itīs all that I want. Except:
if i move the object out of the 0,0,0 world coordinates the Anisotrophy doesnīt work anymore. Even this problem I have solved partly! If I take the new coordinates of my Object in World (F12) and type it manually in the Offset section of my XYZ Coordinate - The Anisotrophy works perfectly again!!!
Now hereīs the question: With what shader could I set this Offset Vector so that it reads the position of the Object in the world automatically? This is incredible!
It would be so easy if there would be a shader that just returns the current Object Position/Vector in the World!!! Every try to get this Coordinate with the XYZ Coordinate itself failed.
Is here anyone that could help me with that mindboggeling frustrating problem? Iīm so close to real Anisotrophic Reflections!!!
08 August 2006, 04:59 PM
Is there really no shader that could do this simple job? Or am I just to blind to get it out of the basic shaders?
I read about JS_Incidence that probably could do this, but thereīs no mi implementation for Max.
-Vormav- said that he would have eventually some shaders, but I counīt find them yet!
08 August 2006, 10:25 PM
Try mode 1, then set the "north_dir" to 1 in the z axis. this corrects the behavior for me. :)
08 August 2006, 10:47 PM
Thank you. In mode 1 with a 1 in the Z axis it works fine with movement. But then the roation dosnīt work! The nordirection is so not bounded to the rotation of the object!
I try that with the mib_illum_ward_deriv shader and a simple sphere. Shiny U=10 Shiny V=2
It have to point in a direction that is right above the Z Axis of the object. In mode 2 this does work if the object is on 0,0,0 and the northposition is set to 0,0,0, even with rotation of the object. The only failure is that it doesnīt move with the object! This I can easily solve with manual typing in the current object coordinates!
What I need is a Vector to Coordinate Shader for MR Max.
08 August 2006, 11:03 PM
Try mode 2 with a HUGE number in the z,maybe that will work?
08 August 2006, 11:17 PM
This was my first thoug, too. But this jsut make the same effect like in mode 1 with Z=1! If i Set the Z in Mode 2 of 1000 it results that the rotation doesnt work anymore. The Rotation simply does not go with the object!
All things seem just to work in Mode 2 with Coordinates that represent the Current Object Position in World Coordinates. I would just need such a shader that could read them.
08 August 2006, 11:17 PM
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.