Skip to main content

iray developer's blog

NVidia ARC's iray developers write a iray's technical blog.

Comments

Popular posts from this blog

What is mental ray shader?

mental ray shader is C/C++ code that is invoked by the mental ray core when a ray hits an object. The name ``shader'' is used by hysterical reason, I think ``Plugin'' is much better word nowadays. mental ray shader gives us a lot of freedom for users, but, I think we do not need to write a custom shader in most of the cases. The meaning of 'gives us a lot of freedom' is when a ray hit an object, a user could almost everything by a shader. For example, when a ray hit an object, mental ray can send an email from the shader. (I believe that mental ray designer does not recommended this kind of side effect usage, but, a shader is just a plugin and it should be possible.) You can do anything means also it is difficult to handle the shaders. mental ray was developed for a long time and takes care of backward compatibility, this contributed for its complexity.

iray 2: iray in standalone mental ray

Even iray has no customized shaders, iray has a shader. It is mia_material (Arch&Design in 3dsmax) only. Actually, it is a shader that has mia_material interface and the implementation is different from mental ray (only for iray). mental images explains this is for the users who already know the mia_material. Such user doesn't need to learn the iray shader from the scratch. Therefore, some of the physically meaningless parameters of mia_material are disabled. They also said that they will support more physical shaders, like BRDF shaders. Someone  asked about volume shaders support at the confenence, but, unfortunately, iray version 1 doesn't support volume shaders and will be supported in the following versions sometime. As for a DCC software user, the problem of iray is they can use it from 3dsmax/Maya/XSI or not. But NVidia's explanation is 'that is autodesk's decision.' Although, mental ray 3.8+ standalone or NVidia RealityServer support iray. (See ment