mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-06-05 11:24:17 +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.
23 lines
586 B
Plaintext
23 lines
586 B
Plaintext
puts "=================="
|
|
puts "0028988: Visualization - AIS_InteractiveContext::SetLocation() does not reset location properly"
|
|
puts "=================="
|
|
puts ""
|
|
|
|
pload MODELING VISUALIZATION
|
|
|
|
box b 1 2 3
|
|
vclear
|
|
vinit View1
|
|
vaxo
|
|
vdisplay -dispMode 1 -highMode 1 b
|
|
vfit
|
|
vmoveto 110 110
|
|
if { "[vreadpixel 110 110 rgb name]" != "CYAN2" } { puts "Error: shape is not selected!" }
|
|
|
|
vlocation b -translate 1 0 0
|
|
vmoveto 110 110
|
|
vlocation b -reset
|
|
vmoveto 110 110
|
|
vreadpixel 110 110 rgb name
|
|
if { "[vreadpixel 110 110 rgb name]" != "CYAN2" } { puts "Error: resetted shape is not selected!" }
|