Dreikblack Posted May 24 Posted May 24 idk which exactly format to use. This is BC1 (DX11), saved with Paint net. Tried to convert to png and back with Editor, but image became bluish Ogre.zip #include "Leadwerks.h" using namespace Leadwerks; int main(int argc, const char* argv[]) { //Get the displays auto displays = GetDisplays(); //Create window auto window = CreateWindow("Ultra Engine", 0, 0, 800, 600, displays[0]); //Create user interface auto ui = CreateInterface(window); //Create a pixmap auto pixmap = LoadPixmap("Ogre.dds"); //Show the pixmap ui->root->SetPixmap(pixmap); while (true) { const Event ev = WaitEvent(); switch (ev.id) { case EVENT_WINDOWCLOSE: return 0; break; } } return 0; } Quote Check out Slipgate Tactics demo, which is made with Ultra Engine/Leadwerks 5: https://www.leadwerks.com/community/topic/61480-slipgate-tactics-demo/
Dreikblack Posted May 24 Author Posted May 24 Manage to make it work with changing size, but background is not transparent in app Ogre.zip Quote Check out Slipgate Tactics demo, which is made with Ultra Engine/Leadwerks 5: https://www.leadwerks.com/community/topic/61480-slipgate-tactics-demo/
Josh Posted July 15 Posted July 15 The problem is this DDS file is invalid. Any DDS file using compression must have a power-of-two size. have dimensions that are divisible by four. I am adding some additional error checking, but that will only cause this DDS file to not get loaded. How was it created? Did you load a pixmap, convert to BC1, and save it in Leadwerks? Quote Let's build cool stuff and have fun.
Dreikblack Posted July 16 Author Posted July 16 6 hours ago, Josh said: How was it created? Did you load a pixmap, convert to BC1, and save it in Leadwerks? No, like i said i saved it with Paint.net editor with BC1 (DX11). Should been saved in BC7 - i forgot which one is work back then. Should be mentioned somewhere which compression is correct and size divisible by four, because it's not intuitive and in Pain.net my file was totally valid. Quote Check out Slipgate Tactics demo, which is made with Ultra Engine/Leadwerks 5: https://www.leadwerks.com/community/topic/61480-slipgate-tactics-demo/
Solution Josh Posted July 16 Solution Posted July 16 BC/DXT compression requires 4x4 blocks. This is a bug in Paint.net. I added a note of this here, with more info to come: https://github.com/Leadwerks/Documentation/blob/master/textureeditor.md Quote Let's build cool stuff and have fun.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.