Half life 1 water texture4/16/2024 Such a tool would need to check if a surface has a texture that the engine treats as water (name starts with !, laser or water) and has a plane that is coplanar with the Z plane, and has a normal pointing down. If that's the case then the proper solution is to remove the check and making a tool to find these surfaces and to make them invisible. My guess is this was a workaround for that issue. So this check hides those bottom surfaces, but only if the entity hasn't moved lower than it starts off at. It might be fixed in 5.0 onwards but it's not the change you listed. The water surfaces shift up and down when the player moves aroundĪlso, for the sake of completeness, i tested the map in Sven Co-op 3.0 to which the above change you listed was added.The bottom surface also renders if it has a water texture applied to it.I tested this and it works, however other rendering issues occur: This should be equivalent to a water brush moving up without triggering the check that breaks rendering. Half-Life Uplink also has it, so it must have been added during the game's development.Īssuming this is unwanted behavior the fix is simple: remove the if check and water will render as expected.Īs a workaround you could try putting the water brush at its intended end position and having it move down, combined with having it start open. I can verify that this code has been in the game since launch. Without being able to see the actual code there's no way to know. Maybe it was added to fix some issue where water rendered when it shouldn't. The plane distance value becomes a relative value (-32 in my case, where the water surface is 32 units above the origin brush's center) while the minimum Z value is a positive value even before moving. The entity can be moved up and it will still stop rendering once it has moved up at least by the height of the entity or more.Īdding an origin brush causes it to stop rendering altogether, at least when the entity is above the world origin. The position of the entity itself doesn't seem to matter here. So the higher the brush is, the further up it can move before it becomes invisible. Only surfaces that are facing directly up are drawn if they have a water texture on them, so this calculation results in water not being drawn if the brush has moved up at least the total height of the brush. If this is false then it won't draw the surface. The surface plane distance value is the shortest signed distance to the plane from the origin. Meaning basically the lowest vertex in the entity is at that height in the map, in absolute coordinates. This is the entity's bounding box minimum Z value.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |