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
Next revision Both sides next revision
mapping:cawe:editingtools:editfaceprops [2008-01-24 21:59]
Carsten Completed the "How do I..." section
mapping:cawe:editingtools:editfaceprops [2010-09-24 17:01]
Carsten Removed description of limitation "Apply Projective" tool mode: This corner case is rarely encountered, and if so, CaWE itself explains the problem (with solutions) clearly.
Line 41: Line 41:
 ===== Orientation and Material ===== ===== Orientation and Material =====
  
-Once you have selected one or more desired ​surfaces, you can modify their orientation and material attributes+Once you have selected one or more surfaces, you can modify their orientation and material attributes.
- +
-This is easily achieved by the appropriate controls of the related dialog. While pressing one of the small ''​+''​ or ''​-''​ buttons and choosing another material takes immediate effect, entering a new numerical value into the Scale, Shift or Rotation fields by hand requires an additional press on the ''​RETURN''​ key to become effective.+
  
 If you have multiple surfaces selected at the same time, the new value of the changed attribute is applied to all of them, while all other attributes are left alone. This allows you for example to replace the material or to set a common scale on a number of surfaces all at the same time, while the individual shift, rotation and other surface aspects are left alone. If you have multiple surfaces selected at the same time, the new value of the changed attribute is applied to all of them, while all other attributes are left alone. This allows you for example to replace the material or to set a common scale on a number of surfaces all at the same time, while the individual shift, rotation and other surface aspects are left alone.
Line 58: 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 69: 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 86: Line 83:
  
 The **wrt. Face plane** checkbox indicates whether the texture plane of the surface is parallel to the spatial plane of the surface. This is never true for Bezier patches (they in general have no inherent spatial plane), and normally always true for brush faces; however you can use the **Apply Projective** right-click apply mode in order to force any texture plane onto any surface. The **wrt. Face plane** checkbox indicates whether the texture plane of the surface is parallel to the spatial plane of the surface. This is never true for Bezier patches (they in general have no inherent spatial plane), and normally always true for brush faces; however you can use the **Apply Projective** right-click apply mode in order to force any texture plane onto any surface.
- 
-( FIXME Update code so that these are indeed indicators only. Move into Orientation section? ) 
  
  
mapping/cawe/editingtools/editfaceprops.txt · Last modified: 2013-01-07 12:07 (external edit)