Guide
Trophy builder parts
The Mod Studio's trophy builder (1.0.5, PC) makes a trophy for a pack's events from parts: plinths, bases, stems, cups with their handles and lids, toppers, and snap-on bands, each shaped by sliders and finished zone by zone, with an engraved plate. Save to pack writes an ordinary trophy (see Trophy models)): a .glb in assets/trophies/, its two pictures, and a trophies record whose design lets the builder open it again. The game draws the model, as it draws an imported trophy. Phones show the pictures.
The parts, finishes, texture sets, plate fonts and templates are data: the core pack's data/trophy-parts.json, and any pack's own. Each pack's trophyParts records are laid over the others. A part, finish, set, font or template with an id that is already there replaces it, and a new id is added.
A trophyParts record#
[ { "id": "acme.trophy-parts", "data": {
"parts": [ ... ], "finishes": [ ... ], "textures": [ ... ],
"plate": { "finishes": ["gold"], "shapes": ["rect"], "fonts": [ ... ], "lines": 3, "maxLetters": 40 },
"templates": [ ... ] } } ]Settings in data (the last pack's win):
segments: turns of a made lathe (default 72).mattStep: the roughness added for matt (0.3).surfaceEnv: how much of the stage's bright surroundings a finish that is neither metal nor glass reflects (0.12). Showing all of it, a dark gloss reads as grey metal.maxParts: parts in one trophy (12).maxCopies: copies one repeat makes (24).decor: gems, enamel panels and logos (see Decorations).fit:pedestalTopMm,gripBaseMmandliftHeightMm, the builder's fit check.
Parts#
Kinds, foot first: plinth, base, stem, cup, lid, topper. Then the riders:
handle: mounted on the cup under it, right and mirrored left.band: a ring fitted round the part under it.
Any part stacks on any other: each stands on the top socket of the part below. Any part can also be placed freely (see Placing freely, repeats and groups). A part with "placement": "free" (a blade made for repeating) always joins a trophy placed freely, and Randomise leaves it out.
A group part is made of other parts: its group lists them as a design's items, placed in the group's frame (its foot centre at the origin). The builder's "Save group as a part" writes one.
A part is a Blender model or pieces the builder makes from numbers (free create):
{ "id": "urn-classic", "kind": "cup", "model": "assets/trophies/parts/cup/urn-classic.glb",
"height": 214, "footRadius": 36, "topRadius": 86,
"zones": ["main", "trim", "inner"], "starts": { "inner": "gilt" },
"adjust": { "height": [0.6, 1.6, 1], "width": [0.6, 1.6, 1], "taper": [-0.5, 0.5, 0], "curve": [-0.3, 0.4, 0], "twist": [0, 90, 0], "facets": [6, 8, 12] } }Sizes are in millimetres. adjust sets each slider's range and starting value. facets lists the facet counts a faceted part of pieces may take.
A part's model (Blender)#
One part per .glb:
- metres, y up, the front +z, the origin at the foot's centre;
- one UV set tiled at 1 unit = 0.1 m (cylindrical on turned parts);
- baked occlusion in the vertex colours (
COLOR_0); - edge loops at most 8 mm apart up a turned part, so taper and curve bend smoothly;
- up to 6,000 triangles (a cup 8,500).
Named empties:
| Empty | On | Meaning |
|---|---|---|
socket.top | stacking parts | where the next part's foot stands |
mount.handle, mount.handle.low | cups | the right handle's joins (the left is mirrored) |
mount.lid | cups | where a lid sits (the rim) |
join.bottom | handles | the handle's lower join: the handle is stretched upright to meet mount.handle.low |
plate.front | plinths, bases | the plate's centre; extras width, height, radius (m, 0 for a flat face) |
grip.bar | handles, stems | a winner's hand bar: +z along it; extras radius, length (m) |
Materials are named for their zone, not their look: zone.main (or zone.body), zone.trim, zone.inner, zone.stone and zone.plate. The builder puts the chosen finish in each zone. A zone.plate surface carries the engraving: give it a 0..1 UV square, its top-left the text's top-left.
A band is modelled once round the y axis with its inner face at refRadius (default 50 mm) and its height centred on y = 0. The builder scales it to the radius of the part it sits on.
A part of pieces (free create)#
{ "id": "my-vase", "kind": "cup", "height": 120,
"marks": { "mount.handle": { "at": [48, 90, 0] }, "mount.lid": { "at": [0, 120, 0] } },
"pieces": [
{ "shape": "lathe", "zone": "main", "profile": [[0,0],[30,0],[30,10],[20,40],[45,80],[50,120]], "sharp": [2], "smooth": true },
{ "shape": "extrude", "zone": "main", "at": [0,10,0], "outline": [[-40,100],[40,100],[40,50],[0,0],[-40,50]], "thickness": 14, "bevel": 2 } ] }Shapes:
| Shape | Fields |
|---|---|
lathe | profile of [radius, height] points, outside first, foot up; optional sharp (corner indices), smooth (curves between corners), segments, phase |
lathe with "fins": true | the profile as flat fins (a dart's flights): segments fins, thickness |
extrude | outline of [x, y] points standing in the front plane, thickness, bevel, tilt (turn, degrees) |
box | at (bottom centre), size [w, h, d], bevel |
sphere | at, radius |
ring | at, radius, thickness, tilt |
star | at, points, outer, inner, thickness, bevel (the rim) |
tube | path of [x, y, z] points, radius, mirror |
sweep | a section of [u, v] points carried along a path of [x, y, z] points; closed, caps (default true), twist (degrees along the path), mirror; the section's size along the path: scale [start, end], or scales (keys at even steps, up to 16, each 0.01 to 10); flats (the section's thickness along the path, keys as scales, each 0.05 to 10) |
Any piece may carry a deform: { "taper", "bend", "twist", "squash" } (bend and twist in degrees, squash 1 for none).
socket.top is added at height when there is none. Marks are in millimetres.
Finishes and texture sets#
{ "id": "gold-brushed", "group": "metal", "colour": "#e9ba63", "metal": 1, "rough": 0.36, "set": "brushed", "normal": 1, "tiling": 1, "engrave": "#3a2a10" }Finish fields:
group:metal,stone,wood,glassorpaint. The builder offers a zone's own group first.alphabelow 1 draws glass.tint: truelets the player pick the colour.mattRoughis the roughness when matt is chosen.engraveis the letters' colour on a plate of this finish.env(0 to 1, optional) is how much of the surroundings this finish reflects. Left out, metal and glass reflect all of it and other finishes thesurfaceEnvshare.
A texture set is a set of detail maps shared by many finishes. It is listed in textures:
{ "id": "brushed", "normal": "assets/trophies/textures/brushed_normal.png", "orm": "assets/trophies/textures/brushed_orm.png" }The maps:
normalis OpenGL's convention (green up).ormfollows glTF's packing: occlusion 1 in red, roughness detail averaging 0.8 in green, metal mask in blue.coloris optional, for wood and stone (drawn as it is unless the finish takes a colour).
Maps are tileable PNGs: 1024 pixels for metals, 2048 for stone and wood.
Templates#
A template is a design: { "id", "stack": [ { "part", "finish": { "<zone>": { "id", "colour" } }, "height", "width", "taper", "curve", "twist", "turn", "at", "facets", "matt", "decor", "place", "repeat", "group" } ], "plate": { "finish", "font", "shape", "words", "logo" } }. Its name is the text mods.studio.trophyBuilder.template.<id>.
Placing freely, repeats and groups#
An item is stacked unless it has a place:
{ "part": "blade-sweep", "place": { "pos": [0, 0, 0], "rot": [0, 0, 0], "scale": [1, 1, 1], "on": 2, "mirror": false },
"repeat": { "count": 10, "radius": 18, "start": 0, "spread": 360, "twist": 0, "falloff": 0, "about": -1 }, "group": "g1" }posis in millimetres from the trophy's foot centre, or from the foot of itemon(its place in the stack, 0 first).rotturns it about z, then x, then y (degrees).scalesizes it on each axis.mirroradds a twin across the front (x to -x).repeatcopies the item round the trophy's axis, or round itemabout's:countcopies, eachradiusmm out;- from
startdegrees, overspreaddegrees (360: evenly all round; less: an arc with both ends); - each copy turned
twistdegrees more on its own axis than the one before; - the last made
falloffsmaller.
- Items with the same
groupmove together in the builder and can be saved as onegrouppart.
The core pack's rising-blades template is made this way: ten blades (free create's blade, saved as a part) placed freely on the column's foot and repeated round the axis, round a globe, on a stepped plinth.
Decorations#
A stacked plinth, base, stem, cup, lid or topper can carry decorations, each placed by its height on the part and its angle round the trophy, laid onto the surface and standing a little proud of it:
"decor": [ { "kind": "gem", "cut": "oval", "colour": "#c8102e", "at": 0.5, "around": 30, "size": 10, "mirror": true },
{ "kind": "enamel", "shape": "shield", "colour": "#1f5fbf", "at": 0.45, "around": 0, "size": 36, "height": 40, "rim": "gold" },
{ "kind": "logo", "image": "assets/trophies/logos/crest.png", "at": 0.5, "around": 0, "size": 30 } ]atruns from the part's foot (0) to its top (1).aroundis degrees from the front, positive to the right.sizeandheightare millimetres.mirroradds a twin at-around.rimis the setting's or the rim's finish; left out, the part's trim.- A logo is a PNG of the pack, drawn with its see-through parts cut away. The plate takes one too (
plate.logo), beside the words.
The rules are a record's decor:
"decor": { "max": 16, "proud": 0.6, "rim": 1.2, "minSize": 3, "maxSize": 80, "gemFinish": "gem", "enamelFinish": "enamel", "printFinish": "print",
"cuts": [ { "id": "oval", "facets": 16, "table": 0.55, "crown": 0.3, "pavilion": 0.85, "stretch": 1.35 } ],
"shapes": ["circle", "oval", "shield", "diamond", "star", "rounded"], "colours": ["#c8102e", "#1f5fbf"] }maxis the number on one trophy.proudandrimare millimetres.- A cut's
table,crownandpavilionare shares of its radius.stretchmakes it oval,phaseturns its facets, anddome: truemakes a cabochon. shapeschoose among the outlines the game draws.- The gem, enamel and print finishes are ordinary finishes (group
decorfor the gem and print, so they are not offered for a zone).
The builder#
The builder is laid out like the game's designers:
- On the left, a live 3D view drawn with the stage's own trophy materials:
- Drag to turn, right-drag to pan, wheel to zoom.
- Click a part to pick it; Ctrl-click to pick several.
- A stacked part has a height handle and width handles at its foot, middle and top. A free part has move (x, y, z), turn and size handles.
- Drag a decoration over its part to move it.
- Snap (sizes by a twentieth, turns by 15 degrees, places by 5 mm) and Symmetry (a width handle widens the whole part) are toolbar switches. Shift and Ctrl do the opposite while held.
- The toolbar sets the view, the light (stage, studio, cabinet) and the background.
- On the right, the tabs:
- Parts: the stack, top first; drag a row to move the part. And the parts library.
- Shape: sliders with typed numbers.
- Place: stacked or free, place, turn, size, mirror, repeat, groups.
- Finish: a finish per zone, colour, matt; copy and paste.
- Decor: gems, enamel panels, logos.
- Plate: up to three lines, lettering, metal, edge, logo.
- Events: which events play for the trophy.
The buttons:
- Undo and Redo (Ctrl+Z, Ctrl+Y).
- Randomise (R), which keeps locked parts.
- Save to pack.
The view shows the trophy's size, its triangles and its file size, and the fit check:
- too big (blocks Save);
- a base too narrow for two hands;
- wider than the pedestal;
- taller than a winner lifts well.
Careers under way#
The trophy and its pictures are files of the pack, read from the installed pack whenever they are shown. A career under way therefore draws a rebuilt trophy at once. Which trophy an event plays for is the event's trophy field. A career keeps its own copy of its events from its start, so a trophy newly named on an event reaches a career under way through the pack's data update, for the events not yet begun.