Documentation & page contents

Existing garments · 11 · mockups

Mockups of a blank

You have a presented blank. Presentation views: on-avatar, ghost, flat, on-model.

You have

a presented blank

You want

Presentation views: on-avatar, ghost, flat, on-model

You have a presented existing garment. You want pictures of it: on the avatar, ghost mannequin, lay-flat, or on a person.

Drape once. Artwork is a stamp. Mockups are cheap after that — a new design does not pay physics again. Review print fidelity against the supplied artwork. A generated identity or a real photograph may wrap the scene; print fidelity must be checked against the supplied artwork.

Steps

  1. body.select body
  2. garment.drape blank
  3. garment.finish finished
  4. colorway.apply navy
  5. graphic.apply presented
  6. mockup.render on_avatar
  7. mockup.render ghost
  8. mockup.render flat
  9. mockup.render generated
  10. mockup.render photo

Sample inputs

KeyValue
product_idaop-hoodie
bodysamples/bodies/male_m_native_straight.json
material_idfleece_250gsm
artworksamples/artwork/aop_hood/map.json
photo_urisamples/models/person.png

Expected fixture checks

These are the checks declared by this sample, not a captured production result. Referenced sample files are included in the gated SDK checkout.

{
  "on_avatar.kind": "on_avatar",
  "ghost.kind": "ghost",
  "flat.kind": "flat",
  "generated.model": "generated",
  "photo.model": "photo",
  "ghost.print_locked": true,
  "generated.print_locked": true
}

Run

Obtain and install the SDK before running this example from its root directory.

python examples/run_workflow.py mockups