Allowing Portals on Materials
Quote from Yottabyte on November 6, 2010, 12:20 amI'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):
- Code: Select all
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?
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):
- Code: Select all
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?
Quote from msleeper on November 6, 2010, 12:55 amPortals are allowed on materials by default, you don't need to do anything special to make them work.
Portals are allowed on materials by default, you don't need to do anything special to make them work.
Please do not Private Message me for assistance. Post a thread if you have questions or concerns.
If you need to contact the staff privately, contact the Global Moderators via Discord.
Quote from Yottabyte on November 6, 2010, 12:58 amI have chosen glass as the materias using this ($surfaceprop glass) line in my VMT. And the glass material, by default, won't materialize portals.
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.
Quote from p0rtalplayer on November 6, 2010, 11:42 amYottabyte 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.
that's an interesting conundrum.
you could try using the tile surfaceprop, that sounds similar and accepts portals.
Quote from Yottabyte on November 6, 2010, 1:35 pmp0rtalplayer 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.
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.
Quote from Yottabyte on November 6, 2010, 9:19 pmRemmiz 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?
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?
Quote from WinstonSmith on November 6, 2010, 11:01 pmYottabyte 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.
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.
Quote from Omnicoder on November 7, 2010, 5:51 pmreflective_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.
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.
Quote from WinstonSmith on November 7, 2010, 11:22 pmOmnicoder 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.
Ah.
Well then, disregard my earlier post.