You need to log in to create posts and topics.

The Thread For Small Problems And Requests

@presto668: Well, there are several reasons why that texture isn't working for you. You should grab that material from the pak01_dir.VPK and edit the .VMT to change a couple of things:

1. You need to erase the parameter $model 1. This makes the material ready to be used in models only.

2. In order to turn the material into a glass when applied to world brushes, you should add the parameter $translucent 1, otherwise it'll have a solid look being impossible to see through.

3. Even though for models the parameter $basetexture works fine, you can't use it in world brushes. Here you need to replace it by the $refracttinttexture one. However, you can't use the lightcover texture (materialsglassrefract_light_color.vtf) here since it lacks from .VMT file and you'll see a purple checkerboard in game instead. There's a trick if you really want to use this one, to add the ".VTF" file extension inside the .VMT like so:

$refracttinttexture "glass/refract_light_color.vtf"

I don't really know why and how you want to use this, but take into account that the alpha channel for the texture to be used here is the key. For instance, that texture "glass/refract_light_color.vtf" has the oval white shape with transparency (in order to let the light to pass through) while the rest (the gray one) is totally opaque (to avoid the light from passing through). You might consider making a custom texture for this according to what you need.

4. There are a couple of parameters intended to be used in models only, which effect in world brushes is weird, so you better erase them:

- $localrefract 1
- $localrefractdepth "0.05"

That's all you need to change ;)

Take a look to the attached material. I just modified the "materialsglassglasswindow_refract01.vmt" for you according to the above explanation. I added a custom texture that I used in my map Oxygen Station for the window glass in my observation rooms. I made it with ripples that fit the normal map (which is the one that is actually causing that "curly" refracting effect in game). Also, note that for the several lightcover types (warm, neutral and cool) the only param that changes is the $refracttint one, you might want to play with those values to get your desired color.

Good luck!

ImageImageImageImageImageuseful tools and stuff here on TWP :thumbup:

Although this is mostly unrelated to the problem, I wanted to thank you for all that material info!
I've been wanting to use a simple refracting glass texture for a while, so using parts of what you said, I simply copied the .vmt for observation glass, renamed it, gave it a $refracttinttexture target of my own creation, and voila! Observation glass on more than just observation windows!
Thanks! If I ever feel I need tinted versions I can probably just repeat the process with different tint textures.

I think this site could benefit from a full aesthetic/functionality overhaul. Like the Black Mesa forums. They had a site overhaul recently and personally I've found the new forum much easier to use.
Plus, I kinda find all this white a little blinding.

Thanks, jose. I had to change the $refractinttexture in your example, otherwise I just got a big blue and white rectangle. :) Also it seems like $translucent isn't needed in this case.

The reason I wanted it is because I'm trying to make something that looks like a narrower version of the standard light strip. Having gotten the texture working though I think I'm going to have to try another route. The texture looks too... flat? Like it doesn't have the depth of the normal light strip (which I know is a model), and the white oval doesn't look distorted enough.

Me again, with a modding question.

I've successfully popped a sorta-working FoV slider into the Video Settings menu, which was fun. Basically I took video.res, tweaked it to include a field-of-view slider, and packed it into dlc3. That was easy and it even works too! (sorta hehe)

Now I'm trying to add more buttons (and another menu! wow) to the in-game pause menu (for demos), but I'm running into trouble.

a) Which res file do I need to edit to do this?
b) Will it also work in Puzzlemaker maps or do I need to edit another file?
c) Is this even possible at all, lol, am I crazy.

I tried adding new entries to ingamemainmenu.res, but it's not working (just uses the same menu)


I seem to be having an issue with creating a .raw file for color correction. I've looked up tutorials on how to do it on Youtube, and followed them correctly. The problem is that when I save the .vcc file, a .raw file is not created, nor do I have the option to save it as a .raw file in the save window. I've searched my Steam directory extensively for the .raw file, but I only found the default ones, not the ones I need to create.

Does anyone know what's wrong with the Portal 1 door and button VMTs?

Does anyone know how to change a soundscript for the Portalgun and the physics sounds in a map?

Cyberwurx Web Hosting