damyon
-
Posts
5 -
Joined
-
Last visited
Content Type
Blogs
Forums
Store
Gallery
Videos
Posts posted by damyon
-
-
Aha - I found where to change it and it works now - thanks. Maybe this should be the default for imported images with alpha?
-
I am trying to create a HUD out of some png images - but whenever I draw the image, it shows white where it should be transparent. The image is saved as a png with an alpha channel, but I tried tga as well with the same result. I am using 3.2 Indie Edition on Linux.
The image file is attached.
Here is my code to load the image:
function Script:Start()
self.texture = Texture:Load("Materials/HUD/hud.tex")
end
And here is my code to draw it:
function Script:PostRender(context)
context:SetBlendMode(Blend.Alpha)
context:SetColor(1, 1, 1)
left = context:GetWidth() - self.texture:GetWidth()
top = context:GetHeight() - self.texture:GetHeight()
context:DrawImage(self.texture,left,top)
context:SetBlendMode(Blend.Solid)
context:Sync();
end
What I think the problem is:
The automated conversion to textures is converting all images to DXCT1 RGB which has no alpha channel, but the working transparent textures that come with the editor use RGBA.
-
Thanks very much for fixing this so quickly - I reopened my project today and now it works.
I am enjoying using this editor very much (2 days) - and well done on the linux port - that is what sold me.
Cheers!
-
Anytime I try to import a image and have it converted to a texture it fails. I have tried DDS, jpg, png and bmp images - 1024x1024.
Sample log messages:
Converting "Materials/Nature/fish.bmp"...
Converting "Materials/Nature/fish.bmp"...
File does not exist: /home/damyon/Documents/Leadwerks/Projects/Sheepish/Materials/Nature/fish.tex
Converting "Materials/Nature/fish.bmp"...
Failed to load thumbnail 6 for /home/damyon/Documents/Leadwerks/Projects/Sheepish/Materials/Nature/fish.tex
Error: Failed to load texture "/home/damyon/Documents/Leadwerks/Projects/Sheepish/Materials/Nature/fish.tex"
Failed to load thumbnail 6 for /home/damyon/Documents/Leadwerks/Projects/Sheepish/Materials/Nature/fish.tex
Error: Failed to load texture "/home/damyon/Documents/Leadwerks/Projects/Sheepish/Materials/Nature/fish.tex"
Failed to load thumbnail 6 for /home/damyon/Documents/Leadwerks/Projects/Sheepish/Materials/Nature/fish.tex
Error: Failed to load texture "/home/damyon/Documents/Leadwerks/Projects/Sheepish/Materials/Nature/fish.tex"
This is Leadwerks 3.2 Indie Edition for Steam (Linux).
Thanks!
Cannot select any game in the Launcher
in Linux
Posted
I cannot use the Game Launcher on linux. I have selected games from the workshop within steam and subscribed - steam has downloaded and installed the games - but when I open the launcher, there is never anything to select. This is only a UI problem though because I can launch a game, I just cant do anything to see the list of games or change which one is selected.
(Which is a shame because I just published a game and want to see how it worked in the launcher).
I tried the normal launcher and the beta - same result.