About Store Forum Documentation Contact
Donations:
327$/mo



Post Reply 
[linux] Can't create atlas
Author Message
neuroliquid Offline
Member

Post: #1
[linux] Can't create atlas
Getting only empty output atlas file (7 bytes in size), working on Ubuntu 18.04.2 LTS

Code:
void InitPre()
{
   App.flag=APP_WORK_IN_BACKGROUND | APP_HIDDEN;
   EE_INIT();
}

bool Init()
{
   Image temp;
   temp.Import("/home/mapoz/a.jpg");
   ImageAtlas::Source stemp;
   stemp.set(&temp, "");
   Memc<ImageAtlas::Source> images;
   images.add(stemp);
   ImageAtlas external;
   external.create(images,IMAGE_BC7);
   external.save("/home/mapoz/atlas.atlas");
   Exit();
   return true;
}

void Shut(){}
bool Update(){return true;}
void Draw(){}
06-19-2019 03:01 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: [linux] Can't create atlas
Quote:IMAGE_BC7 , // BC7 8-bit lossy RGBA high quality compression , linear gamma, Soft, DX11+, partial GL (compressing images to this format is available only when 'SupportCompressBC' was called in 'InitPre')
06-19-2019 03:58 PM
Find all posts by this user Quote this message in a reply
Post Reply