Skip to main content

The architecture of mental ray

Figure 1 shows the standard mental ray architecture.
Figure 1 standard mental ray architecture.


F1: Application scene file: Application proper file. For example, .max (3dsmax), .ma or .mb (Maya), .scn (XSI).

F2: .mi file: mental ray scene description file. If the DCC software has mental ray plugin, or integrates mental ray, they usually support .mi file export. (A2)

1. Application: DCC (Digital contents creation) software. For example, Maya, 3DSMax, XSI, CAD program, and so on.

2. mental ray core: mental ray core program. There are library version mental ray and stand alone mental ray. The library version mental ray is usually invoked by a DCC application via translator module of the application. A translator is a module of a DCC application which translate the DCC application's internal data structure to the mental ray data structure. The stand alone version mental ray reads a .mi file and performs the rendering. If you have only mental ray core, mental ray does not work. mental ray always needs shaders. It might be easier to understand that if you realize the shaders are plugin software.

3. mental ray base shader: mental ray supports these shaders as default. There are basic light sources and basic materials. For example, one of the simplest shader is the Lambert shader.

4. Application shaders: Each DCC application or CAD software has own proper shaders. For example, 3dsMax has 3dmaxshaders, Maya has mayabase shader package.

5. Custom shaders: User defined shaders or special shaders from mental ray (for example, mia_material. In 3dsMax language, it is Design and Architectural shader).

Although this structure is a standard, some application does not tightly communicate with mental ray and uses .mi files.

The important thing of this figure is that mental ray core itself does not work without (either default or special) shaders. Shaders have an impornat role in the standalone mental ray or an integrated mental ray in DCC application. Actually, mental ray can not generate meaningfull images without shaders. (mental ray core still can generate a black image without shaders.)

Comments

Popular posts from this blog

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...

iray 3: iray in standalone mental ray

How to export mi file from 3dsmax. 1. Assign mental ray renderer as Production renderer First open the Render Set Up dialog. Figure export_mi_1 show that opening the rollout of assign renderer and then choosing the mental ray renderer as Production renderer. Figure export_mi_1 2. Export a mi file from 3dmax. Choose Render Set Up --- Processing Tab. First you need to choose a filename as in Figure export_mi_2. Without a file name, the checkbox of 'Export on Render' is disabled. This was difficult for me. I wanted to export a file, but Export on Render is disabled. I wish I could choose the Export on Render and then see a warning message, ''an export file name is not specified.'' Next, push the Render button, then a mi file is exported. Figure export_mi_2 This is also difficult for me. When you ' export ' a file, push the ' render ' button. I wish it was like   When you ' export ' a file, push the ' export ' ...

iray 1: iray in standalone mental ray

* As far as I know, we can only run mental images' iray in NVidia's RealityServer. I hope Autodesk 3dsmax/maya/xsi supports iray soon. mental images (a subsidiary company of NVidia) demonstrated iray renderer in GDC's keynote and SIGGRAPH ASIA 2009. GDC NVidia iray demo (YouTube) mental images iray page mental ray or some other renderers can simulate indirect illumination in some extent, but the methods final gather or photon map are quite rough approximation. They have no guarantee to converge to the correct answer. Also there are many renderer parameters for performance optimisation. These parameters heavily depends on the scene. It is difficult to achieve high quality and faster rendering. These methods are anyway time consuming, therefore, we sometimes put invisible light sources by hand, that simulates indirect lights. This iray is a brute force path tracer and there is no renderer parameter, but nowadays computer has not enough power to compute the light tran...