kiwi_tea
14th Feb 2012, 05:42 AM
So I was moving my files around, and for the first time I started playing around in the directory
UserToolData>TerrainSculptBrushes
It seems like it would be an extremely simple matter to add custom brushes here. Each brush is just a tga file (or two component tga files), mediated by the settings in TerrainSculpt.ini, such as this, for Mountain:
;;; Brush Profiles
;;; For each brush, add a section whose name begins with "Brush_".
; ID - a unique ID for the brush
; WiggleAngle - Maximum angle (in degrees) by which the brush wiggles at each step as it is dragged. Set this to 0 for no wiggle
; ComponentCount - Number of components the brush has.
; For each component, the following parameters can be specified. Use the prefix Compi_, for "i" th component
; Comp1_Op : Operation ID for component. 0 - RaiseLower, 1 - Smoothen, 2 - Level, 3 - Flatten
; Comp1_Texture : Name of the profile texture for the component
; Comp1_BaseTextureValue : The texture value to be taken as "base". Use of this value is dependent on the operation.
; When the opeation is "RaiseLower", a texture value higher than the base value causes the
; terrain to be raised and a texture value lower than the base value causes lowering.
; Comp1_AlignWithMoveDirection : Specifies whether or not the profile texture should be aligned with the direction of
; of movement of the mouse. 0 for false, 1 for true.
; Comp1_Width : Width of the area over which the brush gets applied at each step.
; Comp1_Strength : Strength of the brush
[Brush_Mountain]
Name = Mountain
WiggleAngle = 0
ComponentCount = 2
;
; First component (Mountain base)
Comp1_Op = 0
Comp1_Texture = MountainBaseBrush.tga
Comp1_BaseTextureValue = 0
Comp1_AlignWithMoveDirection = 0
Comp1_Strength = 0.01
Comp1_Width = 1.0
;
; Second component (Mountain ridge)
Comp2_Op = 0
Comp2_Texture = MountainRidgeBrush.tga
Comp2_BaseTextureValue = 0
Comp2_AlignWithMoveDirection = 1
Comp2_Strength = 0.01
Comp2_Width = 1.0
Now, I have been having no success adding a new brush. I've tried with 32, 24, and 16 bit images, all 64px as the originals are. All I get is a "crop" effect - rows of bumps like crop fields - and an out-of-memory crash (my CAW is LAA).
But this seems very worth testing and investigating. Additional brushes would be very handy for sculpting!
UserToolData>TerrainSculptBrushes
It seems like it would be an extremely simple matter to add custom brushes here. Each brush is just a tga file (or two component tga files), mediated by the settings in TerrainSculpt.ini, such as this, for Mountain:
;;; Brush Profiles
;;; For each brush, add a section whose name begins with "Brush_".
; ID - a unique ID for the brush
; WiggleAngle - Maximum angle (in degrees) by which the brush wiggles at each step as it is dragged. Set this to 0 for no wiggle
; ComponentCount - Number of components the brush has.
; For each component, the following parameters can be specified. Use the prefix Compi_, for "i" th component
; Comp1_Op : Operation ID for component. 0 - RaiseLower, 1 - Smoothen, 2 - Level, 3 - Flatten
; Comp1_Texture : Name of the profile texture for the component
; Comp1_BaseTextureValue : The texture value to be taken as "base". Use of this value is dependent on the operation.
; When the opeation is "RaiseLower", a texture value higher than the base value causes the
; terrain to be raised and a texture value lower than the base value causes lowering.
; Comp1_AlignWithMoveDirection : Specifies whether or not the profile texture should be aligned with the direction of
; of movement of the mouse. 0 for false, 1 for true.
; Comp1_Width : Width of the area over which the brush gets applied at each step.
; Comp1_Strength : Strength of the brush
[Brush_Mountain]
Name = Mountain
WiggleAngle = 0
ComponentCount = 2
;
; First component (Mountain base)
Comp1_Op = 0
Comp1_Texture = MountainBaseBrush.tga
Comp1_BaseTextureValue = 0
Comp1_AlignWithMoveDirection = 0
Comp1_Strength = 0.01
Comp1_Width = 1.0
;
; Second component (Mountain ridge)
Comp2_Op = 0
Comp2_Texture = MountainRidgeBrush.tga
Comp2_BaseTextureValue = 0
Comp2_AlignWithMoveDirection = 1
Comp2_Strength = 0.01
Comp2_Width = 1.0
Now, I have been having no success adding a new brush. I've tried with 32, 24, and 16 bit images, all 64px as the originals are. All I get is a "crop" effect - rows of bumps like crop fields - and an out-of-memory crash (my CAW is LAA).
But this seems very worth testing and investigating. Additional brushes would be very handy for sculpting!