mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-06-30 12:14:08 +03:00
OpenGL rendering is now done into sRGB framebuffer. OpenGl_ShaderManager::prepareStdProgramFboBlit() has been extended by programs resolving MSAA texture and applying gamma correction as fallbacks. Quantity_Color definition has been modified to store RGB components in linear color space within Quantity_TOC_RGB type. Standard colors defined by Quantity_NameOfColor enumeration has been updated accordingly. New Quantity_TOC_sRGB type has been introduced to handle RGB components in non-linear sRGB color space. OpenGl_TextureFormat class definition has been moved to dedicated files. New method OpenGl_TextureFormat::FindFormat() replaces OpenGl_Texture::GetDataFormat(). New method OpenGl_TextureFormat::FindSizedFormat() replaces OpenGl_FrameBuffer::getColorDataFormat() and OpenGl_FrameBuffer::getDepthDataFormat(). Graphic3d_TextureRoot::IsColorMap() - introduced new property defining if RGB(A)8 image formats should be loaded as sRGB(A) textures or as data RGB(A) textures. OpenGl_Texture initialization methods have been extended with new theIsColorMap argument. vreadpixel - added argument -sRGB printing color in sRGB color space. Test cases have been updated to new sRGB rendered results.
37 lines
1.0 KiB
Plaintext
37 lines
1.0 KiB
Plaintext
puts "============"
|
|
puts "OCC27818_2"
|
|
puts "============"
|
|
puts ""
|
|
####################################################################################
|
|
# Visualization - provide an interface to define highlight presentation properties:
|
|
# test change of highlight and selection properties for particular objects
|
|
####################################################################################
|
|
|
|
|
|
pload QAcommands VISUALIZATION
|
|
|
|
vinit
|
|
OCC27818
|
|
|
|
vfit
|
|
|
|
vmoveto 200 200
|
|
set aPixelColor [vreadpixel 200 200 name rgba]
|
|
set aColor [lindex [split $aPixelColor { }] 0]
|
|
set aTrsp [lindex [split $aPixelColor { }] 1]
|
|
if {$aColor != "CHOCOLATE3" && abs($aTrsp - 1.0) < 0.1} {
|
|
puts "ERROR: dynamic highlight of 2nd box is displayed with wrong color!"
|
|
}
|
|
|
|
vdump $imagedir/${casename}_dyn.png
|
|
|
|
vselect 50 200 1
|
|
vselect 200 200 1
|
|
vselect 350 200 1
|
|
|
|
if {[vreadpixel 350 200 name rgba] != "RED2 1" || [vreadpixel 350 200 name rgba] == [vreadpixel 200 200 name rgba]} {
|
|
puts "ERROR: selection highlight of 3rd box is displayed with wrong color!"
|
|
}
|
|
|
|
vdump $imagedir/${casename}_sel.png
|