So i have this gui with a DImage. Im using a vtf file for the dimage texture. In VTFEdit the vtf file looks ok but ingame the image is just black (the image should be all red). the shape is like it should be and transparency works but theres no colors? File format is default: alpha format is DXT5 format and normal texture format DXT1
any idea what could cause this?
[CODE]
local DImage = vgui.Create( "DImage", DPanel )
DImage:SetSize(64,128)
DImage:SetImage("gui/redbox.vtf")
DImage:SetPos(100,10)
[/CODE]
Managed to make it work. Instead of the VTF file i used a png and it worked fine.
Probably some setting in your .vmt, was the shadertype UnlitGeneric?
Sorry, you need to Log In to post a reply to this thread.