Please or Register to create posts and topics.

Glass Lights VMT

Hey, I'm just trying to get something working for my Portal mod, similar to the glass_lightcover models in Portal 2. (I'm aware that using the model and textures from Portal 2 isn't allowed - I'm using my own textures and models and such, I'm just trying to imitate the effect to get a bit more depth).

Basically, I am trying to do the strange fake depth effect that the glass lights have. The closest I've gotten is refraction of the material (like the basetexture is a crosshair, its fixed to fill the view of the player and only visible through the glass).

It doesn't really seem to work in Portal 2 either (the map usually crashes).

Any help here? :c

I;m afraid I don't quite folow:
You want glass in portal 1, on a model.
You need a texture for this (thus a vmt file)
You copied properties from the portal 2 vmt's and copied them over but it does not work?

Then there is something with fake depth? What do you mean? can you give an example? possibly from p2?

I can't get a screenshot at a little bit, but you know the long glass lights? They are actually totally 2D with some fancy manipulation of textures.

I have a feeling that it is due to a shader var that i've never seen before.
The likes of "$localrefract 1".

lpfreaky90 wrote:
I;m afraid I don't quite folow:
You want glass in portal 1, on a model.
You need a texture for this (thus a vmt file)
You copied properties from the portal 2 vmt's and copied them over but it does not work?

Then there is something with fake depth? What do you mean? can you give an example? possibly from p2?

Well the inset light models are 2d planes; ie flat. The inside refraction fakes depth because of how the internally refracted portion moves. This is a new shader effect (hence "$localrefract 1") that is non-existant in p1. @OP, you'll have to do it the way the P2 Collab did it: observation glass texture in front of a brush-built light shape behind it.

As for why it fails in p2: in p2 refacts have to be on a model.

EDIT: I did it from my ancient p2-in-p1 mappack:

Image

Image

Yeah, that's how i've done the lights up until now, so i guess i'll just keep doing them like that. Thankies :D