Kryslin
Well-known member
Since I seem to be posting these things all over the place, I'd figure I'd start a thread down here and post (repost) them here...
First up is the BiasComb and Bias Show tools...
View attachment BiasTools.zip
BiasShow has been updated to handle vertices that don't have a bias map assigned to them.
The zip file contains two lscripts; BiasComb and BiasShow.
These are both fire-and-forget lscripts for use in Modeler.
Bias Comb Usage :
1) Hide the geometry you don't want to have combed (Not really necessary, but why take chances?).
2) Run lscript
3) If the model has no existing bias maps, choose (new), and enter a name in the text box. Otherwise, choose an existing bias map
***The script cannot tell the difference between a bias map and one re-mapped to the 0...1 domain. Things could get ugly if you choose
***the wrong bias map. The remapped version this script produces ends with a "_rm".
4) Choose a surface to comb away from.
5) Choose which surfaces to comb (ctrl-click to select multiples)
6) Choose how the bias vector gets computed; either vector addition, or interpolation between the vertex normal and the computed bias vector. Vector addition gives results closest to Sasquatch quick combing.
7) Choose whether you want to overwite the existing map, or average the new bias map with the existing one. If you are generating a new map, it will lock in overwrite, whether you choose it or average.
8) Press "OK".
9) Wait. It's slow, I know. I wrote this to be as memory friendly as possible, so very little gets loaded into arrays.
10) Done!
Multiple passes of combing are supported. By creating a box or sphere, you can hide various portions of geometry, choose average, and brush away from the surface you assigned to you brushing object.
Usage of Bias Show:
1) Select some polygons or vertices.
2) Run lscript.
3) Choose your bias map.
4) If you have a weight map for fur length, you can choose it. If not, select Fixed.
5) Press Ok.
6) 2pt. Polygons representing the bias vector stored in the selected map are created in the first background layer available.
7) Done!
The geometry in the background layer is disposable, and least for now.
I hope people find these useful, or at least amusing. It's been tested on Lightwave 2015.3, and should work on 11.6.3.
I make no guarantee for suitability of purpose. Use at own risk. Free to distribute. If you modify it, I'd like a copy of the change.
I've stomped most of the bugs. If you find one, let me know.
Neither of these scripts likes malformed geometry, so no 1 & 2 pt polygons. The results aren't pretty.
(I'll be working on correcting this later. Got more alpha testing to do for someone...)
First up is the BiasComb and Bias Show tools...
View attachment BiasTools.zip
BiasShow has been updated to handle vertices that don't have a bias map assigned to them.
The zip file contains two lscripts; BiasComb and BiasShow.
These are both fire-and-forget lscripts for use in Modeler.
Bias Comb Usage :
1) Hide the geometry you don't want to have combed (Not really necessary, but why take chances?).
2) Run lscript
3) If the model has no existing bias maps, choose (new), and enter a name in the text box. Otherwise, choose an existing bias map
***The script cannot tell the difference between a bias map and one re-mapped to the 0...1 domain. Things could get ugly if you choose
***the wrong bias map. The remapped version this script produces ends with a "_rm".
4) Choose a surface to comb away from.
5) Choose which surfaces to comb (ctrl-click to select multiples)
6) Choose how the bias vector gets computed; either vector addition, or interpolation between the vertex normal and the computed bias vector. Vector addition gives results closest to Sasquatch quick combing.
7) Choose whether you want to overwite the existing map, or average the new bias map with the existing one. If you are generating a new map, it will lock in overwrite, whether you choose it or average.
8) Press "OK".
9) Wait. It's slow, I know. I wrote this to be as memory friendly as possible, so very little gets loaded into arrays.
10) Done!
Multiple passes of combing are supported. By creating a box or sphere, you can hide various portions of geometry, choose average, and brush away from the surface you assigned to you brushing object.
Usage of Bias Show:
1) Select some polygons or vertices.
2) Run lscript.
3) Choose your bias map.
4) If you have a weight map for fur length, you can choose it. If not, select Fixed.
5) Press Ok.
6) 2pt. Polygons representing the bias vector stored in the selected map are created in the first background layer available.
7) Done!
The geometry in the background layer is disposable, and least for now.
I hope people find these useful, or at least amusing. It's been tested on Lightwave 2015.3, and should work on 11.6.3.
I make no guarantee for suitability of purpose. Use at own risk. Free to distribute. If you modify it, I'd like a copy of the change.
I've stomped most of the bugs. If you find one, let me know.
Neither of these scripts likes malformed geometry, so no 1 & 2 pt polygons. The results aren't pretty.
(I'll be working on correcting this later. Got more alpha testing to do for someone...)