User Tools

Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
mapping:cawe:editingtools:editfaceprops [2010-09-24 14:03]
Carsten Removed wrong TODO item: these checkboxes are indeed required as controls, as there is no other way to "reset" a material with askew UV axes
mapping:cawe:editingtools:editfaceprops [2013-01-07 12:07] (current)
Line 56: Line 56:
     * **Apply View Aligned**: This mode works like a slide-projector:​ The material is projected onto the clicked surface, where the base of the cameras view pyramid defines the plane of projection. (Contrary to a real slide-projector though, parallel rather than perspective projection is employed. Variants of parallel projection are also employed by the other apply modes and are more appropriate for the task at hand.) The orientation attributes are also taken into account. This is a great mode for texturing a rocky wall or any other irregular shape (that consists of multiple adjacent surfaces) seamlessly.     * **Apply View Aligned**: This mode works like a slide-projector:​ The material is projected onto the clicked surface, where the base of the cameras view pyramid defines the plane of projection. (Contrary to a real slide-projector though, parallel rather than perspective projection is employed. Variants of parallel projection are also employed by the other apply modes and are more appropriate for the task at hand.) The orientation attributes are also taken into account. This is a great mode for texturing a rocky wall or any other irregular shape (that consists of multiple adjacent surfaces) seamlessly.
     * **Apply Edge Aligned**: This mode makes sure that when you click on a surface //next// to the previously picked one (i.e. left-clicked,​ possibly with ''​ALT''​),​ the material is seamlessly aligned across the common edge. This is a worthwhile feature especially when the two surfaces are not coplanar. (It even works when the clicked surface is not immediately adjacent to the other.) \\ FIXME What exactly are the restrictions when Bezier patches are used?     * **Apply Edge Aligned**: This mode makes sure that when you click on a surface //next// to the previously picked one (i.e. left-clicked,​ possibly with ''​ALT''​),​ the material is seamlessly aligned across the common edge. This is a worthwhile feature especially when the two surfaces are not coplanar. (It even works when the clicked surface is not immediately adjacent to the other.) \\ FIXME What exactly are the restrictions when Bezier patches are used?
-    * **Apply Projective**:​ Like Apply Normal, but this mode also applies the //texture planes U- and V-vectors// of the picked surface to the clicked surface. This mode is the generalization of both the Apply Normal as well as the Apply View Aligned modes, and as the underlying technique is a mathematical projection, it is called Apply Projective. Refer to the advanced section below for more technical information. \\ This is the mode of choice whenever you want to texture a Bezier patch exactly like an adjacent brush face. For example, if you have a wall or a floor that is made of both brush faces and Bezier patches, and you want to apply the material on the brush faces seamlessly to the Bezier patches, just pick up the surface attributes from a brush face, and Apply Projective to the Bezier patches. \\ Mode limitations:​ Picking up the attributes from Bezier patch surfaces may not provide sufficient attribute information for this mode to work in some cases. This is true whenever the Bezier patches surface was defined by non-projective means. This situation is pointed out by the colored backgrounds of the Orientation fields in the dialog.+    * **Apply Projective**:​ Like Apply Normal, but this mode also applies the //texture planes U- and V-vectors// of the picked surface to the clicked surface. This mode is the generalization of both the Apply Normal as well as the Apply View Aligned modes, and as the underlying technique is a mathematical projection, it is called Apply Projective. Refer to the advanced section below for more technical information. \\ This is the mode of choice whenever you want to texture a Bezier patch exactly like an adjacent brush face. For example, if you have a wall or a floor that is made of both brush faces and Bezier patches, and you want to apply the material on the brush faces seamlessly to the Bezier patches, just pick up the surface attributes from a brush face, and Apply Projective to the Bezier patches.
  
 When ''​SHIFT''​ is held during a right-click on a brush surface, the application is performed on all surfaces of the brush. When ''​SHIFT''​ is held during a right-click on a brush surface, the application is performed on all surfaces of the brush.
Line 67: Line 67:
 The materials of selected //brush faces// (not Bezier patches) can be automatically aligned at the top, bottom, left or right edge of the face by the related button in the **Alignment** section of the dialog. The material can also be centered or made fit on the brush face. In all cases, the effect is achieved by auto-adjusting the Shift and/or Scale attributes of the selected brush faces appropriately. The materials of selected //brush faces// (not Bezier patches) can be automatically aligned at the top, bottom, left or right edge of the face by the related button in the **Alignment** section of the dialog. The material can also be centered or made fit on the brush face. In all cases, the effect is achieved by auto-adjusting the Shift and/or Scale attributes of the selected brush faces appropriately.
  
