Skip to content

Instantly share code, notes, and snippets.

@tcoxon
Last active July 12, 2017 21:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tcoxon/5030e62b0fe3949a3ee1874b4c694bdb to your computer and use it in GitHub Desktop.
Save tcoxon/5030e62b0fe3949a3ee1874b4c694bdb to your computer and use it in GitHub Desktop.
{
"class" : "modelgen",
"version" : 3,
"data" : {
"root" : "head",
"colors" : {
"baseColors" : [
[1, {
"h" : ["uniform", 0, 360],
"s" : 1,
"l" : 0.825
}]
],
"palettes" : [
[1, [{"h": 0}, {"h": 180}, {"s": 0}]],
[1, [{"h": 0}, {"h": 150}, {"h": 210}, {"s": 0}]],
[1, [{"h": 0}, {"h": 120}, {"h": 240}, {"s": 0}]],
[1, [{"h": 0}, {"h": 90}, {"h": 180}, {"h": 270}, {"s": 0}]],
[1, [{"h": 0}, {"h": 30}, {"h": -30}, {"h": 60}, {"h": -60}, {"s": 0}]]
]
},
"parts" : {
"head" : {
"tags" : ["skin"],
"scalars" : {
"reflectChildren" : 1,
"polyPoints" : 150,
"scale" : 1,
"aspect" : ["uniform", 0.5, 1.0],
"rotation" : 0,
"relativeX" : 0,
"relativeY" : 0,
"relativeZ" : 0
},
"parts" : {
"eye" : 1,
"jaw" : 1,
"nose" : ["uniform", 0, 1],
"ear" : ["uniform", 0, 3],
"frontHair" : ["clamp", ["normal", 1, 0.5], 0, 1],
"sideHair" : ["clamp", ["normal", 1, 0.5], 0, 1],
"backHair" : ["clamp", ["normal", 1, 0.5], 0, 1]
}
},
"eye" : {
"scalars" : {
"reflectChildren" : 0,
"polyPoints" : 20,
"scale" : ["uniform", 0.25, 0.4],
"aspect" : ["uniform", 1.25, 5],
"rotation" : ["uniform", -10, 10],
"relativeX" : ["uniform", 0.25, 0.8],
"relativeY" : ["uniform", -0.25, 0.25],
"relativeZ" : 1
},
"parts" : {
"pupil" : 1
}
},
"pupil" : {
"scalars" : {
"reflectChildren" : 1,
"polyPoints" : 20,
"scale" : ["uniform", 0.1, 0.4],
"aspect" : 1,
"rotation" : 0,
"relativeX" : ["uniform", -0.75, 0.75],
"relativeY" : 0,
"relativeZ" : 0.2
}
},
"jaw" : {
"tags" : ["skin"],
"scalars" : {
"reflectChildren" : 1,
"polyPoints" : 100,
"scale" : ["uniform", 0.5, 1],
"aspect" : ["uniform", 1.0, 1.25],
"rotation" : 0,
"relativeX" : 0,
"relativeY" : ["uniform", 0.75, 1.0],
"relativeZ" : 0
},
"parts" : {
"mouth" : 1
}
},
"nose" : {
"tags" : ["skin"],
"scalars" : {
"reflectChildren" : 1,
"polyPoints" : 20,
"scale" : ["uniform", 0.2, 0.35],
"aspect" : ["uniform", 0.2, 0.8],
"rotation" : 0,
"relativeX" : 0,
"relativeY" : ["uniform", 0, 0.25],
"relativeZ" : 2
},
"parts" : {
}
},
"mouth" : {
"scalars" : {
"reflectChildren" : 1,
"polyPoints" : 40,
"scale" : ["uniform", 0.1, 0.6],
"aspect" : ["uniform", 2, 8],
"rotation" : ["uniform", -10, 10],
"relativeX" : 0,
"relativeY" : 0,
"relativeZ" : 0.5
}
},
"ear" : {
"tags" : ["skin"],
"scalars" : {
"reflectChildren" : 1,
"polyPoints" : 20,
"scale" : ["uniform", 0.1, 0.5],
"aspect" : ["uniform", 0.2, 1.0],
"rotation" : ["uniform", -30, 30],
"relativeX" : 1,
"relativeY" : ["uniform", 0, 0.25],
"relativeZ" : -0.5
}
},
"frontHair" : {
"tags" : ["hair"],
"scalars" : {
"reflectChildren" : 1,
"polyPoints" : 100,
"scale" : ["uniform", 0.6, 1.5],
"aspect" : ["uniform", 1.5, 5],
"rotation" : ["uniform", -20, 20],
"relativeX" : 0,
"relativeY" : -1,
"relativeZ" : 1
}
},
"sideHair" : {
"tags" : ["hair"],
"scalars" : {
"reflectChildren" : 1,
"polyPoints" : 100,
"scale" : ["uniform", 0.75, 1.5],
"aspect" : ["uniform", 0.05, 0.25],
"rotation" : ["uniform", -45, -10],
"relativeX" : ["uniform", 0.6, 1.2],
"relativeY" : ["uniform", -0.75, 0],
"relativeZ" : 1
}
},
"backHair" : {
"tags" : ["hair"],
"scalars" : {
"reflectChildren" : 1,
"polyPoints" : 100,
"scale" : ["uniform", 0.5, 2],
"aspect" : ["uniform", 0.5, 1],
"rotation" : 0,
"relativeX" : 0,
"relativeY" : ["uniform", -0.5, 1],
"relativeZ" : -1
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment