flowkit
  • GLB 2 PNG
    • Quickstart
    • API Key
    • Image settings
    • CodeSandbox
  • FAQ
Powered by GitBook
On this page
  • Image Params
  • rv - rotation vertical - default: 0
  • rh - rotation horizontal - default: 0
  • s - size - default: 1024
  • v - variant
  • Additional information

Was this helpful?

  1. GLB 2 PNG

Image settings

How to change the retrieved picture

PreviousAPI KeyNextCodeSandbox

Last updated 1 month ago

Was this helpful?

To customize image settings, insert them between /r/ and /u/ in the URL, as shown below:

https://www.flowkit.app/s/<API_KEY>/r/<IMAGE_SETTINGS>/u/<URL_TO_YOUR_FILE>

For example:

All image settings can be set as a comma (,) separated key-value list in the following format:

<KEY>:<VALUE>

You can find a list of all possible image settings below

Image Params

rv - rotation vertical - default: 0

Controls how far the camera is rotated up or down.

Examples:

  • rv:45 means the camera is rotated 45 degrees up

  • rv:-70 means the camera is rotated -70 degrees down, showing the object from below

rh - rotation horizontal - default: 0

Controls how far the camera is rotated to the left or right.

Examples:

  • rh:45 means the camera is rotated 45 degrees to the right

  • rh:-70 means the camera is rotated -70 degrees to the left

s - size - default: 1024

Set the resolution of the returned image. Images are always square.

Examples:

  • s:256 means the returned image has a resolution of 256x256 pixels

v - variant

Set the variant name that should be rendered.

Examples:

  • v:street means the returned image will be off the glTF/glb with variant name 'street'

Additional information

The returned image has by default the type png.

https://www.flowkit.app/s/demo/r/rv:15,rh:-45/u/https:/raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/master/2.0/MaterialsVariantsShoe/glTF/MaterialsVariantsShoe.gltf
About glTF Material Variants