MantisBT
Mantis Bug Tracker Workflow

occt: master faff3767 Diff ] Back to Repository ]
Author Committer Branch Timestamp Parent
kgv bugmaster master 2020-05-15 23:47:20 master 691711cd
Affected Issues 0031478: Visualization, TKOpenGl - allow uploading Cubemap in compressed DDS format when supported by GPU
Changeset 0031478: Visualization, TKOpenGl - allow uploading Cubemap in compressed DDS format when supported by GPU

Graphic3d_TextureRoot::GetCompressedImage() - added new interface for fetching compressed texture image.
Default implementation detects DDS image files using Image_DDSParser parser.

Graphic3d_TextureRoot::GetImage() has been extended with new parameter
- the list of image formats supported by OpenGL driver.
Graphic3d_TextureRoot::convertToCompatible() implicitly converts
BGRA image to RGBA on OpenGL ES, which normally does not support BGR formats.

OpenGl_Caps::isTopDownTextureUV - new property defines how application defines
UV texture coordinates in primitive arrays.
OpenGl_Context::SetTextureMatrix() compares this flag with OpenGl_Texture::IsTopDown()
and automatically flips V coordinate in case of mismatch.

OpenGl_Texture now holds exact number of mipmap levels
instead of Boolean flag indicating that they are defined.
This allows loading DDS files with incomplete mipmap level set
by setting GL_TEXTURE_MAX_LEVEL to appropriate value instead of default 1000
(causing black textures in case if mipmap levels are not defined till 1x1).

Fixed order of texture coordinates transformation within GLSL program to match FFP matrix:
Rotate -> Translate -> Scale (previously Rotation was applied afterwards).
mod - samples/mfc/standard/Common/Primitive/Sample2D_Image.cpp Diff ] File ]
mod - src/AIS/AIS_XRTrackedDevice.cxx Diff ] File ]
mod - src/Aspect/Aspect_OpenVRSession.cxx Diff ] File ]
mod - src/Graphic3d/Graphic3d_CubeMap.hxx Diff ] File ]
mod - src/Graphic3d/Graphic3d_CubeMapPacked.cxx Diff ] File ]
mod - src/Graphic3d/Graphic3d_CubeMapPacked.hxx Diff ] File ]
mod - src/Graphic3d/Graphic3d_CubeMapSeparate.cxx Diff ] File ]
mod - src/Graphic3d/Graphic3d_CubeMapSeparate.hxx Diff ] File ]
mod - src/Graphic3d/Graphic3d_MediaTexture.cxx Diff ] File ]
mod - src/Graphic3d/Graphic3d_MediaTexture.hxx Diff ] File ]
mod - src/Graphic3d/Graphic3d_TextureParams.hxx Diff ] File ]
mod - src/Graphic3d/Graphic3d_TextureRoot.cxx Diff ] File ]
mod - src/Graphic3d/Graphic3d_TextureRoot.hxx Diff ] File ]
mod - src/Image/FILES Diff ] File ]
add - src/Image/Image_CompressedFormat.hxx Diff ] File ]
add - src/Image/Image_CompressedPixMap.hxx Diff ] File ]
add - src/Image/Image_DDSParser.cxx Diff ] File ]
add - src/Image/Image_DDSParser.hxx Diff ] File ]
mod - src/Image/Image_Format.hxx Diff ] File ]
mod - src/Image/Image_PixMap.cxx Diff ] File ]
mod - src/Image/Image_PixMap.hxx Diff ] File ]
add - src/Image/Image_SupportedFormats.cxx Diff ] File ]
add - src/Image/Image_SupportedFormats.hxx Diff ] File ]
mod - src/Image/Image_Texture.cxx Diff ] File ]
mod - src/Image/Image_Texture.hxx Diff ] File ]
mod - src/OpenGl/OpenGl_Caps.cxx Diff ] File ]
mod - src/OpenGl/OpenGl_Caps.hxx Diff ] File ]
mod - src/OpenGl/OpenGl_Context.cxx Diff ] File ]
mod - src/OpenGl/OpenGl_Context.hxx Diff ] File ]
mod - src/OpenGl/OpenGl_GlFunctions.hxx Diff ] File ]
mod - src/OpenGl/OpenGl_PrimitiveArray.cxx Diff ] File ]
mod - src/OpenGl/OpenGl_Sampler.cxx Diff ] File ]
mod - src/OpenGl/OpenGl_Sampler.hxx Diff ] File ]
mod - src/OpenGl/OpenGl_ShaderManager.cxx Diff ] File ]
mod - src/OpenGl/OpenGl_Texture.cxx Diff ] File ]
mod - src/OpenGl/OpenGl_Texture.hxx Diff ] File ]
mod - src/OpenGl/OpenGl_TextureFormat.cxx Diff ] File ]
mod - src/OpenGl/OpenGl_TextureFormat.hxx Diff ] File ]
mod - src/OpenGl/OpenGl_View.cxx Diff ] File ]
mod - src/ViewerTest/ViewerTest_ViewerCommands.cxx Diff ] File ]
mod - src/XCAFPrs/XCAFPrs_Texture.cxx Diff ] File ]
mod - src/XCAFPrs/XCAFPrs_Texture.hxx Diff ] File ]
add - tests/v3d/glsl/cubemap_dds Diff ] File ]
mod - tests/v3d/glsl/texture_trsf2 Diff ] File ]
add - tests/v3d/glsl/texture_trsf3 Diff ] File ]


Copyright © 2000 - 2020 MantisBT Team
Powered by Mantis Bugtracker