Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proper U/V axis behavior #5

Open
BHSPitMonkey opened this issue Feb 6, 2013 · 1 comment
Open

Proper U/V axis behavior #5

BHSPitMonkey opened this issue Feb 6, 2013 · 1 comment

Comments

@BHSPitMonkey
Copy link
Owner

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 and vaxis) need to be amended as follows:

  1. Replace the default strings with something likely represented with a new data type (vmf.types).
  2. When a Side object is initialized, it should compute suitable values to initialize these properties with.
  3. (Optional) Implement some way of telling a 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

@BHSPitMonkey
Copy link
Owner Author

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...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant