Measurement Units: mudanças entre as edições

De TriLib
Ir para navegação Ir para pesquisar
(Criou página com '3D authoring softwares have their own measurement units. TriLib have some options to convert between these units to Unity units. <nowiki>*</nowiki>By default, 1 Unity unit is...')
 
Sem resumo de edição
 
Linha 1: Linha 1:
3D authoring softwares have their own measurement units. TriLib have some options to convert between these units to Unity units.
3D authoring software has its own measurement units. TriLib has some options to convert between these units and Unity units.


<nowiki>*</nowiki>By default, 1 Unity unit is 1 Meter.
<nowiki>*</nowiki>By default, 1 Unity unit is 1 Meter.


To keep the original measurement unit used when exporting your models, make sure your "AssetLoaderOptions" instance "UseFileScale" field is set to "true", this way, TriLib will try to use the measurement unit used when your model has been exported.
To keep the original measurement unit used when exporting your models, make sure your <code>AssetLoaderOptions</code> instance <code>UseFileScale</code> field is set to <code>true</code> .This way, TriLib will try to use the measurement unit used when your model has been exported.


If the default "1 Unity unit = 1 Meter" is not suitable for you, you can multiply the scale with any factor using the "AssetLoaderOptions.ScaleFactor" field. By default, this value is "1.0", which keeps the original measurement unit used when exporting your model.
If the default Unity measurement units is unsuitable, you can multiply the scale with any factor using the <code>AssetLoaderOptions.ScaleFactor</code> field. By default, this value is <code>1.0</code>, which keeps the original measurement unit used when exporting your model.


<nowiki>*</nowiki>Only FBX and DAE files have options to export the measurement unit used when authoring the models, TriLib just keeps the original units when loading models created in any other file format.
<nowiki>*</nowiki>Only FBX and DAE files have options to export the measurement unit used when authoring the models. TriLib keeps the original units when loading models created in any other file format.

Edição atual tal como às 09h10min de 18 de maio de 2024

3D authoring software has its own measurement units. TriLib has some options to convert between these units and Unity units.

*By default, 1 Unity unit is 1 Meter.

To keep the original measurement unit used when exporting your models, make sure your AssetLoaderOptions instance UseFileScale field is set to true .This way, TriLib will try to use the measurement unit used when your model has been exported.

If the default Unity measurement units is unsuitable, you can multiply the scale with any factor using the AssetLoaderOptions.ScaleFactor field. By default, this value is 1.0, which keeps the original measurement unit used when exporting your model.

*Only FBX and DAE files have options to export the measurement unit used when authoring the models. TriLib keeps the original units when loading models created in any other file format.