Games

Save the look a 3D model renders as a sprite with (style, its settings, camera) on the model, or clear it by leaving `look` out. Returns the look as saved (Roles: user).

Changed on
post/games/sprite3d/look

Request

  • Base URL
    https://api.ludo.ai/api
  • Auth
    API key in header Authorization

Request body

model_idstring required

The 3D model's history id (its three_d_asset entry, keyed by image.id).

preview_videostring

The preview of this look (the mp4 data uri /games/sprite3d/preview answered for its view), stored as the look's preview_url. Left out, the look has no preview.

Response

Success

style_idstring
style_versioninteger
style_paramsobject

The style's settings that differ from its defaults, by name.

perspective'horizon' | 'low' | 'isometric' | 'high' | 'top'
direction'S' | 'SW' | 'W' | 'NW' | 'N' | 'NE' | 'E' | 'SE'

Where the camera stands around a character facing S.

saved_atinteger

When it was saved (unix seconds). Set by the server.

preview_urlstring

The look's preview (an mp4 of the saved view), shown in place of the model's turntable. Set by the server from Sprite3DLookPayload.preview_video.

Changes