Convert slopes to vertex group weights #36677

Closed
opened 2013-09-06 20:39:06 +02:00 by Michel Anders · 7 comments
Member

Project: Blender Extensions
Tracker: Py Scripts Upload
Blender: 2.66
Category: Mesh
Python: 3.2
Homepage: http://blenderthings.blogspot.nl/2013/09/slope-to-vertex-weights-blender-add.html
Script name: slope2vgroup
Author(s): Michel Anders (varkenvarken)
Status: Open

%%%Addon to convert slope (angle between vertex normal and object space z-axis) to vertex weights. Its purpose is to facilitate distributing particles preferentially to relatively flat parts of a mesh.

workflow:

  • select object (inobject mode)
  • click 3dview -> object -> slope2vgroup

it will replace the vertex weights of the active vertex group or create a vertex group if none is present yet.

Then add particle system as you normally would and select the vertexgroup in the density field

%%%

**Project**: Blender Extensions **Tracker**: Py Scripts Upload **Blender**: 2.66 **Category**: Mesh **Python**: 3.2 **Homepage**: http://blenderthings.blogspot.nl/2013/09/slope-to-vertex-weights-blender-add.html **Script name**: slope2vgroup **Author(s)**: Michel Anders (varkenvarken) **Status**: Open %%%Addon to convert slope (angle between vertex normal and object space z-axis) to vertex weights. Its purpose is to facilitate distributing particles preferentially to relatively flat parts of a mesh. workflow: - select object (inobject mode) - click 3dview -> object -> slope2vgroup it will replace the vertex weights of the active vertex group or create a vertex group if none is present yet. Then add particle system as you normally would and select the vertexgroup in the density field %%%
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Author
Member

%%%now has dual functionality

3dview -> Weights -> Slope will create/replace active vertex group weights
3dview -> Paint -> Slope will create/replace active vertex color layer (red channel)

Has now 4 options

low : slopes with lower angle than this will receive a unit value
high : slopes with steeper angle than this will receive a zero value
power: influences the shape of the mapping curve
mirror: maps slope angles > 90 to 180 - angle
%%%

%%%now has dual functionality 3dview -> Weights -> Slope will create/replace active vertex group weights 3dview -> Paint -> Slope will create/replace active vertex color layer (red channel) Has now 4 options low : slopes with lower angle than this will receive a unit value high : slopes with steeper angle than this will receive a zero value power: influences the shape of the mapping curve mirror: maps slope angles > 90 to 180 - angle %%%
Author
Member

%%%v0.0.3 adds mirror option and the possibility to map the brush curve in vertex paint mode%%%

%%%v0.0.3 adds mirror option and the possibility to map the brush curve in vertex paint mode%%%
Author
Member

%%%v0.0.4 adds possibility to calc slope in either worldspace or object space coordinates in both vcol and vweight modes. vcol mode now produces grey scale values for the slope unless normal map is checked in which case the x,y,z components are simply mapped to the r,g,b component of the vcol layer.
%%%

%%%v0.0.4 adds possibility to calc slope in either worldspace or object space coordinates in both vcol and vweight modes. vcol mode now produces grey scale values for the slope unless normal map is checked in which case the x,y,z components are simply mapped to the r,g,b component of the vcol layer. %%%
Member

Added subscriber: @BrendonMurphy

Added subscriber: @BrendonMurphy
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Brendon Murphy self-assigned this 2015-09-12 13:31:55 +02:00
Member

Closing as archived.
@MichelAnders
Feel free to create a fresh task if you intend developing this in Blender. It would be nice to some of this functionality in ant landscape.

Closing as archived. @MichelAnders Feel free to create a fresh task if you intend developing this in Blender. It would be nice to some of this functionality in ant landscape.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#36677
No description provided.