mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-18 14:27:39 +03:00
0031279: Visualization, TKOpenGl - environment background is misplaced within Ray-Tracing
Fixed problem with misplacing background texture in Ray-Tracing. An environment background is always drawn using a perspective matrix.
This commit is contained in:
18
tests/v3d/raytrace/bug31279
Normal file
18
tests/v3d/raytrace/bug31279
Normal file
@@ -0,0 +1,18 @@
|
||||
puts "============"
|
||||
puts "0031279: Visualization, TKOpenGl - environment background is misplaced within Ray-Tracing"
|
||||
puts "============"
|
||||
puts ""
|
||||
|
||||
source $env(CSF_OCCTSamplesPath)/tcl/raytrace.tcl
|
||||
vrenderparams -env
|
||||
vcamera -persp
|
||||
vviewparams -scale 1.3 -proj 0.57 -0.57 0.57 -up -0.4 0.4 0.8 -at -62 -111 -15
|
||||
vtextureenv on 1
|
||||
|
||||
if { [vreadpixel 100 100 rgb name] == "BLACK" } { puts "ERROR: background is misplaced" }
|
||||
|
||||
vcamera -persp
|
||||
vdump $imagedir/${casename}_persp.png
|
||||
|
||||
vcamera -ortho
|
||||
vdump $imagedir/${casename}_ortho.png
|
Reference in New Issue
Block a user