AssetAdvancedPropertyMetadata.cs 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854
  1. using System;
  2. namespace TriLib
  3. {
  4. public static class AssetAdvancedPropertyMetadata
  5. {
  6. public static string GetConfigKey(AssetAdvancedPropertyClassNames className)
  7. {
  8. return AssetAdvancedPropertyMetadata.ConfigKeys[(int)className];
  9. }
  10. public static void GetOptionMetadata(string key, out AssetAdvancedConfigType assetAdvancedConfigType, out string className, out string description, out string group, out object defaultValue, out object minValue, out object maxValue, out bool hasDefaultValue, out bool hasMinValue, out bool hasMaxValue)
  11. {
  12. switch (key)
  13. {
  14. case "IMPORT_AC_EVAL_SUBDIVISION":
  15. assetAdvancedConfigType = AssetAdvancedConfigType.Bool;
  16. className = "ACImportEvalSubdivision";
  17. description = "Configures whether the AC loader evaluates subdivision surfaces (indicated by the presence\nof the 'subdiv' attribute in the file). By default, TriLib performs\nthe subdivision using the standard Catmull-Clark algorithm.";
  18. group = "ACImport";
  19. hasDefaultValue = true;
  20. hasMinValue = false;
  21. hasMaxValue = false;
  22. defaultValue = true;
  23. minValue = null;
  24. maxValue = null;
  25. return;
  26. case "IMPORT_AC_SEPARATE_BFCULL":
  27. assetAdvancedConfigType = AssetAdvancedConfigType.Bool;
  28. className = "ACImportSeparateBackfaceCull";
  29. description = "Configures the AC loader to collect all surfaces which have the \"Backface cull\" flag set in separate\nmeshes.";
  30. group = "ACImport";
  31. hasDefaultValue = true;
  32. hasMinValue = false;
  33. hasMaxValue = false;
  34. defaultValue = true;
  35. minValue = null;
  36. maxValue = null;
  37. return;
  38. case "IMPORT_ASE_RECONSTRUCT_NORMALS":
  39. assetAdvancedConfigType = AssetAdvancedConfigType.Bool;
  40. className = "ASEImportReconstructNormals";
  41. description = "Configures the ASE loader to always reconstruct normal vectors basing on the smoothing groups\nloaded from the file. Some ASE files carry invalid normals, others don't.";
  42. group = "ASEImport";
  43. hasDefaultValue = true;
  44. hasMinValue = false;
  45. hasMaxValue = false;
  46. defaultValue = true;
  47. minValue = null;
  48. maxValue = null;
  49. return;
  50. case "PP_GSN_MAX_SMOOTHING_ANGLE":
  51. assetAdvancedConfigType = AssetAdvancedConfigType.Float;
  52. className = "CalculateNormalsMaxSmoothingAngle";
  53. description = "Specifies the maximum angle that may be between two face normals at the same vertex position that\ntheir normals will be smoothed together during the calculate smooth normals step. This is commonly\ncalled the \"crease angle\". The angle is specified in degrees.";
  54. group = "CalculateNormals";
  55. hasDefaultValue = true;
  56. hasMinValue = true;
  57. hasMaxValue = true;
  58. defaultValue = 175f;
  59. minValue = 0f;
  60. maxValue = 175f;
  61. return;
  62. case "PP_CT_MAX_SMOOTHING_ANGLE":
  63. assetAdvancedConfigType = AssetAdvancedConfigType.Float;
  64. className = "CalculateTangentsMaxSmoothingAngle";
  65. description = "Specifies the maximum angle that may be between two vertex tangents that their tangents\nand bitangents are smoothed during the step to calculate the tangent basis. The angle specified \nis in degrees.";
  66. group = "CalculateTangents";
  67. hasDefaultValue = true;
  68. hasMinValue = true;
  69. hasMaxValue = true;
  70. defaultValue = 45f;
  71. minValue = 0f;
  72. maxValue = 175f;
  73. return;
  74. case "PP_CT_TEXTURE_CHANNEL_INDEX":
  75. assetAdvancedConfigType = AssetAdvancedConfigType.Integer;
  76. className = "CalculateTangentsTextureChannelIndex";
  77. description = "Source UV channel for tangent space computation. The specified channel must exist or an error will be raised.";
  78. group = "CalculateTangents";
  79. hasDefaultValue = true;
  80. hasMinValue = false;
  81. hasMaxValue = false;
  82. defaultValue = 0;
  83. minValue = null;
  84. maxValue = null;
  85. return;
  86. case "IMPORT_COLLADA_IGNORE_UP_DIRECTION":
  87. assetAdvancedConfigType = AssetAdvancedConfigType.Bool;
  88. className = "ColladaImportIgnoreUpDirection";
  89. description = "Specifies whether the collada loader will ignore the up direction.";
  90. group = "ColladaImport";
  91. hasDefaultValue = true;
  92. hasMinValue = false;
  93. hasMaxValue = false;
  94. defaultValue = false;
  95. minValue = null;
  96. maxValue = null;
  97. return;
  98. case "PP_DB_THRESHOLD":
  99. assetAdvancedConfigType = AssetAdvancedConfigType.Float;
  100. className = "DeboneThreshold";
  101. description = "Threshold used to determine if a bone is kept or removed during the TriLib.TriLibPostProcessSteps.Debone step.";
  102. group = "Debone";
  103. hasDefaultValue = true;
  104. hasMinValue = false;
  105. hasMaxValue = false;
  106. defaultValue = 1f;
  107. minValue = null;
  108. maxValue = null;
  109. return;
  110. case "PP_DB_ALL_OR_NONE":
  111. assetAdvancedConfigType = AssetAdvancedConfigType.Bool;
  112. className = "DeboneAllOrNone";
  113. description = "Require all bones to qualify for deboning before any are removed.";
  114. group = "Debone";
  115. hasDefaultValue = true;
  116. hasMinValue = false;
  117. hasMaxValue = false;
  118. defaultValue = false;
  119. minValue = null;
  120. maxValue = null;
  121. return;
  122. case "IMPORT_FBX_READ_ALL_MATERIALS":
  123. assetAdvancedConfigType = AssetAdvancedConfigType.Bool;
  124. className = "FBXImportReadAllMaterials";
  125. description = "Specifies whether the FBX importer will read all materials present in the source file or take only the referenced materials, if the importer\nwill read materials, otherwise this has no effect.";
  126. group = "FBXImport";
  127. hasDefaultValue = true;
  128. hasMinValue = false;
  129. hasMaxValue = false;
  130. defaultValue = false;
  131. minValue = null;
  132. maxValue = null;
  133. return;
  134. case "IMPORT_FBX_OPTIMIZE_EMPTY_ANIMATION_CURVES":
  135. assetAdvancedConfigType = AssetAdvancedConfigType.Bool;
  136. className = "FBXImportOptimizeEmptyAnimationCurves";
  137. description = "Specifies whether the importer will drop empty animation curves or animation curves which match the bind pose";
  138. group = "FBXImport";
  139. hasDefaultValue = true;
  140. hasMinValue = false;
  141. hasMaxValue = false;
  142. defaultValue = true;
  143. minValue = null;
  144. maxValue = null;
  145. return;
  146. case "IMPORT_FBX_EMBEDDED_TEXTURES_LEGACY_NAMING":
  147. assetAdvancedConfigType = AssetAdvancedConfigType.Bool;
  148. className = "FBXImportEmbeddedTextureLegacyNaming";
  149. description = "Specifies whether the FBX importer will use legacy embedded texture naming.";
  150. group = "FBXImport";
  151. hasDefaultValue = true;
  152. hasMinValue = false;
  153. hasMaxValue = false;
  154. defaultValue = false;
  155. minValue = null;
  156. maxValue = null;
  157. return;
  158. case "IMPORT_FBX_STRICT_MODE":
  159. assetAdvancedConfigType = AssetAdvancedConfigType.Bool;
  160. className = "FBXImportStrictMode";
  161. description = "Specifies whether the FBX importer will act in strict mode in which only the FBX 2013format is supported and any other sub formats are rejected. FBX 2013 is the primary target for the importer, so thisformat is best supported and well-tested.";
  162. group = "FBXImport";
  163. hasDefaultValue = true;
  164. hasMinValue = false;
  165. hasMaxValue = false;
  166. defaultValue = false;
  167. minValue = null;
  168. maxValue = null;
  169. return;
  170. case "IMPORT_FBX_READ_LIGHTS":
  171. assetAdvancedConfigType = AssetAdvancedConfigType.Bool;
  172. className = "FBXImportReadLights";
  173. description = "Specifies whether the FBX importer will read light sources.";
  174. group = "FBXImport";
  175. hasDefaultValue = true;
  176. hasMinValue = false;
  177. hasMaxValue = false;
  178. defaultValue = true;
  179. minValue = null;
  180. maxValue = null;
  181. return;
  182. case "IMPORT_FBX_READ_MATERIALS":
  183. assetAdvancedConfigType = AssetAdvancedConfigType.Bool;
  184. className = "FBXImportReadMaterials";
  185. description = "Specifies whether the FBX importer will read materials.";
  186. group = "FBXImport";
  187. hasDefaultValue = true;
  188. hasMinValue = false;
  189. hasMaxValue = false;
  190. defaultValue = true;
  191. minValue = null;
  192. maxValue = null;
  193. return;
  194. case "IMPORT_FBX_PRESERVE_PIVOTS":
  195. assetAdvancedConfigType = AssetAdvancedConfigType.Bool;
  196. className = "FBXImportPreservePivots";
  197. description = "Specifies whether the FBX importer will preserve pivot points for transformations (as extra nodes). If set to false, pivots\nand offsets will be evaluated whenever possible.";
  198. group = "FBXImport";
  199. hasDefaultValue = true;
  200. hasMinValue = false;
  201. hasMaxValue = false;
  202. defaultValue = true;
  203. minValue = null;
  204. maxValue = null;
  205. return;
  206. case "IMPORT_FBX_READ_ALL_GEOMETRY_LAYERS":
  207. assetAdvancedConfigType = AssetAdvancedConfigType.Bool;
  208. className = "FBXImportReadAllGeometryLayers";
  209. description = "Specifies whether the FBX importer will merge all geometry layers present in the source file or take only the first.";
  210. group = "FBXImport";
  211. hasDefaultValue = true;
  212. hasMinValue = false;
  213. hasMaxValue = false;
  214. defaultValue = true;
  215. minValue = null;
  216. maxValue = null;
  217. return;
  218. case "IMPORT_FBX_READ_TEXTURES":
  219. assetAdvancedConfigType = AssetAdvancedConfigType.Bool;
  220. className = "FBXImportReadTextures";
  221. description = "Specifies whether the FBX importer will read embedded textures.";
  222. group = "FBXImport";
  223. hasDefaultValue = true;
  224. hasMinValue = false;
  225. hasMaxValue = false;
  226. defaultValue = true;
  227. minValue = null;
  228. maxValue = null;
  229. return;
  230. case "IMPORT_FBX_READ_CAMERAS":
  231. assetAdvancedConfigType = AssetAdvancedConfigType.Bool;
  232. className = "FBXImportReadCameras";
  233. description = "Specifies whether the FBX importer will read cameras.";
  234. group = "FBXImport";
  235. hasDefaultValue = true;
  236. hasMinValue = false;
  237. hasMaxValue = false;
  238. defaultValue = true;
  239. minValue = null;
  240. maxValue = null;
  241. return;
  242. case "IMPORT_FBX_READ_ANIMATIONS":
  243. assetAdvancedConfigType = AssetAdvancedConfigType.Bool;
  244. className = "FBXImportReadAnimations";
  245. description = "Specifies whether the FBX importer will read animations.";
  246. group = "FBXImport";
  247. hasDefaultValue = true;
  248. hasMinValue = false;
  249. hasMaxValue = false;
  250. defaultValue = true;
  251. minValue = null;
  252. maxValue = null;
  253. return;
  254. case "PP_FD_REMOVE":
  255. assetAdvancedConfigType = AssetAdvancedConfigType.Bool;
  256. className = "FindDegeneratesRemove";
  257. description = "Configures the TriLib.TriLibPostProcessSteps.FindDegenerates step\nto remove degenerated primitives from the import immediately.\nThe default behavior converts degenerated triangles to lines and\ndegenerated lines to points.";
  258. group = "FindDegenerates";
  259. hasDefaultValue = true;
  260. hasMinValue = false;
  261. hasMaxValue = false;
  262. defaultValue = false;
  263. minValue = null;
  264. maxValue = null;
  265. return;
  266. case "PP_FID_ANIM_ACCURACY":
  267. assetAdvancedConfigType = AssetAdvancedConfigType.Float;
  268. className = "FindInvalidDataAnimAccuracy";
  269. description = "Input parameter to the TriLib.TriLibPostProcessSteps.FindInvalidData step.\nIt specifies the floating point accuracy for animation values, specifically the epislon\nduring the comparison. The step checks for animation tracks where all frame values are absolutely equal\nand removes them. Two floats are considered equal if the invariant abs(n0-n1) > epislon holds\ntrue for all vector/quaternion components.";
  270. group = "FindInvalidData";
  271. hasDefaultValue = true;
  272. hasMinValue = false;
  273. hasMaxValue = false;
  274. defaultValue = 0f;
  275. minValue = null;
  276. maxValue = null;
  277. return;
  278. case "IMPORT_IFC_SKIP_SPACE_REPRESENTATIONS":
  279. assetAdvancedConfigType = AssetAdvancedConfigType.Bool;
  280. className = "IFCImportSkipSpaceRepresentations";
  281. description = "Specifies whether the IFC loader skips over shape representations of type 'Curve2D'. A lot of files contain both a faceted mesh representation and a outline\nwith a presentation type of 'Curve2D'. Currently TriLib does not convert those, so turning this option off just clutters the log with errors.";
  282. group = "IFCImport";
  283. hasDefaultValue = true;
  284. hasMinValue = false;
  285. hasMaxValue = false;
  286. defaultValue = true;
  287. minValue = null;
  288. maxValue = null;
  289. return;
  290. case "IMPORT_IFC_CYLINDRICAL_TESSELLATION":
  291. assetAdvancedConfigType = AssetAdvancedConfigType.Integer;
  292. className = "IFCImportCylindricalTesselation";
  293. description = "This is used by the IFC importer to determine the tessellation parameter\nfor cylindrical shapes, i.e. the number of segments used to aproximate a circle.";
  294. group = "IFCImport";
  295. hasDefaultValue = true;
  296. hasMinValue = true;
  297. hasMaxValue = true;
  298. defaultValue = 32;
  299. minValue = 3;
  300. maxValue = 180;
  301. return;
  302. case "IMPORT_IFC_SMOOTHING_ANGLE":
  303. assetAdvancedConfigType = AssetAdvancedConfigType.Float;
  304. className = "IFCImportSmoothingAngle";
  305. description = "This is used by the IFC importer to determine the tessellation parameter\nfor smoothing curves.\n";
  306. group = "IFCImport";
  307. hasDefaultValue = true;
  308. hasMinValue = true;
  309. hasMaxValue = true;
  310. defaultValue = 10f;
  311. minValue = 5f;
  312. maxValue = 120f;
  313. return;
  314. case "IMPORT_IFC_CUSTOM_TRIANGULATION":
  315. assetAdvancedConfigType = AssetAdvancedConfigType.Bool;
  316. className = "IFCImportCustomTriangulation";
  317. description = "Specifies whether the IFC loader will use its own, custom triangulation algorithm to triangulate wall and floor meshes. If this is set to false,\nwalls will be either triangulated by the post process triangulation or will be passed through as huge polygons with faked holes (e.g. holes that are connected\nwith the outer boundary using a dummy edge). It is highly recommended to leave this property set to true as the default post process has some known\nissues with these kind of polygons.";
  318. group = "IFCImport";
  319. hasDefaultValue = true;
  320. hasMinValue = false;
  321. hasMaxValue = false;
  322. defaultValue = true;
  323. minValue = null;
  324. maxValue = null;
  325. return;
  326. case "IMPORT_NO_SKELETON_MESHES":
  327. assetAdvancedConfigType = AssetAdvancedConfigType.Bool;
  328. className = "ImportNoSkeletonMeshes";
  329. description = "Global setting to disable generation of skeleton dummy meshes. These are generated as a visualization aid\nin cases which the input data contains no geometry, but only animation data. So the geometry are visualizing\nthe bones.";
  330. group = "Import";
  331. hasDefaultValue = true;
  332. hasMinValue = false;
  333. hasMaxValue = false;
  334. defaultValue = false;
  335. minValue = null;
  336. maxValue = null;
  337. return;
  338. case "FAVOUR_SPEED":
  339. assetAdvancedConfigType = AssetAdvancedConfigType.Bool;
  340. className = "ImportFavourSpeed";
  341. description = "A hint to TriLib to favour speed against import quality. Enabling this option\nmay result in faster loading, or it may not. It is just a hint to loaders and post-processing\nsteps to use faster code paths if possible. A value not equal to zero stands\nfor true.";
  342. group = "Import";
  343. hasDefaultValue = true;
  344. hasMinValue = false;
  345. hasMaxValue = false;
  346. defaultValue = false;
  347. minValue = null;
  348. maxValue = null;
  349. return;
  350. case "IMPORT_GLOBAL_KEYFRAME":
  351. assetAdvancedConfigType = AssetAdvancedConfigType.Integer;
  352. className = "ImportGlobalKeyframe";
  353. description = "Sets the vertex animation keyframe to be imported. TriLib does not support vertex animation.";
  354. group = "Import";
  355. hasDefaultValue = true;
  356. hasMinValue = false;
  357. hasMaxValue = false;
  358. defaultValue = 0;
  359. minValue = null;
  360. maxValue = null;
  361. return;
  362. case "PP_ICL_PTCACHE_SIZE":
  363. assetAdvancedConfigType = AssetAdvancedConfigType.Integer;
  364. className = "ImproveCacheLocalityPostTransformCacheSize";
  365. description = "Sets the size of the post-transform vertex cache to optimize vertices for. This is\nfor the TriLib.TriLibPostProcessSteps.ImproveCacheLocality step. The size\nis given in vertices. Of course you can't know how the vertex format will exactly look\nlike after the import returns, but you can still guess what your meshes will\nprobably have. The default value *has* resulted in slight performance improvements\nfor most Nvidia/AMD cards since 2002.";
  366. group = "ImproveCacheLocality";
  367. hasDefaultValue = true;
  368. hasMinValue = false;
  369. hasMaxValue = false;
  370. defaultValue = 0;
  371. minValue = null;
  372. maxValue = null;
  373. return;
  374. case "IMPORT_IRR_ANIM_FPS":
  375. assetAdvancedConfigType = AssetAdvancedConfigType.Integer;
  376. className = "IRRImportAnimFPS";
  377. description = "Defines the output frame rate of the IRR loader.\nIRR animations are difficult to convert for TriLib and there will always be\na loss of quality. This setting defines how many keys per second are returned by the converter.";
  378. group = "IRRImport";
  379. hasDefaultValue = true;
  380. hasMinValue = false;
  381. hasMaxValue = false;
  382. defaultValue = 100;
  383. minValue = null;
  384. maxValue = null;
  385. return;
  386. case "PP_LBW_MAX_WEIGHTS":
  387. assetAdvancedConfigType = AssetAdvancedConfigType.Integer;
  388. className = "LimitBoneWeightsMaxWeights";
  389. description = "Sets the maximum number of bones that can affect a single vertex. This is used\nby the TriLib.TriLibPostProcessSteps.LimitBoneWeights step.";
  390. group = "LimitBoneWeights";
  391. hasDefaultValue = true;
  392. hasMinValue = false;
  393. hasMaxValue = false;
  394. defaultValue = 4;
  395. minValue = null;
  396. maxValue = null;
  397. return;
  398. case "IMPORT_LWO_ONE_LAYER_ONLY":
  399. assetAdvancedConfigType = AssetAdvancedConfigType.Bool;
  400. className = "LWOImportOneLayerOnly";
  401. description = "Configures the LWO loader to load just one layer from the model.\nLWO files consist of layers and in some cases it could be useful to load only one of them.\nThis property can be either a string - which specifies the name of the layer - or an integer - the index\nof the layer. If the property is not set then the whole LWO model is loaded. Loading fails\nif the requested layer is not vailable. The layer index is zero-based and the layer name may not be empty";
  402. group = "LWOImport";
  403. hasDefaultValue = true;
  404. hasMinValue = false;
  405. hasMaxValue = false;
  406. defaultValue = false;
  407. minValue = null;
  408. maxValue = null;
  409. return;
  410. case "IMPORT_LWS_ANIM_START":
  411. assetAdvancedConfigType = AssetAdvancedConfigType.Integer;
  412. className = "LWSImportAnimStart";
  413. description = "Defines the beginning of the time range for which the LWS loader evaluates animations and computes\nAiNodeAnim's.TriLib provides full conversion of Lightwave's envelope system, including pre and post\nconditions. The loader computes linearly subsampled animation channels with the frame rate\ngiven in the LWS file. This property defines the start time.\nAnimation channels are only generated if a node has at least one envelope with more than one key\nassigned. This property is given in frames where '0' is the first. By default,\nif this property is not set, the importer takes the animation start from the input LWS\nfile ('FirstFrame' line)";
  414. group = "LWSImport";
  415. hasDefaultValue = true;
  416. hasMinValue = false;
  417. hasMaxValue = false;
  418. defaultValue = 0;
  419. minValue = null;
  420. maxValue = null;
  421. return;
  422. case "IMPORT_LWS_ANIM_END":
  423. assetAdvancedConfigType = AssetAdvancedConfigType.Integer;
  424. className = "LWSImportAnimEnd";
  425. description = "Defines the ending of the time range for which the LWS loader evaluates animations and computes\nAiNodeAnim's.\nTriLib provides full conversion of Lightwave's envelope system, including pre and post\nconditions. The loader computes linearly subsampled animation channels with the frame rate\ngiven in the LWS file. This property defines the end time.\nAnimation channels are only generated if a node has at least one envelope with more than one key\nassigned. This property is given in frames where '0' is the first. By default,\nif this property is not set, the importer takes the animation end from the input LWS\nfile.";
  426. group = "LWSImport";
  427. hasDefaultValue = true;
  428. hasMinValue = false;
  429. hasMaxValue = false;
  430. defaultValue = 0;
  431. minValue = null;
  432. maxValue = null;
  433. return;
  434. case "IMPORT_MD2_KEYFRAME":
  435. assetAdvancedConfigType = AssetAdvancedConfigType.Integer;
  436. className = "MD2ImportKeyframe";
  437. description = "Sets the vertex animation keyframe to be imported. TriLib does not support vertex animation.";
  438. group = "MD2Import";
  439. hasDefaultValue = true;
  440. hasMinValue = false;
  441. hasMaxValue = false;
  442. defaultValue = 0;
  443. minValue = null;
  444. maxValue = null;
  445. return;
  446. case "IMPORT_MD3_SHADER_SRC":
  447. assetAdvancedConfigType = AssetAdvancedConfigType.String;
  448. className = "MD3ImportShaderSource";
  449. description = "Specifies the Quake 3 shader file to be used for a particular MD3 file. This can be a full path or\nrelative to where all MD3 shaders reside.";
  450. group = "MD3Import";
  451. hasDefaultValue = false;
  452. hasMinValue = false;
  453. hasMaxValue = false;
  454. defaultValue = null;
  455. minValue = null;
  456. maxValue = null;
  457. return;
  458. case "IMPORT_MD3_KEYFRAME":
  459. assetAdvancedConfigType = AssetAdvancedConfigType.Integer;
  460. className = "MD3ImportKeyframe";
  461. description = "Sets the vertex animation keyframe to be imported. TriLib does not support vertex animation.";
  462. group = "MD3Import";
  463. hasDefaultValue = true;
  464. hasMinValue = false;
  465. hasMaxValue = false;
  466. defaultValue = 0;
  467. minValue = null;
  468. maxValue = null;
  469. return;
  470. case "IMPORT_MD3_SKIN_NAME":
  471. assetAdvancedConfigType = AssetAdvancedConfigType.String;
  472. className = "MD3ImportSkinName";
  473. description = "Tells the MD3 loader which skin files to load. When loading MD3 files, TriLib checks\nwhether a file named \"md3_file_name\"_\"skin_name\".skin exists. These files are used by\nQuake III to be able to assign different skins (e.g. red and blue team) to models. 'default', 'red', 'blue'\nare typical skin names.";
  474. group = "MD3Import";
  475. hasDefaultValue = true;
  476. hasMinValue = false;
  477. hasMaxValue = false;
  478. defaultValue = "default";
  479. minValue = null;
  480. maxValue = null;
  481. return;
  482. case "IMPORT_MD3_HANDLE_MULTIPART":
  483. assetAdvancedConfigType = AssetAdvancedConfigType.Bool;
  484. className = "MD3ImportHandleMultiPart";
  485. description = "Configures the MD3 loader to detect and process multi-part Quake player models. These models\nusually consit of three files, lower.md3, upper.md3 and head.md3. If this propery is\nset to true, TriLib will try to load and combine all three files if one of them is loaded.";
  486. group = "MD3Import";
  487. hasDefaultValue = true;
  488. hasMinValue = false;
  489. hasMaxValue = false;
  490. defaultValue = true;
  491. minValue = null;
  492. maxValue = null;
  493. return;
  494. case "IMPORT_MD5_NO_ANIM_AUTOLOAD":
  495. assetAdvancedConfigType = AssetAdvancedConfigType.Bool;
  496. className = "MD5ImportNoAnimAutoLoad";
  497. description = "Configures the MD5 loader to not load the MD5ANIM file for a MD5MESH file automatically.\nThe default strategy is to look for a file with the same name but with the MD5ANIm extension\nin the same directory. If it is found it is loaded and combined with the MD5MESH file. This configuration\noption can be used to disable this behavior.";
  498. group = "MD5Import";
  499. hasDefaultValue = true;
  500. hasMinValue = false;
  501. hasMaxValue = false;
  502. defaultValue = false;
  503. minValue = null;
  504. maxValue = null;
  505. return;
  506. case "IMPORT_MDC_KEYFRAME":
  507. assetAdvancedConfigType = AssetAdvancedConfigType.Integer;
  508. className = "MDCImportKeyframe";
  509. description = "Sets the vertex animation keyframe to be imported. TriLib does not support vertex animation.";
  510. group = "MDCImport";
  511. hasDefaultValue = true;
  512. hasMinValue = false;
  513. hasMaxValue = false;
  514. defaultValue = 0;
  515. minValue = null;
  516. maxValue = null;
  517. return;
  518. case "IMPORT_MDL_KEYFRAME":
  519. assetAdvancedConfigType = AssetAdvancedConfigType.Integer;
  520. className = "MDLmportKeyframe";
  521. description = "Sets the vertex animation keyframe to be imported. TriLib does not support vertex animation.";
  522. group = "MDLImport";
  523. hasDefaultValue = true;
  524. hasMinValue = false;
  525. hasMaxValue = false;
  526. defaultValue = 0;
  527. minValue = null;
  528. maxValue = null;
  529. return;
  530. case "IMPORT_MDL_COLORMAP":
  531. assetAdvancedConfigType = AssetAdvancedConfigType.String;
  532. className = "MDLImportColormap";
  533. description = "Sets the colormap(= palette) to be used to decode embedded textures in MDL (Quake or 3DG5) files.\nThis must be a valid path to a file. The file is 768 (256 * 3) bytes large and contains\nRGB triplets for each of the 256 palette entries. If the file is not found, a default\npalette (from Quake 1) is used.";
  534. group = "MDLImport";
  535. hasDefaultValue = false;
  536. hasMinValue = false;
  537. hasMaxValue = false;
  538. defaultValue = null;
  539. minValue = null;
  540. maxValue = null;
  541. return;
  542. case "IMPORT_OGRE_MATERIAL_FILE":
  543. assetAdvancedConfigType = AssetAdvancedConfigType.String;
  544. className = "OgreImportMaterialFile";
  545. description = "The Ogre importer will try to load this MaterialFile. Ogre meshes reference with material names, this does not tell TriLib\nwhere the file is located. TriLib will try to find the source file in the following order: [material-name].material, [mesh-filename-base].material,\nand lastly the material name defined by this config property.";
  546. group = "OgreImport";
  547. hasDefaultValue = true;
  548. hasMinValue = false;
  549. hasMaxValue = false;
  550. defaultValue = "Scene.Material";
  551. minValue = null;
  552. maxValue = null;
  553. return;
  554. case "IMPORT_OGRE_TEXTURETYPE_FROM_FILENAME":
  555. assetAdvancedConfigType = AssetAdvancedConfigType.Bool;
  556. className = "OgreImportTextureTypeFromFilename";
  557. description = "The Ogre importer will detect the texture usage from the filename. Normally a texture is loaded as a color map, if no target is specified\nin the material file. If this is enabled, then TriLib will try to detect the type from the texture filename postfix:\nNormal Maps: _n, _nrm, _nrml, _normal, _normals, _normalmapSpecular Maps: _s, _spec, _specular, _specularmapLight Maps: _l, _light, _lightmap, _occ, _occlusionDisplacement Maps: _dis, _displacementThe matching is case insensitive. Postfix is taken between the last \"_\" and last \".\". The default behavior is to detect type from lower cased\ntexture unit name by matching against: normalmap, specularmap, lightmap, and displacementmap. For both cases if no match is found then,\nTextureType.Diffuse is used.";
  558. group = "OgreImport";
  559. hasDefaultValue = true;
  560. hasMinValue = false;
  561. hasMaxValue = false;
  562. defaultValue = false;
  563. minValue = null;
  564. maxValue = null;
  565. return;
  566. case "PP_OG_EXCLUDE_LIST":
  567. assetAdvancedConfigType = AssetAdvancedConfigType.String;
  568. className = "OptimizeGraphExcludeList";
  569. description = "Configures the TriLib.TriLibPostProcessSteps.OptimizeGraph step\nto preserve nodes matching a name in a given list. This is a list of 1 to n strings, whitespace ' ' serves as a delimter character.\nIdentifiers containing whitespaces must be enclosed in *single* quotation marks. Carriage returns\nand tabs are treated as white space.\nIf a node matches one of these names, it will not be modified or removed by the\npostprocessing step.";
  570. group = "OptimizeGraph";
  571. hasDefaultValue = false;
  572. hasMinValue = false;
  573. hasMaxValue = false;
  574. defaultValue = null;
  575. minValue = null;
  576. maxValue = null;
  577. return;
  578. case "PP_PTV_NORMALIZE":
  579. assetAdvancedConfigType = AssetAdvancedConfigType.Bool;
  580. className = "PreTransformVerticesNormalize";
  581. description = "Configures the TriLib.PostProcessSteps.PreTransformVertices step\nto normalize all vertex components into the -1...1 range.";
  582. group = "PreTransformVertices";
  583. hasDefaultValue = true;
  584. hasMinValue = false;
  585. hasMaxValue = false;
  586. defaultValue = false;
  587. minValue = null;
  588. maxValue = null;
  589. return;
  590. case "PP_PTV_KEEP_HIERARCHY":
  591. assetAdvancedConfigType = AssetAdvancedConfigType.Bool;
  592. className = "PreTransformVerticesKeepHierarchy";
  593. description = "Configures the TriLib.TriLibPostProcessSteps.PreTransformVertices step\nto keep the scene hierarchy. Meshes are moved to worldspace, but no optimization\nis performed where meshes with the same materials are not joined.\nThis option could be of used if you have a scene hierarchy that contains\nimportant additional information which you intend to parse.";
  594. group = "PreTransformVertices";
  595. hasDefaultValue = true;
  596. hasMinValue = false;
  597. hasMaxValue = false;
  598. defaultValue = false;
  599. minValue = null;
  600. maxValue = null;
  601. return;
  602. case "PP_PTV_ROOT_TRANSFORMATION":
  603. assetAdvancedConfigType = AssetAdvancedConfigType.AiMatrix;
  604. className = "PreTransformVerticesRootTransformation";
  605. description = "Configures the TriLib.TriLibPostProcessSteps.PreTransformVertices step to use a user defined matrix as the scene root node transformation\nbefore transforming vertices.";
  606. group = "PreTransformVertices";
  607. hasDefaultValue = false;
  608. hasMinValue = false;
  609. hasMaxValue = false;
  610. defaultValue = null;
  611. minValue = null;
  612. maxValue = null;
  613. return;
  614. case "PP_PTV_ADD_ROOT_TRANSFORMATION":
  615. assetAdvancedConfigType = AssetAdvancedConfigType.Bool;
  616. className = "PreTransformVerticesAddRootTransformation";
  617. description = "Configures the TriLib.TriLibPostProcessSteps.PreTransformVertices step to use a user defined matrix as the scene root node\ntransformation before transforming vertices.";
  618. group = "PreTransformVertices";
  619. hasDefaultValue = true;
  620. hasMinValue = false;
  621. hasMaxValue = false;
  622. defaultValue = false;
  623. minValue = null;
  624. maxValue = null;
  625. return;
  626. case "PP_RVC_FLAGS":
  627. assetAdvancedConfigType = AssetAdvancedConfigType.AiComponent;
  628. className = "RemoveComponentFlags";
  629. description = "Input parameter to the TriLib.TriLibPostProcessSteps.RemoveComponent step.\nIt specifies the parts of the data structure to be removed.\nThis is a bitwise combination of the TriLib.AiComponent flag. If no valid mesh is remaining after\nthe step is executed, the import FAILS.";
  630. group = "RemoveComponent";
  631. hasDefaultValue = false;
  632. hasMinValue = false;
  633. hasMaxValue = false;
  634. defaultValue = null;
  635. minValue = null;
  636. maxValue = null;
  637. return;
  638. case "PP_RRM_EXCLUDE_LIST":
  639. assetAdvancedConfigType = AssetAdvancedConfigType.String;
  640. className = "RemoveRedundantMaterialsExcludeList";
  641. description = "Configures the TriLib.TriLibPostProcessSteps.RemoveRedundantMaterials step to\nkeep materials matching a name in a given list. This is a list of\n1 to n strings where whitespace ' ' serves as a delimiter character. Identifiers\ncontaining whitespaces must be enclosed in *single* quotation marks. Tabs or\ncarriage returns are treated as whitespace.\nIf a material matches one of these names, it will not be modified\nor removed by the post processing step nor will other materials be replaced\nby a reference to it.";
  642. group = "RemoveRedundantMaterials";
  643. hasDefaultValue = false;
  644. hasMinValue = false;
  645. hasMaxValue = false;
  646. defaultValue = null;
  647. minValue = null;
  648. maxValue = null;
  649. return;
  650. case "IMPORT_SMD_KEYFRAME":
  651. assetAdvancedConfigType = AssetAdvancedConfigType.Integer;
  652. className = "SMDImportKeyframe";
  653. description = "Sets the vertex animation keyframe to be imported. TriLib does not support vertex animation.";
  654. group = "SMDImport";
  655. hasDefaultValue = true;
  656. hasMinValue = false;
  657. hasMaxValue = false;
  658. defaultValue = 0;
  659. minValue = null;
  660. maxValue = null;
  661. return;
  662. case "PP_SBP_REMOVE":
  663. assetAdvancedConfigType = AssetAdvancedConfigType.AiPrimitiveType;
  664. className = "SortByPrimitiveTypeRemove";
  665. description = "Input parameter to the TriLib.TriLibPostProcessSteps.SortByPrimitiveType step.\nIt specifies which primitive types are to be removed by the step.\nThis is a bitwise combination of the TriLib.AiPrimitiveType flag.\nSpecifying ALL types is illegal.";
  666. group = "SortByPrimitiveType";
  667. hasDefaultValue = false;
  668. hasMinValue = false;
  669. hasMaxValue = false;
  670. defaultValue = null;
  671. minValue = null;
  672. maxValue = null;
  673. return;
  674. case "PP_SBBC_MAX_BONES":
  675. assetAdvancedConfigType = AssetAdvancedConfigType.Integer;
  676. className = "SplitByBoneCountMaxBones";
  677. description = "Maximum bone cone per mesh for the TriLib.TriLibPostProcessSteps.SplitByBoneCount step.";
  678. group = "SplitByBoneCount";
  679. hasDefaultValue = true;
  680. hasMinValue = false;
  681. hasMaxValue = false;
  682. defaultValue = 60;
  683. minValue = null;
  684. maxValue = null;
  685. return;
  686. case "PP_SLM_TRIANGLE_LIMIT":
  687. assetAdvancedConfigType = AssetAdvancedConfigType.Integer;
  688. className = "SplitLargeMeshesTriangleLimit";
  689. description = "Sets the maximum number of triangles a mesh can contain. This is used by the\nTriLib.TriLibPostProcessSteps.SplitLargeMeshes step to determine\nwhether a mesh must be split or not.";
  690. group = "SplitLargeMeshes";
  691. hasDefaultValue = true;
  692. hasMinValue = false;
  693. hasMaxValue = false;
  694. defaultValue = 1000000;
  695. minValue = null;
  696. maxValue = null;
  697. return;
  698. case "PP_SLM_VERTEX_LIMIT":
  699. assetAdvancedConfigType = AssetAdvancedConfigType.Integer;
  700. className = "SplitLargeMeshesVertexLimit";
  701. description = "Sets the maximum number of vertices in a mesh. This is used by the\nTriLib.TriLibPostProcessSteps.SplitLargeMeshes step to determine\nwhether a mesh must be split or not.";
  702. group = "SplitLargeMeshes";
  703. hasDefaultValue = true;
  704. hasMinValue = false;
  705. hasMaxValue = false;
  706. defaultValue = 1000000;
  707. minValue = null;
  708. maxValue = null;
  709. return;
  710. case "IMPORT_TER_MAKE_UVS":
  711. assetAdvancedConfigType = AssetAdvancedConfigType.Bool;
  712. className = "TerImportMakeUVs";
  713. description = "Configures the terragen import plugin to compute UV's for terrains, if\nthey are not given. Furthermore, a default texture is assigned.\nUV coordinates for terrains are so simple to compute that you'll usually \nwant to compute them on your own, if you need them. This option is intended for model viewers which\nwant to offer an easy way to apply textures to terrains.";
  714. group = "TERImport";
  715. hasDefaultValue = true;
  716. hasMinValue = false;
  717. hasMaxValue = false;
  718. defaultValue = false;
  719. minValue = null;
  720. maxValue = null;
  721. return;
  722. case "PP_TUV_EVALUATE":
  723. assetAdvancedConfigType = AssetAdvancedConfigType.AiUVTransform;
  724. className = "TransformUVCoordsEvaluate";
  725. description = "Input parameter to the TriLib.TriLibPostProcessSteps.TransformUVCoords step.\nIt specifies which UV transformations are to be evaluated.\nThis is bitwise combination of the TriLib.AiUVTransform flag.";
  726. group = "TransformUVCoords";
  727. hasDefaultValue = false;
  728. hasMinValue = false;
  729. hasMaxValue = false;
  730. defaultValue = null;
  731. minValue = null;
  732. maxValue = null;
  733. return;
  734. case "IMPORT_UNREAL_KEYFRAME":
  735. assetAdvancedConfigType = AssetAdvancedConfigType.Integer;
  736. className = "UnrealImportKeyframe";
  737. description = "Sets the vertex animation keyframe to be imported. TriLib does not support vertex animation.";
  738. group = "UnrealImport";
  739. hasDefaultValue = true;
  740. hasMinValue = false;
  741. hasMaxValue = false;
  742. defaultValue = 0;
  743. minValue = null;
  744. maxValue = null;
  745. return;
  746. case "UNREAL_HANDLE_FLAGS":
  747. assetAdvancedConfigType = AssetAdvancedConfigType.Bool;
  748. className = "UnrealHandleFlags";
  749. description = "Configures the UNREAL 3D loader to separate faces with different surface flags (e.g. two-sided vs single-sided).";
  750. group = "UnrealImport";
  751. hasDefaultValue = true;
  752. hasMinValue = false;
  753. hasMaxValue = false;
  754. defaultValue = true;
  755. minValue = null;
  756. maxValue = null;
  757. return;
  758. case "IMPORT_COLLADA_USE_COLLADA_NAMES":
  759. assetAdvancedConfigType = AssetAdvancedConfigType.Bool;
  760. className = "ColladaImportUseColladaNames";
  761. description = "Specifies whether the Collada loader should use Collada names as node names.\n\n\nIf this property is set to true, the Collada names will be used as the\nnode name. The default is to use the id tag (resp. sid tag, if no id tag is present)\ninstead.";
  762. group = "ColladaImport";
  763. hasDefaultValue = true;
  764. hasMinValue = false;
  765. hasMaxValue = false;
  766. defaultValue = false;
  767. minValue = null;
  768. maxValue = null;
  769. return;
  770. }
  771. assetAdvancedConfigType = AssetAdvancedConfigType.None;
  772. className = string.Empty;
  773. description = string.Empty;
  774. group = string.Empty;
  775. hasDefaultValue = false;
  776. hasMinValue = false;
  777. hasMaxValue = false;
  778. defaultValue = false;
  779. minValue = null;
  780. maxValue = null;
  781. }
  782. public const int GroupCount = 35;
  783. public static readonly string[] ConfigKeys = new string[]
  784. {
  785. "IMPORT_AC_EVAL_SUBDIVISION",
  786. "IMPORT_AC_SEPARATE_BFCULL",
  787. "IMPORT_ASE_RECONSTRUCT_NORMALS",
  788. "PP_GSN_MAX_SMOOTHING_ANGLE",
  789. "PP_CT_MAX_SMOOTHING_ANGLE",
  790. "PP_CT_TEXTURE_CHANNEL_INDEX",
  791. "IMPORT_COLLADA_IGNORE_UP_DIRECTION",
  792. "PP_DB_THRESHOLD",
  793. "PP_DB_ALL_OR_NONE",
  794. "IMPORT_FBX_READ_ALL_MATERIALS",
  795. "IMPORT_FBX_OPTIMIZE_EMPTY_ANIMATION_CURVES",
  796. "IMPORT_FBX_EMBEDDED_TEXTURES_LEGACY_NAMING",
  797. "IMPORT_FBX_STRICT_MODE",
  798. "IMPORT_FBX_READ_LIGHTS",
  799. "IMPORT_FBX_READ_MATERIALS",
  800. "IMPORT_FBX_PRESERVE_PIVOTS",
  801. "IMPORT_FBX_READ_ALL_GEOMETRY_LAYERS",
  802. "IMPORT_FBX_READ_TEXTURES",
  803. "IMPORT_FBX_READ_CAMERAS",
  804. "IMPORT_FBX_READ_ANIMATIONS",
  805. "PP_FD_REMOVE",
  806. "PP_FID_ANIM_ACCURACY",
  807. "IMPORT_IFC_SKIP_SPACE_REPRESENTATIONS",
  808. "IMPORT_IFC_CYLINDRICAL_TESSELLATION",
  809. "IMPORT_IFC_SMOOTHING_ANGLE",
  810. "IMPORT_IFC_CUSTOM_TRIANGULATION",
  811. "IMPORT_NO_SKELETON_MESHES",
  812. "FAVOUR_SPEED",
  813. "IMPORT_GLOBAL_KEYFRAME",
  814. "PP_ICL_PTCACHE_SIZE",
  815. "IMPORT_IRR_ANIM_FPS",
  816. "PP_LBW_MAX_WEIGHTS",
  817. "IMPORT_LWO_ONE_LAYER_ONLY",
  818. "IMPORT_LWS_ANIM_START",
  819. "IMPORT_LWS_ANIM_END",
  820. "IMPORT_MD2_KEYFRAME",
  821. "IMPORT_MD3_SHADER_SRC",
  822. "IMPORT_MD3_KEYFRAME",
  823. "IMPORT_MD3_SKIN_NAME",
  824. "IMPORT_MD3_HANDLE_MULTIPART",
  825. "IMPORT_MD5_NO_ANIM_AUTOLOAD",
  826. "IMPORT_MDC_KEYFRAME",
  827. "IMPORT_MDL_KEYFRAME",
  828. "IMPORT_MDL_COLORMAP",
  829. "IMPORT_OGRE_MATERIAL_FILE",
  830. "IMPORT_OGRE_TEXTURETYPE_FROM_FILENAME",
  831. "PP_OG_EXCLUDE_LIST",
  832. "PP_PTV_NORMALIZE",
  833. "PP_PTV_KEEP_HIERARCHY",
  834. "PP_PTV_ROOT_TRANSFORMATION",
  835. "PP_PTV_ADD_ROOT_TRANSFORMATION",
  836. "PP_RVC_FLAGS",
  837. "PP_RRM_EXCLUDE_LIST",
  838. "IMPORT_SMD_KEYFRAME",
  839. "PP_SBP_REMOVE",
  840. "PP_SBBC_MAX_BONES",
  841. "PP_SLM_TRIANGLE_LIMIT",
  842. "PP_SLM_VERTEX_LIMIT",
  843. "IMPORT_TER_MAKE_UVS",
  844. "PP_TUV_EVALUATE",
  845. "IMPORT_UNREAL_KEYFRAME",
  846. "UNREAL_HANDLE_FLAGS",
  847. "IMPORT_COLLADA_USE_COLLADA_NAMES"
  848. };
  849. }
  850. }