/pbr2gltf2

Convert PBR images to a glTF material

Primary LanguageC++Apache License 2.0Apache-2.0

PBR To glTF 2.0 converter

pbr2gltf2 is a command line tool for converting PBR images to a glTF 2.0 material. The tool is detecting depending on the filename, which PBR information is stored. It swizzles the images and does reassign the channels to a glTF 2.0 image. The tool stores the images plus a minimal, valid glTF 2.0 file containing the required material, textures and images.

Usage: pbr2gltf2.exe folder [-m 1.0 -r 1.0 -n true -e true]

-m 1.0 Default metallic factor value, if no metallic image was found.
-r 1.0 Default roughness factor value, if no roughness image was found.
-n true Keep original normal image data.
-e true Keep original emissive image data.

Software Requirements

Supported PBR packages

Import the generated glTF

Import the generated glTF in e.g. Gestaltor and reuse in your scene.

A short tutorial can be found here: Gestaltor - How to rescale a texture.