Skip to main content

render_v3_22.json

Copy Json { "$schema": "http://json-schema.org/draft-04/schema#", "description": "Renderobject", "properties": { "rend...

Updated over 3 weeks ago

Copy Json

{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "description": "Renderobject",
    "properties": {
        "render": {
            "oneOf": [
            {
                "type": "object",
                "properties": {
                    "normal": {
                        "type": "object",
                        "properties": {
                            "outline": {
                                "type": "boolean"
                            },
                            "anti_aliasing": {
                                "type": "boolean"
                            },
                            "background": {
                                "oneOf": [{
                                    "enum": ["environment", "transparent"]
                                }, {
                                    "type": "object",
                                    "properties": {
                                        "solid": {
                                            "$ref": "../../v1.0/color/color.json"
                                        }
                                    }
                                }]
                            },
                            "tension_map":{
                                "type": "boolean",
                                "default": "false"
                            },
                            "pressure_map":{
                                "type": "boolean",
                                "default": "false"
                            }
                        },
                        "additionalProperties": false,
                        "required": ["background"]
                    }
                },
                "required": ["normal"]
            }, 
            {
                "type": "object",
                "properties": {
                    "ray_trace": {
                        "type": "object",
                        "properties": {
                            "cycles": {
                                "type": "integer",
                                "default": 10,
                                "minimum": 10
                            },
                            "render_quality": {
                                "type": "string",
                                "default": "medium",
                                "enum": ["low", "medium", "high", "best"]
                            },
                            "hdri": {
                                "type": "object",
                                "properties": {
                                    "path": {
                                        "type": "string"
                                    },
                                    "exposure": {
                                        "type": "number",
                                        "minimum": -5,
                                        "maximum": 10
                                    },
                                    "rotation_angle": {
                                        "type": "number",
                                        "minimum": -180,
                                        "maximum": 180
                                    }
                                },
                                "required": ["path"]
                            },
                            "background": {
                                "oneOf": [{
                                    "enum": ["hdri", "transparent"]
                                }, {
                                    "type": "object",
                                    "properties": {
                                        "solid": {
                                            "$ref": "../../v1.0/color/color.json"
                                        }
                                    }
                                }]
                            }
                        }
                    }
                },
                "required": ["ray_trace"]
            }, 
            {
                "type":  ["string", "object"],
                "properties": {
                    "schematic": {
                        "type": "object",
                        "properties": {
                            "schematic_params": {
                                "type": "object",
                                "properties": {
                                            "contour_lines": {
                                                "type": "object",
                                                "properties": {
                                                    "thickness": {
                                                        "type": "integer",
                                                        "minimum": 0,
                                                        "maximum": 1,
                                                        "default": 2
                                                    },
                                                    "color": {
                                                        "$ref": "../../v1.0/color/color.json"
                                                    }
                                                }
                                            },
                                            "internal_lines": {
                                                "type": "object",
                                                "properties": {
                                                    "color": {
                                                        "$ref": "../../v1.0/color/color.json"
                                                    },
                                                    "seamline_thickness": {
                                                        "type": "integer",
                                                        "minimum": 0,
                                                        "maximum": 5,
                                                        "default": 1
                                                    },
                                                    "drape_line_thickness": {
                                                        "type": "integer",
                                                        "minimum": 0,
                                                        "maximum": 5,
                                                        "default": 1
                                                    },
                                                    "cut_marks_thickness": {
                                                        "type": "integer",
                                                        "minimum": 0,
                                                        "maximum": 5,
                                                        "default": 2
                                                    },
                                                    "stitches_scale": {
                                                        "type": "integer",
                                                        "minimum": 1,
                                                        "maximum": 5,
                                                        "default": 2
                                                    }
                                                }
                                            },
                                            "garment_material": {
                                                "type": "object",
                                                "properties": {
                                                    "color": {
                                                        "$ref": "../../v1.0/color/color.json"
                                                    },
                                                    "shadows_contrast": {
                                                        "type": "number",
                                                        "minimum": 0,
                                                        "maximum": 1,
                                                        "default": 0.1
                                                    }
                                                }
                                            },
                                            "garment_details": {
                                                "properties": {
                                                    "artwork": {
                                                        "type": "boolean",
                                                        "default": true
                                                    }
                                                }
                                            }
                                }
                            }
                        }
                            
                        
                    }
                },
                "required": ["schematic"]
            }
        ]
        },
        "cycles": {
            "type": "integer",
            "minimum": 10
        },
        "outline": {
            "type": "boolean"
        },
        "include_avatar": {
            "type": "boolean"
        },
        "auto_crop": {
            "type": "boolean"
        },
        "width": {
            "type": "number",
            "minimum": 1.7
        },
        "height": {
            "type": "number",
            "minimum": 1.7
        },
        "dpi": {
            "type" : "number",
            "minimum": 17
        },
        "captures": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "camera": {
                        "$ref": "../../v1.0/environment/camera.json"
                    },
                    "path": {
                        "type": "string"
                    }
                },
                "required": ["camera", "path"]
            },
            "minItems": 1
        },
        "multipack": {
            "ref": "../../v1.0/render/multipack.json"
        }
    },
    "required": ["render", "captures", "width", "height"]
}
Did this answer your question?