mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
A new command vbackground is created. Old background commands are made aliases for the newly created command (including vsetdefaultbg). Tests are modified using newly added command vbackground.
39 lines
1.0 KiB
Plaintext
39 lines
1.0 KiB
Plaintext
puts "========"
|
|
puts "0024855: Revision of parameters of standard materials"
|
|
puts "========"
|
|
|
|
# custom shapes
|
|
set aShape [locate_data_file occ/Top.brep]
|
|
|
|
# setup 3D viewer content
|
|
vinit View1 w=768 h=768
|
|
vglinfo
|
|
|
|
vbackground -gradient 0.705882 0.784314 1 0.705882 0.705882 0.705882 -gradientMode VERTICAL
|
|
|
|
# display shape
|
|
vlight -change 0 -dir 0.577 -0.577 -0.577
|
|
restore $aShape s
|
|
vdisplay -dispMode 1 s
|
|
vfit
|
|
|
|
proc testmat {dirname filename} {
|
|
foreach {aMatIter} {brass bronze copper gold jade neon_phc pewter obsidian plaster plastic satin silver steel stone chrome aluminium charcoal} {
|
|
vsetmaterial -noredraw s $aMatIter
|
|
vdump $dirname/${filename}_${aMatIter}.png
|
|
}
|
|
}
|
|
|
|
# material screenshots, Gouraud shading model (rasterization)
|
|
vrenderparams -shadingModel GOURAUD
|
|
testmat $imagedir $casename
|
|
|
|
# material screenshots, Phong shading model (rasterization)
|
|
vrenderparams -shadingModel PHONG
|
|
testmat $imagedir ${casename}_phong
|
|
|
|
# material screenshots, Ray-Tracing
|
|
vrenderparams -raytrace -reflections -fsaa
|
|
vtextureenv on 5
|
|
testmat $imagedir ${casename}_rt
|