View Issue Details

IDProjectCategoryView StatusLast Update
0031686CommunityOCCT:Visualizationpublic2021-09-20 11:08
ReporterVico Liang Assigned ToVico Liang  
PrioritynormalSeverityminor 
Status feedbackResolutionopen 
OSAndroid 
Product Version7.5.0 
Target Version7.7.0 
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

  • qyc-2400x1200.bmp (8,640,054 bytes)
  • qyc-2400x1200.jpg (237,709 bytes)
  • qyc-2400x1200.tga (8,640,018 bytes)
  • 牵引车-2400x1200.png (514,538 bytes)

Relationships

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

Activities

Vico Liang

2020-07-24 10:57

developer  

qyc-2400x1200.bmp (8,640,054 bytes)

Vico Liang

2020-07-24 10:59

developer  

qyc-2400x1200.jpg (237,709 bytes)

Vico Liang

2020-07-24 10:59

developer  

qyc-2400x1200.tga (8,640,018 bytes)

Vico Liang

2020-07-24 11:00

developer  

牵引车-2400x1200.png (514,538 bytes)

kgv

2020-07-24 11:51

developer   ~0093281

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?

Vico Liang

2020-07-24 12:54

developer   ~0093286

becomes black, no any warning message.

Vico Liang

2020-07-24 12:55

developer   ~0093287

I checked with Image_AlienPixMap::Load, it returns true.

kgv

2021-03-02 16:14

developer   ~0099304

Last edited: 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
2021-09-20 11:08 kgv Target Version 7.6.0 => 7.7.0