File Format specific Options

De TriLib
Revisão de 16h52min de 13 de julho de 2021 por Trilib (discussão | contribs) (Criou página com 'Some file formats TriLib accepts have unique options you can set with static reader properties: == FBX == '''TriLibCore.Fbx.Reader.FbxReader.PivotMode:''' You can change this...')
(dif) ← Edição anterior | Revisão atual (dif) | Versão posterior → (dif)
Ir para navegação Ir para pesquisar

Some file formats TriLib accepts have unique options you can set with static reader properties:

FBX

TriLibCore.Fbx.Reader.FbxReader.PivotMode: You can change this static field to define how TriLib will handle FBX object pivots. The default option is to move the pivots to object centers.

TriLibCore.Fbx.Reader.FbxReader.FBXConversionPrecision: Floating point data on FBX files is stored as 16-bits (double) precision. You can define a multiplier on this static field applied to all FBX floating-point data when loading the model.

TriLibCore.Fbx.Reader.FbxReader.BufferizeStream: If you turn off this static field, TriLib will read FBX files data straight from the disk instead of buffering the data before loading it. This will save some memory, increasing loading times.

GLTF

TriLibCore.Gltf.Reader.GltfReader.DracoDecompressorCallback: You can pass a custom callback to decompress Draco meshes using this static field. If you turn on Draco Decompression on the Project Settings->TriLib area, TriLib will automatically set this field value to use a built-in Draco decoder.

STL

TriLibCore.Stl.Reader.StlReader.FixInfacingNormals: Some STL files may contain normals facing the opposite direction. If you turn on this static field, TriLib will re-align the model normals when loading.