Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - dgoyette

Pages: 1 2 [3]
Substance Integrations - Unity - SBSAR build size
 on: July 27, 2018, 09:26:57 pm 
Is there anything that can be done within Unity to reduce the build size of SBSAR files? I've started using crunch compression for my textures, which leaves pretty much all my SBSARs as the big contributors to build size. None of the settings I tried changing in the Unity Inspector for the SBSAR had any impact on the build size.

If there isn't a way to dramatically reduce these sizes, I'll most likely abandon using SBSARs within Unity itself, and just export textures from substance designer.

Here's an example from my build log. Thanks:

Code: [Select]
Used Assets and files from the Resources folder, sorted by uncompressed size:
 85.3 mb 5.5% Assets/Materials/Substance/Gravia/Decals/Dirt/BasicDirtGenerator.sbsar
 42.7 mb 2.7% Assets/Materials/Substance/Gravia/Areas/EnergyResearch/EnergyResearchStripedWall.sbsar
 26.7 mb 1.7% Assets/Materials/Substance/Gravia/Decals/PreRiftFizzleMark/PreRiftFizzleMark.sbsar
 26.7 mb 1.7% Assets/Materials/Substance/Gravia/Decals/Explosions/ExplosionDirt/ExplosionDirt01.sbsar
 26.7 mb 1.7% Assets/Materials/Substance/3rdParty/concrete_011.sbsar
 21.3 mb 1.4% Assets/Materials/Substance/3rdParty/metal_grill_triangle_scales.sbsar
 21.3 mb 1.4% Assets/Materials/Substance/Gravia/Areas/P&L/Warehouse/PLWarehouseWallTransition.sbsar
 21.3 mb 1.4% Assets/Materials/Substance/3rdParty/paint_matte.sbsar
 21.3 mb 1.4% Assets/Materials/Substance/Gravia/Areas/P&L/Warehouse/PLWarehouseUpperWall.sbsar
 21.3 mb 1.4% Assets/Materials/Substance/Gravia/Areas/P&L/Warehouse/PLWarehouseLowerWall.sbsar
 21.3 mb 1.4% Assets/Materials/Substance/3rdParty/rusted_painted_metal.sbsar
 21.3 mb 1.4% Assets/Materials/Substance/3rdParty/paint_satin.sbsar
 21.3 mb 1.4% Assets/Materials/Substance/3rdParty/paint_glossy.sbsar
 21.3 mb 1.4% Assets/Materials/Substance/3rdParty/concrete_scratch.sbsar

In my project I have a few Substances that I've set to Cutout or Transparent. I just cloned by repo to a new directory to test some stuff out, and I found that the Rendering Mode on the materials was reset back to Opaque for all Substances.

I'm setting the Rendering Mode directly on the generated material, since there doesn't seem to be an option to set it anywhere else.

With the new plugin in 2018.1, I don't see any way to rename a graph/material. With the sbsar selected, I can add additional graphs, but they're suffixed with "_1", etc, and I can't change the name. I don't see any other way to rename a material.



Short version: The process to upgrade my 2017.4 project to Unity 2018.1 is generating almost entirely empty ".transfer" files for my substances.

I'm trying to upgrade my project from Unity 2017.4 to Unity 2018.1, and I'm following the process described here:

I'm performing the steps within the Unity 2017.4 project, which I will be later opening in Unity 2018. After the upgrade completes, I see that it has created one ".transfer" file for each of my SBSAR files. However, of the 50+ SBSAR files I have, all but one of those ".transfer" files is completely empty. The files have no content. There is a single ".transfer" file that has some content, but the XML in the file is incomplete. The file is 86 lines long, and it ends in the following:


Note that the closing <Texture> tag is cut off in the file.

It's difficult to pin down whether any meaningful errors are occurring during this process, because my console log is full of thousands of cases of the following (which started after installing the Substance Updater package):

FileNotFoundException: Could not load file or assembly 'Substance.Game, Version=, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at C:/buildslave/unity/build/Editor/Mono/EditorApplication.cs:127)

However, I do see these two errors as well:

Assertion failed: Assertion failed on expression: 'exception != SCRIPTING_NULL'
Couldn't extract exception string from exception (another exception of class 'ArgumentException' was thrown while processing the stack trace)

Those are appearing often.

So, is there some known reason why the ".transfer" files would be empty? Or why one of them wasn't empty, but was incomplete?

Possibly related, the moment I confirm that I want to do the update, I immediately see the dialog that states "All substances have been updated successfully." However, at that point nothing is done, and Unity will churn for a minute or two before the files are generated.

If I use polygon fill, and I drag a lasoo/box selection with it, it selects faces behind the visible faces. For example, if I try to select a few faces on one side of a cylinder, it will select any faces on the other side that are behind the faces I'm selecting. This makes the lasoo selection hard to use. Is there a mode where the selection will only include visible faces, and not everything in behind the selection?



Please look into your forum software. I just typed up a detailed reply to a post, which took a while as I was jumping back to SP to verify results. By the time I hit Submit, I had apparently timed out, redirecting me to the login screen again, and clearing my reply. It's like the ancient days of the web where you feel you need to ctrl-C before hitting submit in case the software does something that wipes your response. Please look into this.

I was hoping someone might be able to post a screenshot of what they're using for export settings to Unity PBR Metallic workflow. I've played around with this for a while, and the results in Unity just don't look right. Specifically, it feels like the roughness in inverted (what's shiny in SP is dull in Unity, and vice versa). I've included a screenshot of my export settings, and I was hoping someone might be able to post a screenshot of their export settings so I know what's wrong with mine.

I'm using Unity's standard metallic shader.

(Note: If I use Roughness for Roughness, my model is basically entirely black in Unity, which is why I'm using Glossiness, which looks more correct.)



I started using Substance Painter this week, and I have a couple of usability questions.

I'm finding it difficult to be precise. I was painting a model with a large circular surface. I wanted to paint some concentric circles onto this surface. However, there doesn't appear to be any coordinates or snapping when using a brush, which means I can't be sure I'm starting from the spot each time.

Next I tried using stencils as a way to simplify this. However, there's also no locking or snjapping with stencils (I need to position the stencil perfectly manually), and more frustrating, if I move the stencil or the model, or zoom, or pan, I have to go back and manually do it over again. This positioning also gets reset if I close and reopen the project. Is there any locking or snapping I'm not aware of?



Pages: 1 2 [3]