Advertisement
Guest User

Sketchfab Import Guide

a guest
Mar 4th, 2017
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.66 KB | None | 0 0
  1. This thread is a guide on correct process for importing a StarMade model into Sketchfab, to ensure that the community can get the most out of that platform.
  2.  
  3. [SPOILER=Model Exporting]
  4. The first thing you need, obviously, is a model exported from StarMade. This process is straightforward: Enter any ship, press ‘U’ to open the Catalog, and click the “Export as 3D model” button under the heading “Blueprint Options”.
  5.  
  6. This model will be exported to the following directory for Steam installations:
  7. C:\Program Files (x86)\Steam\steamapps\common\StarMade\StarMade\modelexport
  8. Exported files include the basic textures, an OBJ file, and a related MTL library.
  9. [/SPOILER]
  10.  
  11. Once you’ve got your model exported (see above if you’re uncertain how to do so), you can then put it into Sketchfab and start setting up.
  12.  
  13. Having exported a suitable model, the instructions in the sections below cover uploading and setting up this model in Sketchfab.
  14.  
  15. [SPOILER=Basic Upload Instructions]
  16. When you go to upload your model to Sketchfab, the minimum you’ll need is the OBJ file and associated MTL library. You can select these both, or .zip them and select that; Sketchfab just needs to receive them one way or another. You can also chuck in the base textures as well, but this is optional as you can add them later.
  17.  
  18. Click through the following dialogues (ignore the warnings about missing t000, t001, and t002), add the desired title and information when prompted to, and wait for Sketchfab to process the model.
  19.  
  20. Once it’s processed you’ll end up on the page for that model, with a preview window and a number of options. Hover over the orange “Settings” button and click on “3D Settings”. This will take you to a full preview of the model, as well as various options for setting up the textures, maps, background and lighting.
  21. [/SPOILER]
  22.  
  23. Once on the 3D Settings page, you’ll note the menu on the left side. This has 6 tabs; the main ones for this work are the first 3 (Scene, Lighting, and Materials), with Annotations being optionally useful. I recommend working through setup in the order listed below. Many options are matters of taste; my recommendations are given below.
  24.  
  25. [SPOILER=Manual Setup]
  26. [LIST=1]
  27. [*]Start off by opening the Lighting tab
  28. [LIST=1]
  29. [*]Turn on Lights.
  30. [*]Click “Load Lighting Preset”.
  31. [*]Select a desirable preset: Full Moon Night works well for StarMade models.
  32. [*]Lighting can be manually altered, but this is a lot of effort for comparatively little gain. I recommend a preset.
  33. [*]Select an Environment: Milkway is pretty good for spaceships, oddly enough.
  34. [*]Set its Orientation as desired.
  35. [*]Adjust the Brightness value until you have a satisfactory tonal range: 1 tends to provide a good base shadow to show off emissive blocks.
  36. [/LIST]
  37. [*]Open the Scene tab
  38. [LIST=1]
  39. [*]Open the “Background” dropdown.
  40. [*]Adjust environment settings as desired: I find 0 blur and 0.5 brightness pretty good for the Milkyway environment.
  41. [*]Open "Post Processing Filters"
  42. [*]Turn on filters as desired. Most are not useful in this context, but Bloom is noteworthy because it adds a "glow" to emissive maps enabled later in this process.
  43. [/LIST]
  44. [*]Open the Materials tab
  45. [LIST=1]
  46. [*]Click on any texture selection dropdown and then click “Manage Textures”.
  47. [*]Click “Import Textures” and import the contents of [URL='https://www.dropbox.com/s/m57ktfkvbcyo81b/StarMade%20Sketchfab%20Textures.zip?dl=0']this folder[/URL].
  48. [LIST=1]
  49. [*]For manual setup, you only need to import the files with suffixes "_diffuse", "_emit", "_nrm", and "_spec". The others are duplicates used for automated texture application, explained at the end of this post.
  50. [*]8-bit versions have lower quality, but Sketchfab's compression makes this almost unnoticeable anyway. Their main advantage is smaller file size.
  51. [/LIST]
  52. [*]Note: all of the following steps must be repeated for each of the 3 materials in a StarMade export (mtl_0, mtl_1, and mtl_2), use the texture number appropriate for the current material (selected in the drop-down at the very top of the Materials tab).
  53. [*]Under “PBR Maps”:
  54. [LIST=1]
  55. [*]Select the Specular workflow.
  56. [*]Set the Albedo texture to “mtlX_diffuse”.
  57. [*]Set the Specular texture to “mtlX_spec”.
  58. [*]Ensure the sliders on both are set to 100.
  59. [/LIST]
  60. [*]Under “Roughness/Glossiness”:
  61. [LIST=1]
  62. [*]Select “Glossiness”.
  63. [*]Set the texture to “mtlX_spec”.
  64. [*]Ensure the slider is set to 100.
  65. [/LIST]
  66. [*]Under “Normal/Bump Map”:
  67. [LIST=1]
  68. [*]Set the texture to “mtlX_nrm”.
  69. [*]Ensure the slider is set to 100.
  70. [*]Ensure that “Flip green (-Y)” is unchecked.
  71. [/LIST]
  72. [*]Under “Transparency”:
  73. [LIST=1]
  74. [*]Set the texture to “mtlX_diffuse”.
  75. [*]Ensure the slider is set to 0.
  76. [*]Ensure that “Invert” is unchecked.
  77. [*]Ensure that the mode is set to “Blending*” (Dithered is the only other mode which will work, but this looks very grainy and the shadows it does cast tend to be low quality).
  78. [/LIST]
  79. [*]Under “Emission”:
  80. [LIST=1]
  81. [*]Set the texture to “mtlX_emit”.
  82. [*]Set the slider as desired: I recommend about 30.
  83. [LIST=1]
  84. [*]If Bloom is on, an even lower value may be desirable to prevent the colours "blowing out" due to the brightness of the light. 20 or less works well in this case.
  85. [/LIST]
  86. [/LIST]
  87. [*]Under “Faces Rendering”:
  88. [LIST=1]
  89. [*]By default, this is set to “Double sided” which works well in most cases. Setting this to “Single sided” will resolve the Z-fighting seen on “cross-section” blocks like paint, light rods, and plants.
  90. [*]However, it will also make transparent blocks like grills and mesh less appealing, since it does not render the back faces of these blocks.
  91. [/LIST]
  92. [/LIST]
  93. [/LIST]
  94. [/SPOILER]
  95.  
  96. [SPOILER=Handling LOD Models]
  97. The game's current 4 LOD models each generate an individual material for themselves when exported from StarMade. These models, and their associated materials, are listed below:
  98. [LIST]
  99. [*]Mushroom: mtl_-1
  100. [*]Console: mtl_-2
  101. [*]Pipe: mtl_-3
  102. [*]White Light Bar: mtl_-4
  103. [/LIST]
  104. All of these models have diffuse textures, the light bar and console have emissive textures, and the console has a normal bump map. These textures are packaged in [URL='https://www.dropbox.com/s/rzx1cyolseo0irf/Starmade%20LOD%20Model%20Textures.zip?dl=0']this Dropbox[/URL]. The emissive map for the Console is 256x by default, and must be applied to a 512x texture; my placement may be slightly inaccurate, but it appears satisfactory.
  105.  
  106. When bringing these into Sketchfab, I recommend setting the light bar's emissive to 100 and turning on bloom, and setting the console's emissive to the same value you are using for the rest of your emissive maps, so that all of the computers have the same glow.
  107.  
  108. These files are all named in such a way that they are compatible with the automated texture application explained below.
  109. [/SPOILER]
  110.  
  111. This is a complete outline of how to fully utilize the different maps available in StarMade (as far as I am aware: if I have missed anything, I welcome further input and will update the thread accordingly).
  112.  
  113. I may add further relevant information, such as cleaning up models to decrease file size (I am only familiar with 3DS Max, and will welcome input from users who are experienced with the same processes in free software like Blender).
  114.  
  115. I have also done testing of automating a lot of the Sketchfab upload process. The basic process is straightforward: Sketchfab reads texture names and applies them to the correct material and map slot based on [URL='https://help.sketchfab.com/hc/en-us/articles/202600873-Materials-and-Textures#textures-auto-pbr']this naming syntax[/URL]. Thankfully, this syntax can properly read texture names that refer to the game's default materials for export (mtl_0, mtl_1, and mtl_2).
  116.  
  117. To upload a file with automatically-applied textures, zip all of the textures in the [URL='https://www.dropbox.com/s/m57ktfkvbcyo81b/StarMade%20Sketchfab%20Textures.zip?dl=0']aforementioned folder[/URL] (use all of the textures in the main directory, and either standard or 8-bit texture sets for diffuse/opacity) alongside the .obj and .mtl file from the desired export. Bear in mind Sketchfab's free upload limit of 50MB. If your model has LOD models (console, light bar, pipe, or mushroom) read over the spoiler about LOD models, and add the relevant textures [URL='https://www.dropbox.com/s/rzx1cyolseo0irf/Starmade%20LOD%20Model%20Textures.zip?dl=0']from here[/URL] to your upload .zip.
  118.  
  119. This upload will have all the necessary maps in place once Sketchfab has processed it; your work will be limited to environment and scene setup, fixing the normals (ensuring they are not inverted), and setting emissive and glossiness values as desired.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement