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/bug5990
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

50 lines
946 B
Plaintext
Executable File

puts "================"
puts "OCC5990"
puts "================"
puts ""
#######################################################################################
# SetColor does not change color of wireframe entities in shading mode
######################################################################################
set BugNumber OCC5990
set x1 162
set y1 159
set x2 204
set y2 269
set x3 348
set y3 238
set KUB_R 0.00
set KUB_G 0.00
set KUB_B 0.83
set LINE_R 0.00
set LINE_G 0.00
set LINE_B 1.00
box b1 10 10 10
vertex v1 20 0 0
vertex v2 20 0 10
vertex v3 30 0 0
vertex v4 30 0 10
vertex v5 30 10 10
edge e1 v1 v2
edge e2 v3 v4
edge e3 v4 v5
compound e2 e3 c1
vinit
vdisplay b1 e1 c1
vsetdispmode 1
vfit
vsetcolor b1 BLUE1
vsetcolor e1 BLUE1
vsetcolor c1 BLUE1
checkcolor ${x1} ${y1} ${KUB_R} ${KUB_G} ${KUB_B}
checkcolor ${x2} ${y2} ${LINE_R} ${LINE_G} ${LINE_B}
checkcolor ${x3} ${y3} ${LINE_R} ${LINE_G} ${LINE_B}
set only_screen 1