Graphic3d_CubeMapPacked Error

TCollection_AsciiString filename = QString("C:/Users/pathToPicture/sky.png").toStdString().c_str();
Graphic3d_CubeMapPacked  cubeMap(filename);
m_view->SetBackgroundCubeMap(&cubeMap);

Produces following error:

TKOpenGl | Type: Error | ID: 0 | Severity: High | Message:
  Unable to get the first side of cubemap

Any idea what I am missing?

Thanks!

Kirill Gavrilov's picture

Wrong dimensions of (not attached) image "sky.png"?

Daniel Duesentrieb's picture

sky.png seems to be ok.

m_view->SetBackgroundImage("C:/Users/pathToPicture/sky.png")

is working correct.

Also tried differend file formats (jpg, png, bmp)

Kirill Gavrilov's picture

That's how cubemap image usually looks.

Attachments: 
Daniel Duesentrieb's picture

works!

Thanks!!

Edit:
For some reason the cube is up side down and mirrored?

BTW: Left and Right are both "+" in your picture ;)