MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0031686Community[OCCT] OCCT:Visualizationpublic2020-07-24 10:572021-03-02 16:15
ReporterVico Liang 
Assigned ToVico Liang 
PrioritynormalSeverityminor 
StatusfeedbackResolutionopen 
PlatformOSAndroidOS Version
Product Version[OCCT] 7.5.0 
Target Version[OCCT] 7.6.0*Fixed in Version 
Summary0031686: Visualization - V3d_View::SetBackgroundImage() not working for .bmp .jpg and .tga formats
DescriptionThe target environment is Android Arm64-v8a.
OCCT code: latest dev version
freeimage version: freeimage3170 and freeimage3180
Build host: windows 10, ndk20
SetBackgroundImage works for .png and .tif format.
It fails for images .bmp .jpg and .tga formats.

The image files are attached for bug checking.





TagsNo tags attached.
Test case number
Attached Files? file icon qyc-2400x1200.bmp (8,640,054 bytes) 2020-07-24 10:57
jpg file icon qyc-2400x1200.jpg (237,709 bytes) 2020-07-24 10:59
? file icon qyc-2400x1200.tga (8,640,018 bytes) 2020-07-24 10:59
png file icon 牵引车-2400x1200.png (514,538 bytes) 2020-07-24 11:00

- Relationships
related to 0031683closedabv Community Visualization - V3d_View::SetBackgroundImage() should accept Image_PixMap 
related to 0032093verifiedbugmaster Open CASCADE Visualization, TKOpenGl - loading texture in BGR format fails in OpenGL ES 

-  Notes
(0093281)
kgv (developer)
2020-07-24 11:51

Are there any messages coming into Message::DefaultMessenger() indicating some issues? What does it mean "not working" - background does not change / corrupted / becomes white / black?
(0093286)
Vico Liang (developer)
2020-07-24 12:54

becomes black, no any warning message.
(0093287)
Vico Liang (developer)
2020-07-24 12:55

I checked with Image_AlienPixMap::Load, it returns true.
(0099304)
kgv (developer)
2021-03-02 16:14
edited on: 2021-03-02 16:15

Dear Vico,

as you are using FreeImage, I guess the issue is in BGR pixel format returned by this image library for these files (not BGRA or RGB/RGBA supported by OpenGL ES) as described in 0032093.
Could you please check if referred patch solves the issue?


- Issue History
Date Modified Username Field Change
2020-07-24 10:57 Vico Liang New Issue
2020-07-24 10:57 Vico Liang Assigned To => kgv
2020-07-24 10:57 Vico Liang File Added: qyc-2400x1200.bmp
2020-07-24 10:59 Vico Liang File Added: qyc-2400x1200.jpg
2020-07-24 10:59 Vico Liang File Added: qyc-2400x1200.tga
2020-07-24 11:00 Vico Liang File Added: 牵引车-2400x1200.png
2020-07-24 11:51 kgv Note Added: 0093281
2020-07-24 11:52 kgv Relationship added related to 0031683
2020-07-24 12:54 Vico Liang Note Added: 0093286
2020-07-24 12:55 Vico Liang Note Added: 0093287
2020-09-21 17:42 kgv Target Version 7.5.0 => 7.6.0*
2021-03-02 16:12 kgv Relationship added related to 0032093
2021-03-02 16:14 kgv Note Added: 0099304
2021-03-02 16:14 kgv Assigned To kgv => Vico Liang
2021-03-02 16:14 kgv Status new => feedback
2021-03-02 16:15 kgv Note Edited: 0099304 View Revisions


Copyright © 2000 - 2021 MantisBT Team
Powered by Mantis Bugtracker