-( FIXME The above applies to brush faces only. ) \\ 
 ( FIXME Re-pick the first selected surface in order to update the dialog attributes! ) ( FIXME Re-pick the first selected surface in order to update the dialog attributes! )
  
Line 73: Line 72:
  
 ==== Fit on Bezier patches ==== ==== Fit on Bezier patches ====
-Note that for Bezier patches, the **Fit** button works a little ​differently than for brush faces: +For Bezier patches, the (highly useful!) ​**Fit** button works slightly ​differently than for brush faces: 
-Although in both cases the material will be made "​fit" ​on the underlying surface, Bezier patches are from then on in a different texture-coordinate generation ​mode than brush faces. This is because for brush faces, you could have achieved the same effect by manipulating the Scale and Shift manually until the result is identical. With Bezier patches, which can be curved to any shape (e.g. cylindrical or spherical), this is impossible.+Although in both cases the material will be made "​fit" ​to the underlying surface, Bezier patches are then in a different ​mode regarding ​texture-coordinate generation than brush faces.
  
-As a result, the Bezier patches ​whose material is applied with the **Fit** button ​(a highly useful button with Bezier patchesputs them into a different texture-coordinate generation ​mode that is not compatible with that of brush faces: You cannot pick such Bezier patch surfaces and apply them directly to brush faces (but still to other Bezier patches), and -- more importantly -- the Scale attributes now indicate the number of repetitions of the material on the surface, rather than the number of texels per world unit as usual. The background of the Orientation attribute fields is colored in order to indicate that a Bezier patch surface has been picked that is in this special texture-coordinate generation mode.+This is because for brush facesyou could have achieved ​the same result by manipulating the Scale and Shift manually. With Bezier patches, which can be curved to any shape (e.g. cylindrical or spherical), the same mathematics cannot achieve the same effect, and thus using the **Fit** button ​on Bezier patches puts them into Fit mode that yields ​the desired result.
  
-You can "​revert"​ the behaviour ​of such a Bezier ​patches ​surface by picking the surface attributes of a brush face and right-click ​applying them to the Bezier patch in **Apply Projective** mouse-button mode.+The essence of Fit mode is that the Scale attributes now indicate the number of repetitions of the material along the surface, rather than the number of texels per world unit as usual. 
 + 
 +Because of this difference, while applying the surface properties of such Bezier patches to other Bezier patches is straightforward and intuitive, applying the same attributes to brush faces is sometimes not possible without distortion. Such cases are easily fixed though by clicking and editing the affected brush surface. 
 + 
 +The line “Mode: Fit” near the Orientation controls indicates that the current surface values were taken from a Bezier patch that was in Fit mode. 
 + 
 +You can "​revert"​ the mode of such a Bezier ​patch surface ​back to normal ​by picking the surface attributes of a brush face and applying them to the Bezier patch in **Apply Projective** mouse-button mode.
  
 ==== Plane Indicators ==== ==== Plane Indicators ====
Line 121: Line 126:
  
  
-==== ... deal with yellow-colored Orientation ​attributes? ==== +==== ... deal with "Mode: Fit" orientation ​attributes? ====
- +
-Bezier patches that are newly created or whose material has been applied using the **Fit** button are in the "​Fit"​ texture-coordinate generation mode; you may refer to section [[#​fit_on_bezier_patches|Fit on Bezier patches]] above and [[#​advanced_considerations|Advanced Considerations]] below for more details. +
- +
-The essence is that the Scale attributes now indicate the number of repetitions of the material on the surface, rather than the number of texels per world unit as usual. Please refer to section [[#​fit_on_bezier_patches|Fit on Bezier patches]] for more details. +
- +
-Because of this issue, applying the surface properties of such Bezier patches to other Bezier patches is never a problem, but applying the same attributes to brush faces may cause unexpected results.+
  
-The yellow-colored background ​is a reminder of that issue.+Bezier patches that are newly created or whose material has been applied using the **Fit** button are in the "​Fit"​ texture-coordinate generation mode, whose essence ​is that the Scale attributes now indicate the number of repetitions of the material along the surface, rather than the number of texels per world unit as usual.
  
-FIXME Can we not fix that?? E.g. implicitly "​Fit-Apply to faces, then scale accordingly"​ ??+Refer to section [[#​fit_on_bezier_patches|Fit on Bezier patches]] above and [[#​advanced_considerations|Advanced Considerations]] below for more details.
  
  
mapping/cawe/editingtools/editfaceprops.1285329834.txt.gz · Last modified: 2013-01-07 12:07 (external edit)