Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


Use mask provided by engine to influence graph?

Community Beginner ,
Jul 14, 2021 Jul 14, 2021

Copy link to clipboard

Copied

I'm trying to make a kind of lava animation in Substance designer. The animation is pretty much lookign the way I want it, but I've had this idea. What if I make a lava lake and the edge of the lava lake where it touches the walls is brigher/darker?

In Substance I can easily make a mask and use that to influence the material in just the right way I want it. But let's say I want to make two lakes. Of different sizes and shapes. If I don't want to create a new material for every instance of me using lava, I need to get the mask information from the engine. And getting a mask would be no problem.

But is there a way to use a mask from Unity and incorporate it into the graph? On a per item basis?
Or would that be something I'd have to construct from scratch with shaders?

 

 

Thank you!

TOPICS
Substance Graph

Views

32

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Jul 15, 2021 Jul 15, 2021
Hello, You can use the scripting API included in the Substance for Unity plugin to pass textures to graph inputs. If you need the mask texture to dynamically adapt to the geometry of the scene, then you need to set up a shader which would detect geometry intersections and write data to a Render Texture (or Render Target) accordingly. Best regards.

Likes

Translate

Translate
Adobe Employee ,
Jul 15, 2021 Jul 15, 2021

Copy link to clipboard

Copied

Hello,

 

You can use the scripting API included in the Substance for Unity plugin to pass textures to graph inputs.

 

If you need the mask texture to dynamically adapt to the geometry of the scene, then you need to set up a shader which would detect geometry intersections and write data to a Render Texture (or Render Target) accordingly.

 

Best regards.

 

Luca Giarrizzo
QA Analyst
Substance 3D Designer

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 18, 2021 Jul 18, 2021

Copy link to clipboard

Copied

Thank you very much for the reply!

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jul 18, 2021 Jul 18, 2021

Copy link to clipboard

Copied

LATEST

Happy to help @Chaonic!

Luca Giarrizzo
QA Analyst
Substance 3D Designer

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines