Skip to content

Instantly share code, notes, and snippets.

@tcoxon
Last active July 13, 2017 22:32
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/541a1a02e1591e947d447a63370bf081 to your computer and use it in GitHub Desktop.
Save tcoxon/541a1a02e1591e947d447a63370bf081 to your computer and use it in GitHub Desktop.
{
"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" : ["scales"],
"scalars" : {
"reflectChildren" : 1,
"polyPoints" : 150,
"scale" : 1,
"aspect" : ["uniform", 0.2, 0.7],
"rotation" : 0,
"relativeX" : 0,
"relativeY" : 0,
"relativeZ" : 0
},
"parts" : {
"head" : 1,
"frontfin" : 1,
"tinyfin" : ["abs", ["normal", 0, 1]],
"backfin" : ["uniform", 0, 1],
"tail" : 1,
"tailfin" : ["normal", 2, 1]
}
},
"head" : {
"tags" : ["scales"],
"scalars" : {
"reflectChildren" : 1,
"polyPoints" : 150,
"scale" : ["abs", ["normal", 0.7, 0.1]],
"aspect" : ["uniform", 0.33, 1],
"rotation" : 0,
"relativeX" : 0,
"relativeY" : ["uniform", -0.5, 0],
"relativeZ" : ["choice", 0, ["uniform", 0, 1]]
},
"parts" : {
"eye" : ["+", ["abs", ["normal", 0, 0.5]], 1],
"facepart" : ["abs", ["normal", 0, 1]]
}
},
"eye" : {
"scalars" : {
"reflectChildren" : 1,
"polyPoints" : 20,
"scale" : ["uniform", 0.1, 0.75],
"aspect" : ["uniform", 0.2, 0.5],
"rotation" : 0,
"relativeX" : ["uniform", 0.75, 1.0],
"relativeY" : ["uniform", -0.8, 0],
"relativeZ" : 0.5
}
},
"facepart" : {
"scalars" : {
"reflectChildren" : 1,
"polyPoints" : 20,
"scale" : ["uniform", 0.1, 0.333],
"aspect" : ["abs", ["normal", 1, 0.5]],
"rotation" : ["uniform", -45, 45],
"relativeX" : ["uniform", -1, 1],
"relativeY" : ["uniform", -1, 1],
"relativeZ" : 0.6
}
},
"frontfin" : {
"scalars" : {
"reflectChildren" : 1,
"polyPoints" : 20,
"scale" : ["*", ["uniform", 0.5, 0.66], ["uniform", 0.5, 1]],
"aspect" : ["clamp", ["normal", 2, 0.5], 1.5, 3],
"rotation" : ["uniform", -20, 20],
"relativeX" : 0.9,
"relativeY" : ["uniform", -0.25, 0.9],
"relativeZ" : -1
}
},
"tinyfin" : {
"scalars" : {
"reflectChildren" : 1,
"polyPoints" : 20,
"scale" : ["*", ["uniform", 0.25, 0.33], ["uniform", 0.5, 1]],
"aspect" : ["clamp", ["normal", 2, 0.5], 1.5, 3],
"rotation" : ["uniform", -60, 60],
"relativeX" : 0.9,
"relativeY" : ["uniform", -0.25, 0.9],
"relativeZ" : -1
}
},
"backfin" : {
"scalars" : {
"reflectChildren" : 1,
"polyPoints" : 20,
"scale" : ["*", ["uniform", 0.5, 0.66], ["uniform", 0.5, 1]],
"aspect" : ["uniform", 0.2, 0.6],
"rotation" : 0,
"relativeX" : 0,
"relativeY" : -1,
"relativeZ" : -1
}
},
"tail" : {
"tags" : ["scales"],
"scalars" : {
"reflectChildren" : 1,
"polyPoints" : 100,
"scale" : ["uniform", 0.25, 1],
"aspect" : ["uniform", 0.5, 1],
"rotation" : 0,
"relativeX" : 0,
"relativeY" : ["uniform", -0.5, 0],
"relativeZ" : ["choice", 0, ["uniform", 0, -1]]
}
},
"tailfin" : {
"scalars" : {
"reflectChildren" : 1,
"polyPoints" : 20,
"scale" : ["uniform", 0.5, 1.5],
"aspect" : ["uniform", 0.1, 0.4],
"rotation" : 0,
"relativeX" : 0,
"relativeY" : ["uniform", -1, 1],
"relativeZ" : -2
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment