0024855: Revision of parameters of standard materials
authordbp <dbp@opencascade.com>
Wed, 30 Apr 2014 11:14:17 +0000 (15:14 +0400)
committerapn <apn@opencascade.com>
Thu, 15 May 2014 15:59:28 +0000 (19:59 +0400)
commit44c7c33eb096ab50eaef8cd99d9cec360ea6664b
treeb6a49e13ebbbe616e61bd30fe3a7ce6ee8ccbebc
parent013a854956d4de2e95615fec4904e870d3e3c577
0024855: Revision of parameters of standard materials

Improve consistency and visual appearance of predefined OCCT materials in various rendering modes, including ray-tracing:
- Increase the specular exponents (shininesses) for metallic surfaces: Brass, Bronze, Copper, Gold, Pewter, Silver, Steel, Chrome, Aluminum.
- Revise specular colors for metals: Copper, Gold, Aluminum, Silver (according to "Real-Time Rendering, 3rd Edition", AK Peters 2008).
- Increase diffuse reflection of metals: Silver, Aluminum, Chrome (to make them brighter in OpenGL mode).
- Extend Material definition by Refraction Index.
  Advanced rendering methods based on shaders or ray-tracing can utilize it to produce refraction effects.

In addition:
- Introduce three translucent materials: Water, Glass, and Diamond.
- Add Charcoal for modeling dark diffuse surfaces.

Add new TCL-based sample (materials.tcl) and test case (tests/v3d/materials/bug24855).
15 files changed:
samples/tcl/materials.tcl [new file with mode: 0644]
src/Graphic3d/Graphic3d.cdl
src/Graphic3d/Graphic3d_MaterialAspect.cdl
src/Graphic3d/Graphic3d_MaterialAspect.cxx
src/Graphic3d/Graphic3d_Structure.cxx
src/InterfaceGraphic/InterfaceGraphic_Graphic3d.hxx
src/OpenGl/OpenGl_AspectFace.cxx
src/OpenGl/OpenGl_AspectFace.hxx
tests/bugs/demo/bug23410
tests/bugs/vis/bug22879
tests/bugs/vis/bug22912
tests/bugs/vis/bug24762_coloredshape
tests/bugs/vis/bug5990
tests/v3d/grids.list
tests/v3d/materials/bug24855 [new file with mode: 0644]