Allowing Portals on Materials

Avatar
Yottabyte
5 Posts
Posted Nov 06, 2010
I'm making a custom material and I want to give it the reflectivity and sound of glass. I know how to get this far but I still want to materialize (allow one to put) portals on this surface. Here's what I have for the Valve Material Type (filename.vmt):

LightmappedGeneric
{
   $basetexture tilefloor
   $surfaceprop glass
   $bumpmap tilefloor_Bump
}

I do know how to stop the use of portals on a surface using the "%noportal" 1 command in the VMT but is their an inverse to that?

Advertisement
Registered users don’t see ads! Register now!
Avatar
msleeper
4,136 Posts
Admin
Posted Nov 06, 2010
Replied 34 minutes later
Portals are allowed on materials by default, you don't need to do anything special to make them work.
Avatar
Yottabyte
5 Posts
Posted Nov 06, 2010
Replied 2 minutes later
I have chosen glass as the materias using this ($surfaceprop glass) line in my VMT. And the glass material, by default, won't materialize portals.
Avatar
p0rtalplayer
1,366 Posts
Posted Nov 06, 2010
Replied 10 hours later

Yottabyte wrote:
I have chosen glass as the materias using this ($surfaceprop glass) line in my VMT. And the glass material, by default, won't materialize portals.

that's an interesting conundrum.

you could try using the tile surfaceprop, that sounds similar and accepts portals.

Avatar
Yottabyte
5 Posts
Posted Nov 06, 2010
Replied 1 hour later

p0rtalplayer wrote:
you could try using the tile surfaceprop, that sounds similar and accepts portals.

Ultimately using the tile surface will be my backup plan and I have tried using the tile surfaceprop. True this surface does allow portals, you know... the point of Portal, but the collision sound isn't what I was hoping for.

Off topic, but still related to this material; is their a way to make the surface more reflective? I haven't looked though the Source Dev Wiki for this one yet. And if I can make my tiles more reflective/glossy it's surfaceprop won't be as important to me.

Avatar
Remmiz
631 Posts
Posted Nov 06, 2010
Replied 7 hours later

That would be with the reflective map.

http://developer.valvesoftware.com/wiki/Specular

Avatar
Yottabyte
5 Posts
Posted Nov 06, 2010
Replied 3 minutes later

Remmiz wrote:
That would be with the reflective map.

This will helps but my only concern is that it says The reflection is not dynamic. Will that mean that the player or anything that moves won't be reflected?

Avatar
WinstonSmith
940 Posts
Posted Nov 06, 2010
Replied 1 hour later

Yottabyte wrote:
Remmiz wrote:

That would be with the reflective map.

This will helps but my only concern is that it says The reflection is not dynamic. Will that mean that the player or anything that moves won't be reflected?

True, unfortunately. I think there is a func_mirror or something similar, but I don't know if it's present in Portal and it doesn't reflect the player, which is rather important in Portal.

Avatar
Omnicoder
299 Posts
Posted Nov 07, 2010
Replied 18 hours later
reflective_mirror is unacceptable for use in a map as it is low res, grainy, glitchy and doesn't work with Portals. There is no way to do dynamic reflections on brushes.
Avatar
WinstonSmith
940 Posts
Posted Nov 07, 2010
Replied 5 hours later

Omnicoder wrote:
reflective_mirror is unacceptable for use in a map as it is low res, grainy, glitchy and doesn't work with Portals. There is no way to do dynamic reflections on brushes.

Ah.

Well then, disregard my earlier post.

Advertisement
Registered users don’t see ads! Register now!
Avatar
Yottabyte
5 Posts
Posted Nov 07, 2010
Replied 3 minutes later
All of this is very helpful and I have tried some reflections but didn't like the effects. So I'm just going to use the tile surface and fix the bumpmap a bit for better lighting effects.