Skip to content

Instantly share code, notes, and snippets.

@tcoxon
Last active July 13, 2017 22:31
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/4ebf431b5fc0cd9e5f6c80cd5ddfe10c to your computer and use it in GitHub Desktop.
Save tcoxon/4ebf431b5fc0cd9e5f6c80cd5ddfe10c to your computer and use it in GitHub Desktop.
Kirigami Bird Generator
{
"class" : "modelgen",
"version" : 3,
"data" : {
"root" : "body",
"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" : {
"body" : {
"tags" : ["feather"],
"scalars" : {
"reflectChildren" : 1,
"polyPoints" : 20,
"scale" : 1,
"aspect" : ["abs", ["normal", 1.0, 0.25]],
"rotation" : 0,
"relativeX" : 0,
"relativeY" : 0,
"relativeZ" : 0
},
"parts" : {
"head" : 1,
"leg" : 1,
"wing" : ["+", 1, ["*", ["uniform", 0, 1], ["uniform", 0, 1]]],
"tail" : ["abs", ["normal", 0, 1]]
}
},
"wing" : {
"tags" : ["feather"],
"scalars" : {
"reflectChildren" : 1,
"polyPoints" : 20,
"scale" : ["+", 1, ["abs", ["normal", 0, 0.25]]],
"aspect" : ["+", ["poisson", 1], 1],
"rotation" : ["uniform", -60, 60],
"relativeX" : ["uniform", 0.5, 1],
"relativeY" : ["uniform", 0, -0.8],
"relativeZ" : ["clamp", ["normal", 0, 0.3], -1, 1]
}
},
"leg" : {
"scalars" : {
"reflectChildren" : 1,
"polyPoints" : 20,
"scale" : ["uniform", 0.2, 1],
"aspect" : ["uniform", 0.1, 0.5],
"rotation" : 0,
"relativeX" : ["*", ["uniform", 0.025, 0.5], ["uniform", 0.1, 1]],
"relativeY" : ["uniform", 0.8, 1.2],
"relativeZ" : ["clamp", ["normal", 0, 0.3], -1, 1]
}
},
"tail" : {
"tags" : ["feather"],
"scalars" : {
"reflectChildren" : 1,
"polyPoints" : 20,
"scale" : ["*", ["uniform", 0.2, 1], ["uniform", 0.2, 2]],
"aspect" : ["uniform", 0.1, 1],
"rotation" : ["uniform", -45, 45],
"relativeX" : ["uniform", 0, 0.5],
"relativeY" : ["uniform", -1, 0],
"relativeZ" : ["normal", -1.5, 0.25]
}
},
"head" : {
"tags" : ["feather"],
"scalars" : {
"reflectChildren" : 1,
"polyPoints" : 50,
"scale" : ["abs", ["normal", 0.7, 0.1]],
"aspect" : ["abs", ["normal", 1.0, 0.25]],
"rotation" : 0,
"relativeX" : 0,
"relativeY" : ["uniform", 0.0, -1.0],
"relativeZ" : 2
},
"parts" : {
"beak" : ["*", ["poisson", 1], 0.5],
"cheek" : ["*", ["poisson", 1], 0.5]
}
},
"beak" : {
"scalars" : {
"reflectChildren" : 1,
"polyPoints" : 20,
"scale" : ["uniform", 0.2, 0.75],
"aspect" : ["abs", ["normal", 1.0, 0.3]],
"rotation" : 0,
"relativeX" : 0,
"relativeY" : ["uniform", 0, 1.0],
"relativeZ" : 1
}
},
"cheek" : {
"scalars" : {
"reflectChildren" : 1,
"polyPoints" : 20,
"scale" : ["uniform", 0.2, 0.5],
"aspect" : ["abs", ["normal", 1.0, 0.3]],
"rotation" : ["uniform", -180, 180],
"relativeX" : ["uniform", 0.25, 0.5],
"relativeY" : ["uniform", -1.0, 1.0],
"relativeZ" : 1
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment