0033661: Data Exchange, Step Import - Tessellated GDTs are not imported
[occt.git] / tests / v3d / materials / bug24855
CommitLineData
44c7c33e 1puts "========"
f2b42160 2puts "0024855: Revision of parameters of standard materials"
44c7c33e 3puts "========"
4
0d828ac8 5pload MODELING VISUALIZATION
6
ba562b2b 7# Ray-Tracing doesn't work with Compatible Profile on macOS
0d828ac8 8pload OPENGL
ba562b2b 9if { $::tcl_platform(os) == "Darwin" } { vcaps -core }
10
44c7c33e 11# custom shapes
12set aShape [locate_data_file occ/Top.brep]
13
14# setup 3D viewer content
15vinit View1 w=768 h=768
16vglinfo
17
aaf8d6a9 18vbackground -gradient B4C8FF B4B4B4 -gradientMode VERTICAL
44c7c33e 19
20# display shape
992ed6b3 21vlight -change 0 -dir 0.577 -0.577 -0.577
44c7c33e 22restore $aShape s
f2b42160 23vdisplay -dispMode 1 s
44c7c33e 24vfit
25
26proc testmat {dirname filename} {
27 foreach {aMatIter} {brass bronze copper gold jade neon_phc pewter obsidian plaster plastic satin silver steel stone chrome aluminium charcoal} {
28 vsetmaterial -noredraw s $aMatIter
29 vdump $dirname/${filename}_${aMatIter}.png
30 }
31}
32
f2b42160 33# material screenshots, Gouraud shading model (rasterization)
34vrenderparams -shadingModel GOURAUD
44c7c33e 35testmat $imagedir $casename
36
f2b42160 37# material screenshots, Phong shading model (rasterization)
38vrenderparams -shadingModel PHONG
44c7c33e 39testmat $imagedir ${casename}_phong
40
f2b42160 41# material screenshots, Ray-Tracing
bc8c79bb 42vrenderparams -raytrace -reflections -fsaa
44c7c33e 43vtextureenv on 5
44c7c33e 44testmat $imagedir ${casename}_rt