Images in Source

Monday, August 15, 2011

One thing that annoys me in the Source Engine is materials and textures. It's an awesomely powerful system when you need it. But I don't particularly want every texture I use on my GUI to have a generic vmt file with just the $basetexture replaced.

So I've made it so that in the next version of Garry's Mod you can load png/jpeg files as simple flat textures - simply by using the filename.


  • Only loading one file - so half the disk access time
  • Not losing out, still got the previous system
  • More accessible
  • Potentially load images from the web straight onto the GUI

It's pretty much as simple as it could be. It looks like this:

local mymaterial = Material( "gui/header.png" )

I'm playing around with it and exploring the possibilities. The same system has scope to do some cool things.

More Rubbish

Your Portfolio Gave Me Diarrhea

Friday, October 1, 2021


Friday, September 24, 2021

We got married

Thursday, September 16, 2021

Unity Quiz

Sunday, September 6, 2020

Everything We Watched In Lockdown

Thursday, September 3, 2020

Visual Studio for Lua editing

Friday, August 12, 2011

More Android bitching

Wednesday, August 10, 2011


Tuesday, August 9, 2011

Home Gym

Tuesday, August 9, 2011

Android vs iOS

Monday, August 8, 2011