mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-06-15 04:04:07 +08: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.
35 lines
1.0 KiB
Plaintext
35 lines
1.0 KiB
Plaintext
puts "============="
|
|
puts "0030949: Foundation Classes - Dump improvement for OCCT classes"
|
|
puts "============="
|
|
|
|
pload VISUALIZATION
|
|
vinit View1
|
|
|
|
set pred 0.088428
|
|
set pgreen 0.041081
|
|
set pblue 0.00209
|
|
|
|
set dump_aligned_off [vaspects -defaults -dumpJson -dumpCompact on]
|
|
|
|
if {![regexp {"RGB": \[+([-0-9.+eE]+)\, +([-0-9.+eE]+)\, +([-0-9.+eE]+)\]} $dump_aligned_off full cred cgreen cblue]} {
|
|
puts "Error in Dump. Wrong format of output."
|
|
}
|
|
|
|
checkreal "Cred" $cred $pred 1.0e-7 0.0
|
|
checkreal "Cgreen" $cgreen $pgreen 1.0e-7 0.0
|
|
checkreal "Cblue" $cblue $pblue 1.0e-7 0.0
|
|
|
|
|
|
set dump_aligned_off_deep [vaspects -defaults -dumpJson -dumpCompact on -dumpDepth 2]
|
|
|
|
if {[regexp {\[+([-0-9.+eE]+)\, +([-0-9.+eE]+)\, +([-0-9.+eE]+)\]} dump_aligned_off_deep full cred cgreen cblue]} {
|
|
puts "Error in Dump. Wrong deep of output"
|
|
}
|
|
|
|
|
|
puts "Aligned Dump of vaspects:"
|
|
set dump_aligned_on [vaspects -defaults -dumpJson]
|
|
|
|
puts "Aligned Dump of vaspects (deep = 2):"
|
|
set dump_aligned_on_deep [vaspects -defaults -dumpJson -dumpCompact off -dumpDepth 2]
|