Paint won't stick to walls

Avatar
Shane
243 Posts
Posted Aug 11, 2012

In order to further my knowledge of Hammer I have started upon a test map to familiarise myself with the various elements. I have figured out how to make a paint dropper, however I cannot seem to get the paint to stick to surfaces (Sticks to objects). I have followed the tip to include a light source in the chamber and it made no difference. I have uploaded the VMF, any help would be appreciated

http://www.mediafire.com/?w52c2cg72jfz9c3

Advertisement
Registered users don’t see ads! Register now!
Avatar
UsCobra11
272 Posts
Posted Aug 11, 2012
Replied 18 minutes later
Go to Map Properties and make sure paint is enabled
Avatar
RectorRocks
522 Posts
Posted Aug 11, 2012
Replied 9 minutes later
Go to the "Map" tab of Hammer and select "Map Properties". Then look for the "Paint in Map" field, change it from "No" to "Yes". Click Apply and see if it works now.
Avatar
Shane
243 Posts
Posted Aug 12, 2012
Replied 4 hours later
Already done that, didn't make a difference
Avatar
Habzs
225 Posts
Posted Aug 12, 2012
Replied 21 minutes later
You are using a vertex texture for the floor. Paint won't appear on textures that have the _vertex in its name.
Avatar
Shane
243 Posts
Posted Aug 12, 2012
Replied 1 hour later
Yep, that's resolved it. Thanks!
Avatar
ChickenMobile
2,460 Posts
Posted Aug 12, 2012
Replied 20 minutes later
Vertex textures... why are they even there?
Avatar
Lpfreaky90
2,842 Posts
Posted Aug 12, 2012
Replied 45 minutes later
I've said it at least 20 times before and I'll probably have to say it at least another 20 times but:
### never use textures with vertex in their name!
Avatar
Shane
243 Posts
Posted Aug 12, 2012
Replied 3 hours later
I'm teaching myself Hammer with the Valve developer wiki and unfortunately they didn't mention that small detail :razz:
Avatar
Alexander Bell
306 Posts
Posted Aug 12, 2012
Replied 2 hours later
Whats wrong with vertex textures (other than the fact that paint doesn't work)?
Avatar
wrathofmobius
216 Posts
Posted Aug 12, 2012
Replied 43 minutes later
Vertex textures are very weird textures that shouldn't exist. They look exactly like their good counterparts in Hammer, but once you run the map, you may notice that the lighting is very weird. That is because the lighting of the texture has to do with how far away you are from it. This creates some very weird lighting effects.
I'll just repeat it again: NEVER USE VERTEX TEXTURES!
Advertisement
Registered users don’t see ads! Register now!
Avatar
Vordwann
767 Posts
Posted Aug 12, 2012
Replied 1 hour later

wrathofmobius wrote:
Vertex textures are very weird textures that shouldn't exist. They look exactly like their good counterparts in Hammer, but once you run the map, you may notice that the lighting is very weird. That is because the lighting of the texture has to do with how far away you are from it. This creates some very weird lighting effects.
I'll just repeat it again: NEVER USE VERTEX TEXTURES!

ChickenMobile wrote:
Vertex textures... why are they even there?

Vertex textures, for those who don't know quite how they work, are compiled using the VertexLitGeneric shader, which is used for models in the Source engine, not brushes.

My best guess for vertex textures are that they are what the faces of animated destruction props are UV mapped to. The hammer editor has an option to export to a .dxf file, which can be imported to 3D/CAD programs.

The faces must retain texture information, so when you bring them back into the Source engine, they can reference different vertex textures. Valve most likely used this method when creating props for the Wheatley chapters (and a few for overgrown/reconstructing) when walls that seemed like normal brushwork were actually animated meshes that crumbled, using a physics/destruction plugin in 3D animation software.

This is also supported by the fact that the faces created by using a destruction modifier on a model in a 3D animation program have warped UV maps, but still all reference a single texture, most likely still the vertex texture from the source engine. This is why, when you look at the parts of the broken tiles in the cracks, after the animation plays in-game, the texture seems warped because it is a default UV map (created by the physics/destruction plugin) that has not been modified to perfectly fit with the original sides of the exported brushes from Hammer.

Conclusion: My hypothesis is that vertex textures are the materials Valve has their animated destruction props reference for texture info because vertex textures are better suited for models, not world geometry.

"BUT VORDWANN, WHY DO WE HAVE TO SEE THEM IN THE TEXTURE BROWSER IF THEY'RE ONLY FOR MODELS?!?!?!"

VertexLitGeneric (yes, that's why they're called vertex textures) may well be a material shader for models only, but because these are applied to world geometry so it can be exported, it's more practical and convenient to have them in the texture browser in Hammer. Also, because the same vertex textures are used for several different animated destruction props, it wouldn't make sense to just hide the same texture in many different directories in the packed models, and instead it saves space and time to put it in with the Hammer-accessable texture directory.

Additionally, you don't see any vertex textures for Old Aperture materials because there are no animated destruction props for using the materials in the underground area.