1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-05-01 10:26:12 +03:00
occt/tests/bugs/vis/bug22879
dbp 44c7c33eb0 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).
2014-05-15 19:59:28 +04:00

36 lines
1.1 KiB
Plaintext
Executable File

puts "============"
puts "OCC22879"
puts "============"
puts ""
#######################################################################
# Possible bug in Opengl_togl_begin_layer_mode.cxx
#######################################################################
set BugNumber OCC22879
vinit
voverlaytext "Text Height=14" 10.0 10.0 14.0
voverlaytext "Text Height=25" 10.0 40.0 25.0
voverlaytext "Arial" 10.0 60.0 18.0 "Arial" 255.0 0.0 0.0
voverlaytext "Times New Roman" 10.0 80.0 20.0 "Times New Roman" 0.0 0.0 255.0
voverlaytext "Subtitle" 10.0 110.0 20.0 "Arial" 0.0 255.0 0.0 subtitle 76.5 76.5 76.5
voverlaytext "Decal" 10.0 140.0 20.0 "Arial" 0.0 0.0 255.0 decal 255.0 0.0 0.0
voverlaytext "Blend" 10.0 170.0 20.0 "Arial" 255.0 0.0 0.0 blend
box b 50 -700 450 50 50 50
vdisplay b
vsetdispmode 1
vsetcolor b ANTIQUEWHITE
checkcolor 24 55 0.753 0.000 0.000
checkcolor 16 76 0.000 0.000 1.000
checkcolor 25 107 0.000 1.000 0.000
checkcolor 34 114 0.298 0.298 0.298
checkcolor 24 131 0.922 0.000 0.000
checkcolor 18 139 0.145 0.000 0.855
checkcolor 56 160 1.000 0.000 0.000
checkcolor 30 160 0.188 0.761 0.698
set only_screen 1