mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0031999: Tests - request Core Profile on macOS for Ray-Tracing tests
This commit is contained in:
parent
73dc2d3ae5
commit
ba562b2b7a
@ -7,6 +7,8 @@
|
|||||||
#Title: Penrose triangle on perspective view
|
#Title: Penrose triangle on perspective view
|
||||||
|
|
||||||
pload MODELING VISUALIZATION
|
pload MODELING VISUALIZATION
|
||||||
|
# Ray-Tracing doesn't work with Compatible Profile on macOS
|
||||||
|
if { $::tcl_platform(os) == "Darwin" } { vcaps -core }
|
||||||
|
|
||||||
# procedure to define box dimensions
|
# procedure to define box dimensions
|
||||||
set scale 1.
|
set scale 1.
|
||||||
|
@ -7,6 +7,8 @@
|
|||||||
set aBallPath [locate_data_file occ/Ball.brep]
|
set aBallPath [locate_data_file occ/Ball.brep]
|
||||||
|
|
||||||
pload MODELING VISUALIZATION
|
pload MODELING VISUALIZATION
|
||||||
|
# Ray-Tracing doesn't work with Compatible Profile on macOS
|
||||||
|
if { $::tcl_platform(os) == "Darwin" } { vcaps -core }
|
||||||
|
|
||||||
# Setup 3D viewer
|
# Setup 3D viewer
|
||||||
vclear
|
vclear
|
||||||
|
@ -5,6 +5,8 @@
|
|||||||
#Title: Path tracing - Cube
|
#Title: Path tracing - Cube
|
||||||
|
|
||||||
pload MODELING VISUALIZATION
|
pload MODELING VISUALIZATION
|
||||||
|
# Ray-Tracing doesn't work with Compatible Profile on macOS
|
||||||
|
if { $::tcl_platform(os) == "Darwin" } { vcaps -core }
|
||||||
|
|
||||||
# setup 3D viewer content
|
# setup 3D viewer content
|
||||||
vclear
|
vclear
|
||||||
|
@ -7,6 +7,8 @@
|
|||||||
set aBallPath [locate_data_file occ/Ball.brep]
|
set aBallPath [locate_data_file occ/Ball.brep]
|
||||||
|
|
||||||
pload MODELING VISUALIZATION
|
pload MODELING VISUALIZATION
|
||||||
|
# Ray-Tracing doesn't work with Compatible Profile on macOS
|
||||||
|
if { $::tcl_platform(os) == "Darwin" } { vcaps -core }
|
||||||
|
|
||||||
# Setup 3D viewer
|
# Setup 3D viewer
|
||||||
vclear
|
vclear
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
#Category: Visualization
|
#Category: Visualization
|
||||||
#Title: Ray tracing
|
#Title: Ray tracing
|
||||||
|
|
||||||
|
# Ray-Tracing doesn't work with Compatible Profile on macOS
|
||||||
|
pload VISUALIZATION
|
||||||
|
if { $::tcl_platform(os) == "Darwin" } { vcaps -core }
|
||||||
|
|
||||||
# make bottle by calling another script
|
# make bottle by calling another script
|
||||||
source [file join [file dirname [info script]] bottle.tcl]
|
source [file join [file dirname [info script]] bottle.tcl]
|
||||||
|
|
||||||
|
@ -81,6 +81,9 @@ SetName D [XFindShape D ts] "Smooth"
|
|||||||
SetName D {*}[XFindComponent D tr] "Rough"
|
SetName D {*}[XFindComponent D tr] "Rough"
|
||||||
SetName D [XFindShape D tr] "Rough"
|
SetName D [XFindShape D tr] "Rough"
|
||||||
|
|
||||||
|
# Ray-Tracing doesn't work with Compatible Profile on macOS
|
||||||
|
if { $::tcl_platform(os) == "Darwin" } { vcaps -core }
|
||||||
|
|
||||||
vclear
|
vclear
|
||||||
vinit View1 -width 768 -height 768
|
vinit View1 -width 768 -height 768
|
||||||
vfront
|
vfront
|
||||||
|
@ -3,6 +3,10 @@ puts "0027337: \[Regression vs. 6.9.1\] Selection highlight is poor in ray trace
|
|||||||
puts "================"
|
puts "================"
|
||||||
|
|
||||||
pload MODELING VISUALIZATION
|
pload MODELING VISUALIZATION
|
||||||
|
|
||||||
|
# Ray-Tracing doesn't work with Compatible Profile on macOS
|
||||||
|
if { $::tcl_platform(os) == "Darwin" } { vcaps -core }
|
||||||
|
|
||||||
box b 10 10 10
|
box b 10 10 10
|
||||||
vdisplay b
|
vdisplay b
|
||||||
vsetdispmode 1
|
vsetdispmode 1
|
||||||
@ -15,4 +19,4 @@ puts "should be color of shading and not of highlight (blue)"
|
|||||||
checkcolor 205 100 0.64 0.56 0.08
|
checkcolor 205 100 0.64 0.56 0.08
|
||||||
|
|
||||||
puts "Check result by image: selection highlight should show only visible edges"
|
puts "Check result by image: selection highlight should show only visible edges"
|
||||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
vdump ${imagedir}/${casename}.png
|
||||||
|
@ -1,2 +1,4 @@
|
|||||||
pload XDE OCAF MODELING VISUALIZATION
|
pload XDE OCAF MODELING VISUALIZATION
|
||||||
catch { Close D }
|
catch { Close D }
|
||||||
|
# PBR requires OpenGL 3.0+ on macOS
|
||||||
|
if { $::tcl_platform(os) == "Darwin" } { vcaps -core }
|
||||||
|
@ -1,2 +1,4 @@
|
|||||||
pload XDE OCAF MODELING VISUALIZATION
|
pload XDE OCAF MODELING VISUALIZATION
|
||||||
catch { Close D }
|
catch { Close D }
|
||||||
|
# PBR requires OpenGL 3.0+ on macOS
|
||||||
|
if { $::tcl_platform(os) == "Darwin" } { vcaps -core }
|
||||||
|
@ -1,2 +1,4 @@
|
|||||||
pload XDE OCAF MODELING VISUALIZATION
|
pload XDE OCAF MODELING VISUALIZATION
|
||||||
catch { Close D }
|
catch { Close D }
|
||||||
|
# PBR requires OpenGL 3.0+ on macOS
|
||||||
|
if { $::tcl_platform(os) == "Darwin" } { vcaps -core }
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
source $env(CSF_OCCTSamplesPath)/tcl/dimensions.tcl
|
source $env(CSF_OCCTSamplesPath)/tcl/dimensions.tcl
|
||||||
vcaps -ffp 0
|
vcaps -ffp 0
|
||||||
|
# PBR requires OpenGL 3.0+ on macOS
|
||||||
|
if { $::tcl_platform(os) == "Darwin" } { vcaps -core }
|
||||||
vrenderparams -shadingModel pbr
|
vrenderparams -shadingModel pbr
|
||||||
vlight -clear
|
vlight -clear
|
||||||
vlight -add ambient -intensity 1
|
vlight -add ambient -intensity 1
|
||||||
|
@ -9,6 +9,10 @@ puts "==============================================================="
|
|||||||
set aFile ${imagedir}/propeller.mkv
|
set aFile ${imagedir}/propeller.mkv
|
||||||
file delete -force ${aFile}
|
file delete -force ${aFile}
|
||||||
|
|
||||||
|
# Ray-Tracing doesn't work with Compatible Profile on macOS
|
||||||
|
pload VISUALIZATION
|
||||||
|
if { $::tcl_platform(os) == "Darwin" } { vcaps -core }
|
||||||
|
|
||||||
source $env(CSF_OCCTTestsPath)/v3d/anim/propeller
|
source $env(CSF_OCCTTestsPath)/v3d/anim/propeller
|
||||||
vraytrace 1
|
vraytrace 1
|
||||||
vrenderparams -msaa 8
|
vrenderparams -msaa 8
|
||||||
|
@ -3,6 +3,9 @@ puts "0031478: Visualization, TKOpenGl - allow uploading Cubemap in compressed D
|
|||||||
puts "============"
|
puts "============"
|
||||||
puts ""
|
puts ""
|
||||||
|
|
||||||
|
# PBR doesn't work with Compatible Profile on macOS
|
||||||
|
if { $::tcl_platform(os) == "Darwin" } { vcaps -core }
|
||||||
|
|
||||||
set aCubeMapPNG [locate_data_file cubemap_labels.png]
|
set aCubeMapPNG [locate_data_file cubemap_labels.png]
|
||||||
set aCubeMapDDS [locate_data_file cubemap_labels.dds]
|
set aCubeMapDDS [locate_data_file cubemap_labels.dds]
|
||||||
|
|
||||||
|
@ -4,6 +4,10 @@ puts "Test of point light's (positional and spot) attenuation and range in PBR"
|
|||||||
puts "========"
|
puts "========"
|
||||||
|
|
||||||
pload XDE OCAF VISUALIZATION MODELING
|
pload XDE OCAF VISUALIZATION MODELING
|
||||||
|
|
||||||
|
# PBR doesn't work with Compatible Profile on macOS
|
||||||
|
if { $::tcl_platform(os) == "Darwin" } { vcaps -core }
|
||||||
|
|
||||||
catch { Close D }
|
catch { Close D }
|
||||||
|
|
||||||
vclear
|
vclear
|
||||||
|
@ -3,6 +3,9 @@ puts "0030700: Visualization, TKOpenGl - support PBR Metallic-Roughness shading
|
|||||||
puts "Spheres grid with different roughness values"
|
puts "Spheres grid with different roughness values"
|
||||||
puts "========"
|
puts "========"
|
||||||
|
|
||||||
|
# PBR doesn't work with Compatible Profile on macOS
|
||||||
|
if { $::tcl_platform(os) == "Darwin" } { vcaps -core }
|
||||||
|
|
||||||
vclear
|
vclear
|
||||||
vclose ALL
|
vclose ALL
|
||||||
source $env(CSF_OCCTSamplesPath)/tcl/vis_pbr_spheres.tcl
|
source $env(CSF_OCCTSamplesPath)/tcl/vis_pbr_spheres.tcl
|
||||||
|
@ -5,6 +5,9 @@ puts "========"
|
|||||||
|
|
||||||
pload XDE OCAF MODELING VISUALIZATION
|
pload XDE OCAF MODELING VISUALIZATION
|
||||||
|
|
||||||
|
# PBR doesn't work with Compatible Profile on macOS
|
||||||
|
if { $::tcl_platform(os) == "Darwin" } { vcaps -core }
|
||||||
|
|
||||||
vclear
|
vclear
|
||||||
vclose ALL
|
vclose ALL
|
||||||
|
|
||||||
|
@ -2,6 +2,9 @@ puts "========"
|
|||||||
puts "Test various Shading Models assigned per-object"
|
puts "Test various Shading Models assigned per-object"
|
||||||
puts "========"
|
puts "========"
|
||||||
|
|
||||||
|
# PBR doesn't work with Compatible Profile on macOS
|
||||||
|
#if { $::tcl_platform(os) == "Darwin" } { vcaps -core }
|
||||||
|
|
||||||
# setup viewer
|
# setup viewer
|
||||||
vclear
|
vclear
|
||||||
vclose ALL
|
vclose ALL
|
||||||
|
@ -2,6 +2,9 @@ puts "========"
|
|||||||
puts "Test various Shading Models assigned per-object with transparency"
|
puts "Test various Shading Models assigned per-object with transparency"
|
||||||
puts "========"
|
puts "========"
|
||||||
|
|
||||||
|
# PBR doesn't work with Compatible Profile on macOS
|
||||||
|
if { $::tcl_platform(os) == "Darwin" } { vcaps -core }
|
||||||
|
|
||||||
# setup viewer
|
# setup viewer
|
||||||
vclear
|
vclear
|
||||||
vclose ALL
|
vclose ALL
|
||||||
|
@ -2,6 +2,9 @@ puts "========"
|
|||||||
puts "0024855: Revision of parameters of standard materials"
|
puts "0024855: Revision of parameters of standard materials"
|
||||||
puts "========"
|
puts "========"
|
||||||
|
|
||||||
|
# Ray-Tracing doesn't work with Compatible Profile on macOS
|
||||||
|
if { $::tcl_platform(os) == "Darwin" } { vcaps -core }
|
||||||
|
|
||||||
# custom shapes
|
# custom shapes
|
||||||
set aShape [locate_data_file occ/Top.brep]
|
set aShape [locate_data_file occ/Top.brep]
|
||||||
|
|
||||||
|
@ -3,6 +3,9 @@ puts "0031284: Visualization - XCAFDoc_VisMaterialPBR lacks Index of Refraction"
|
|||||||
puts "========"
|
puts "========"
|
||||||
|
|
||||||
pload MODELING XDE OCAF VISUALIZATION
|
pload MODELING XDE OCAF VISUALIZATION
|
||||||
|
# Ray-Tracing doesn't work with Compatible Profile on macOS
|
||||||
|
if { $::tcl_platform(os) == "Darwin" } { vcaps -core }
|
||||||
|
|
||||||
box b 0.5 1.0 -0.5 3 1 1
|
box b 0.5 1.0 -0.5 3 1 1
|
||||||
psphere s1 0.5
|
psphere s1 0.5
|
||||||
psphere s2 0.5
|
psphere s2 0.5
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# PBR requires OpenGL 3.0+ on macOS
|
||||||
|
pload VISUALIZATION
|
||||||
|
if { $::tcl_platform(os) == "Darwin" } { vcaps -core }
|
||||||
|
|
||||||
source $env(CSF_OCCTSamplesPath)/tcl/materials.tcl
|
source $env(CSF_OCCTSamplesPath)/tcl/materials.tcl
|
||||||
vlight -change 0 -intensity 5
|
vlight -change 0 -intensity 5
|
||||||
vrenderparams -shadingModel PBR -msaa 0
|
vrenderparams -shadingModel PBR -msaa 0
|
||||||
|
@ -4,5 +4,9 @@ puts "Test emission material within Ray-Tracing"
|
|||||||
puts "========="
|
puts "========="
|
||||||
puts ""
|
puts ""
|
||||||
|
|
||||||
|
# Ray-Tracing doesn't work with Compatible Profile on macOS
|
||||||
|
pload VISUALIZATION
|
||||||
|
if { $::tcl_platform(os) == "Darwin" } { vcaps -core }
|
||||||
|
|
||||||
source $env(CSF_OCCTSamplesPath)/tcl/materials.tcl
|
source $env(CSF_OCCTSamplesPath)/tcl/materials.tcl
|
||||||
vrenderparams -raytrace -msaa 0
|
vrenderparams -raytrace -msaa 0
|
||||||
|
@ -1,2 +1,6 @@
|
|||||||
set subgroup "raytrace"
|
set subgroup "raytrace"
|
||||||
|
|
||||||
|
# Ray-Tracing doesn't work with Compatible Profile on macOS
|
||||||
|
if { $::tcl_platform(os) == "Darwin" } { vcaps -core }
|
||||||
|
|
||||||
vinit View1
|
vinit View1
|
@ -3,6 +3,8 @@ puts "0031225: Visualization, TKOpenGl - support cubemap for environment texture
|
|||||||
puts "Spheres grid with different roughness values"
|
puts "Spheres grid with different roughness values"
|
||||||
puts "========"
|
puts "========"
|
||||||
|
|
||||||
|
cpulimit 600
|
||||||
|
|
||||||
vclear
|
vclear
|
||||||
vclose ALL
|
vclose ALL
|
||||||
source $env(CSF_OCCTSamplesPath)/tcl/vis_pbr_spheres.tcl
|
source $env(CSF_OCCTSamplesPath)/tcl/vis_pbr_spheres.tcl
|
||||||
|
Loading…
x
Reference in New Issue
Block a user