MantisBT
Mantis Bug Tracker Workflow

View Revisions: Issue #28127 All Revisions ] Back to Issue ]
Summary 0028127: Visualization - transparent object breaks Z-Layer depth buffer clear
Revision 2016-11-18 15:45 by kgv
Steps To Reproduce
pload MODELING VISUALIZATION
box r 0 0   0 1 0.1 1
box g 0 0.2 0 1 0.1 1
box b 0 0.4 0 1 0.1 1

vclear
vinit View1
vdisplay -noupdate -dispMode 1 -top r g b
vsetcolor -noupdate r RED
vsetcolor -noupdate g GREEN
vsetcolor -noupdate b BLUE1
vfit

vdisplay -topmost g
vzbufftrihedron -on -position left_upper
# OK - trihedron and green box are drawn topmost as expected

vsettransparency b 0.5
# KO - trihedron and green box are overlapped by red box

if { [vreadpixel 150 150 rgb name] != "GREEN3" } { puts "Error: wrong color - GREEN box 
should overlap RED one" }
if { [vreadpixel  84  64 rgb name] == "RED3"   } { puts "Error: wrong color - Trihedron 
should overlap RED box" }

Revision 2016-11-18 15:39 by kgv
Steps To Reproduce
pload MODELING VISUALIZATION
box r 0 0   0 1 0.1 1
box g 0 0.2 0 1 0.1 1
box b 0 0.4 0 1 0.1 1

vclear
vinit View1
vdisplay -noupdate -dispMode 1 -top r g b
vsetcolor -noupdate r RED
vsetcolor -noupdate g GREEN
vsetcolor -noupdate b BLUE1
vfit

vdisplay -topmost g
vzbufftrihedron -on -position left_upper
# OK - trihedron and green box are drawn topmost as expected

vsettransparency b 0.5
# KO - trihedron and green box are overlapped by red box



Copyright © 2000 - 2020 MantisBT Team
Powered by Mantis Bugtracker