• Imported PNG to VTFedit into a gamemode. Getting black artifacts?
    6 replies, posted
Hey! I imported a transparent PNG to VTFEdit and exported the vmt and vtf so I could use it for my custom hud. For some reason said image has black artifacts, how do I fix? [IMG]http://cloud-4.steampowered.com/ugc/559863671741330443/6E820FBF6CF15380EFB4417FE98E4B952BDB77BD/1024x640.resizedimage[/IMG] Thanks!
Set the lighting mode to "UnlitGeneric" in the .vmt
Sorry to sound nooby but how would one do that? [editline]26th October 2013[/editline] This si whats in my vmf file: [code] "LightmappedGeneric" { "$basetexture" "vgui/icons/heart" "$translucent" 1 } [/code]
I have a question: Why don't you just use the .png as your image? It already supports translucency and you don't need a .vmt associated with it, assuming that's all you wanted out of it. Also, a [I]quick lesson:[/I] "UnlitGeneric" is typically used for sprites and vgui elements. "LightmappedGeneric" is typically used for map textures. "VertexLitGeneric" is typically used for models.
Id love to use the pngs. How would I do it with this? [code] surface.SetTexture(surface.GetTextureID("vgui/icons/heart")) [/code]
[code]surface.SetMaterial( Material("vgui/icons/heart.png") )[/code]
Oh... didnt think itd be that easy haha. Thanks a lot!
Sorry, you need to Log In to post a reply to this thread.