mental ray for Maya 8.5 - Architectural shaders

有關 Lighting 及 Rendering 技巧討論

版主: h2o

mental ray for Maya 8.5 - Architectural shaders

文章h2o » 16日 1月 2007年, 16:34

The mental ray architectural library contains a set of shaders designed for architectural and design visualization.

The most important are the mia_material, an easy to use all-around material, and the Physical Sun and Sky shaders, but the library also contains minor tools like shaders to create render-time rounded corners, and more.

The library strictly requires mental ray version 3.5 or newer and will not function on earlier releases of mental ray.


mia_material

The mental ray mia_material is a monolithic material shader that is designed to support most materials used by architectural and product design renderings. It supports most hard-surface materials such as metal, wood and glass. It is especially tuned for fast glossy reflections and refractions (replacing the DGS material) and high-quality glass (replacing the dielectric material).

The major features are:

* Easy to use - yet flexible. Controls arranged logically in a "most used first" fashion.
* Templates - for getting faster to reality.
* Physically accurate - the material is energy conserving, making shaders that breaks the laws of physics impossible.
* Glossy performance - advanced performance boosts including interpolation, emulated glossiness, and importance sampling.
* Tweakable BRDF1 - user can define how reflectivity depends on angle.
* Transparency - "Solid" or "thin" materials - transparent objects such as glass can be treated as either "solid" (refracting, built out of multiple faces) or "thin" (non-refracting, can use single faces).
* Round corners - shader can simulate "fillets" to allow sharp edges to still catch the light in a realistic fashion.
* Indirect Illumination control - set the final gather accuracy or indirect illumination level on a per-material basis.
* Oren-Nayar diffuse - allows "powdery" surfaces such as clay.
* Built in Ambient Occlusion - for contact shadows and enhancing small details.
* All-in-one shader - photon and shadow shader built in.
* Waxed floors, frosted glass and brushed metals... - ...all fast and easy to set up.


Sun & Sky

The mental ray physical sun & sky shaders are designed to enable physically plausible daylight simulations and very accurate renderings of daylight scenarios.

The mia_physicalsun and mia_physicalsky are intended to be used together, with the mia_physicalsun shader applied to a directional light that represents the sun light, and the mia_physicalsky shader used as the scenes camera environment shader. The environment shader should be used to illuminate the scene with the help of final gathering (which must be enabled) and bounced light from the sun can be handled either by final gather diffuse bounces, or via GI (photons).

Units

The sun and sky work in true photometric units, but the output can be converted to something else with the rgb_unit_conversion parameter. If it is set to 1 1 1, both the values returned by the mental ray shader API functions mi_sample_light (for the sunlight) and mi_compute_avg_radiance (for the skylight), when sent through the mi_luminance function, can be considered (will numerically match) photometric values in lux.

Since the intensity of the sun outside the atmosphere is calibrated to 127500 lux, this is very bright when seen compared to a more "classical" rendering where light intensities generally range from 0 to 1. The rgb_unit_conversion parameter is applied as a multiplier and should be set to a value below 1.0 (e.g. 0.001 0.001 0.001) to convert the raw lux value to something more manageable.

For convenience, the special rgb_unit_conversion value of 0 0 0 is internally set so that 80000 lux (approximately the amount of light on a sunny day) equals the classical light level of 1.0.



Utility shaders

Round corners

CG has a tendency to look "unrealistic" because edges of objects are geometrically sharp, whereas all edges in the real world are slightly rounded, chamfered, worn or filleted in some manner. This rounded edge tends to "catch the light" and create highlights that make edges more visually appealing.

The mia_roundcorners shader can create an illusion of "rounded edges" at render time. This feature is primarily intended to speed up modelling, where things like a table top need not be created with actual filleted or chamfered edges.

No round corners
圖檔

Round corners
圖檔


Tone mapping / Exposure

When rendering physical light levels one runs into the problem of managing the HDRI output of the real physics vs. the limited dynamic range of computer displays. This was discussed in more detail on page gamma.

There are numerous shaders and algorithms for doing "tone mapping" (this is a very active area of research within the CG industry), and this shader is a very simple such shader that simply adds a knee compression to "squash" overbrights into a manageable range.

The shader can be applied either as a lens shader (which will tone map the image "on the fly" as it is being rendered) or as an output shader (will tone map the image as a post process). Since this tone mapper affects each pixel individually , the former method (as lens shader) is encouraged, since it applies on the sample level rather than the pixel level.
FB
My Lab
CG guy + Researcher + Educator
頭像
h2o
討論區主持
討論區主持
 
文章: 4945
註冊時間: 7日 4月 2002年, 08:00
來自: Dark Side
外號: 水水

Share On:

Share on Facebook Facebook Share on Twitter Twitter

文章leeho » 16日 1月 2007年, 18:50

:mrgreen: 嘩 ! 咁快出新板 :mrgreen:
頭像
leeho
CGV討論區會員
CGV討論區會員
 
文章: 2353
註冊時間: 20日 12月 2001年, 08:00
來自: HONG KONG

文章h2o » 16日 1月 2007年, 22:31

physical base 既 shader, lighting & renderer, 系未來做 lighter 既大方向

唔識 physics 會好蝕底
FB
My Lab
CG guy + Researcher + Educator
頭像
h2o
討論區主持
討論區主持
 
文章: 4945
註冊時間: 7日 4月 2002年, 08:00
來自: Dark Side
外號: 水水

文章sobig » 16日 1月 2007年, 22:47

similiar with max version....great :)
香港 3ds max 用戶組

cg is for fun, not for money.
otherwise, cg is not yours.
頭像
sobig
討論區主持
討論區主持
 
文章: 1869
註冊時間: 4日 5月 2006年, 00:29
來自: max

文章stantang » 18日 1月 2007年, 11:45

Finally released the offical version, no need to hack and use the max shaders anymore. 8)
dig deep, think deeper
頭像
stantang
討論區主持
討論區主持
 
文章: 1566
註冊時間: 8日 11月 2001年, 08:00
來自: Groom Lake


回到 ■ Lighting & Rendering

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 25 位訪客

cron