mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
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).
33 lines
806 B
Plaintext
33 lines
806 B
Plaintext
puts "==========="
|
|
puts "OCC22912"
|
|
puts "==========="
|
|
puts ""
|
|
########################################################################################################################
|
|
# After calling AIS_InteractiveContext::UnsetColor objects are drawn with the same color when transparency is changed
|
|
########################################################################################################################
|
|
|
|
restore [locate_data_file bug22912_p.brep] p
|
|
explode p
|
|
vinit
|
|
vdisplay p_1
|
|
vdisplay p_2
|
|
vfit
|
|
vsetdispmode p_1 1
|
|
vsetdispmode p_2 1
|
|
vsetcolor p_1 red
|
|
vsetcolor p_2 green
|
|
vunsetcolor p_1
|
|
vunsetcolor p_2
|
|
vsetcolor p_1 red
|
|
vsetcolor p_2 green
|
|
vsettransparency p_1 0.5
|
|
vsettransparency p_1 0
|
|
|
|
checkcolor 120 150 0.831 0.000 0.000
|
|
checkcolor 180 273 0.000 0.753 0.000
|
|
|
|
set only_screen 1
|
|
|
|
|
|
|