dehysqop Posted March 4, 2014 Author Share Posted March 4, 2014 Hi hum… Yes i just download the Apocalypse Engine from EO3.0 but the problem is that the UI is in JPG and I need a Transparent UI without loosing quality like JPG. That's why i'm looking to know how am I supposed to convert the JPG to .PNG .I found some line like : ``` frmMain.picInventory.Picture = LoadPicture(App.Path & "\data files\graphics\gui\main\inventory.jpg")```and then i edit it for :``` frmMain.picInventory.Picture = LoadPicture(App.Path & "\data files\graphics\gui\main\inventory.png")```But it make me an error that it can't find the image. How can i fix that? Thank you guys ^^'Sorry for my mad english… i'm french..' Link to comment Share on other sites More sharing options...
Matt Posted March 4, 2014 Share Posted March 4, 2014 ![](http://i.imgur.com/RtYCmPd.png) Link to comment Share on other sites More sharing options...
dehysqop Posted March 4, 2014 Author Share Posted March 4, 2014 I know how to export or save as png… The file is named correctly and it's in the right folder but it's probably the DX8 version who not support png? Link to comment Share on other sites More sharing options...
PD Posted March 4, 2014 Share Posted March 4, 2014 Because you're a using the LoadPicture method to load a file type that is not supported. If you want to use a PNG file then you must use DirectX8 to render that image to the PictureBox. Link to comment Share on other sites More sharing options...
dehysqop Posted March 4, 2014 Author Share Posted March 4, 2014 Thank you mister Zesh ^^ Link to comment Share on other sites More sharing options...
dehysqop Posted March 4, 2014 Author Share Posted March 4, 2014 Hum like that ? ``` With GUIWindow(GUI_INVENTORY) .x = Val(GetVar(filename, "GUI_INVENTORY", "X")) .y = Val(GetVar(filename, "GUI_INVENTORY", "Y")) .Width = Val(GetVar(filename, "GUI_INVENTORY", "Width")) .Height = Val(GetVar(filename, "GUI_INVENTORY", "Height")) .Visible = False End With``` Link to comment Share on other sites More sharing options...
PD Posted March 4, 2014 Share Posted March 4, 2014 Try it and then report back if you get a problem. Link to comment Share on other sites More sharing options...
dehysqop Posted March 5, 2014 Author Share Posted March 5, 2014 Nop, the script don't understand that it need to load the picture, hum do you have an engine with a png UI that i can convert the script? ^ ^ Link to comment Share on other sites More sharing options...
abhi2011 Posted March 16, 2014 Share Posted March 16, 2014 Just adding it in won't work. You'll have to render the image. Almost all engines on the forums use DX8\. Just go to modGraphics or whateever the name of the graphics module and look at how the rendering takes place. **A DX7 engine will not work!** Link to comment Share on other sites More sharing options...
deathtaker26 Posted March 16, 2014 Share Posted March 16, 2014 Umm am I the only one that realizes that mspaint doesn't support transparency .-. even WITH a PNG Link to comment Share on other sites More sharing options...
Lavos Posted March 17, 2014 Share Posted March 17, 2014 I suggest you learn how graphics are handled in the module, if you are able to render a png file on to the screen then you'll eventually find many ways to alter ur game graphics and animations. Also u need to get rid of the picture boxes and rewrite how the GUI is being handled on ur engine. Lastly confirm ur engine is using directx 8. Link to comment Share on other sites More sharing options...
Matt Posted March 17, 2014 Share Posted March 17, 2014 > Umm am I the only one that realizes that mspaint doesn't support transparency .-. even WITH a PNGProbably not. However, that wasn't the problem I was addressing.> i'm looking to know how am I supposed to convert the JPG to .PNG .> > > > But it make me an error that it can't find the image. How can i fix that? Thank you guys ^^While it wasn't what he meant, the way he wrote it made it look to me that he didn't know how to convert a jpeg to a png. Don't be so quick to criticize ;) Link to comment Share on other sites More sharing options...
santa-clause Posted March 23, 2014 Share Posted March 23, 2014 Maybe take a look at my tutorial i made on directx8 rendering.[http://www.eclipseorigins.com/community/index.php?/topic/133940-basic-dx8-rendering/](http://www.eclipseorigins.com/community/index.php?/topic/133940-basic-dx8-rendering/)It's kinda complicated for beginning vb6 programmers.But it's the only dx8 rendering tutorial around here i think. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now