Yue Posted August 18, 2018 Posted August 18, 2018 I need to draw the face of the character on the screen, although in corel draw I set a mask for the image, in leadwerks you see the whole image, some suggestio Quote Murphy's Law: We don't fix bugs, we document them as features. – Murphy Games
Solution macklebee Posted August 18, 2018 Solution Posted August 18, 2018 DXT1 compression does not store alpha. DXT3 will show alpha - but its all or nothing. DXT5 will show alpha in a full gradient from 0 to 1. Uncompressed texture will also show the alpha and is best for a GUI image. Read the documentation on compression as this information is available: https://www.leadwerks.com/learn?page=Tutorials_Editor_Textures 2 Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel
Yue Posted August 18, 2018 Author Posted August 18, 2018 4 minutes ago, macklebee said: DXT1 compression does not store alpha. DXT3 will show alpha - but its all or nothing. DXT5 will show alpha in a full gradient from 0 to 1. Uncompressed texture will also show the alpha and is best for a GUI image. Read the documentation on compression as this information is available: https://www.leadwerks.com/learn?page=Tutorials_Editor_Textures Well, I've already got transparency in the editor, but it doesn't come out in the game with transparency. Edit: Script: function Script:PostRender(context) context:DrawImage(self.imgHudPlayer,context:GetWidth()-200, context:GetHeight()-200,200,200) end Quote Murphy's Law: We don't fix bugs, we document them as features. – Murphy Games
macklebee Posted August 18, 2018 Posted August 18, 2018 function Script:PostRender(context) context:SetBlendMode(Blend.Alpha) context:DrawImage(self.imgHudPlayer,context:GetWidth()-200, context:GetHeight()-200,200,200) context:SetBlendMode(Blend.Solid) end 1 Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel
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.