Open BHSPitMonkey opened 11 years ago
Commit 5ccc81c updates the U/V axis generation behavior for Blocks (and for any other Side that asks for its Plane's sensible_axes()
) so that simple cases are covered. Unrotated sides limited to 90-degree constraints will look good. More work needs to be done to compute U/V axis values that are correct for any plane (requires someone who remembers linear algebra...)
In class
vmf.brush.Side
, the U/V axis functionality is currently just a stub (defaulting to some values that only look correct for one particular plane orientation). These properties (uaxis
andvaxis
) need to be amended as follows:Side
object is initialized, it should compute suitable values to initialize these properties with.Side
object to scale/reposition/transform its textures in an easy-to-use interface, without the user needing to understand linear algebra and set the uaxis/vaxis properties themselves.[1] https://developer.valvesoftware.com/wiki/VMF_documentation#U.2FV_Axis