Expose GameDevMapsBaker "Bake" button to game engines

   3047   4   1
User Avatar
Member
36 posts
Joined: Oct. 2018
Offline
Hey!

I use the GameDev Maps Baker in an HDA to generate normal maps for a cloth simulation.
The HDA is used in Unreal Engine to generate sheets covering various objects.

So…now I'd like to bake a normal map for the sheet to use in a material.

The normal maps need to baked once the sheet is finished simulating in UE4. Therefore I tried to expose the “Bake” button
from the Maps Baker, but I get the error "the selected subnet has references to nodes outside the subnet…etc".

Screenshot attached.


Is there a way to make this work (maybe through a fix?)

Since we're already generating assets inside the game engine it would be supercool to generate the maps from there as well!

Best regards,
Ron

Attachments:
Unbenannt.PNG (26.5 KB)

User Avatar
Member
197 posts
Joined: July 2015
Offline
Hi,

You probably need to mark the node Editable in your own HDA.
You can do that in the “Node” tab of your HDA. Please note however that this can bring some issues with it, but since you're not modifying the MapsBaker it should be fine for your purpose




Paul

Attachments:
Editable Nodes.png (35.6 KB)

Paul Ambrosiussen
Technical Artist, Freelance
twitter.com/ambrosiussen_p
User Avatar
Member
36 posts
Joined: Oct. 2018
Offline
Hi Paul!

Thanks for the fast reply!
I'll give it a shot!
User Avatar
Member
36 posts
Joined: Oct. 2018
Offline
Hey Paul!

I tried to add the MapsBaker to the editable nodes but this doesn't seem to work.
Unreal throws an error when re-importing my HDA (finished cooking with errors).

I also tried to add only the “switch1” node to editable, since that was the node that game the error in the first place. Still no luck. Same error.

Is there something i'm missing?

Thanks,
Ron
User Avatar
Member
197 posts
Joined: July 2015
Offline
Hi Ron,

Take a look at this tutorial. Simon covers how to do it for Unity, but Unreal should work with the same steps
https://www.sidefx.com/tutorials/sci-fi-crate-generator/ [www.sidefx.com]

(Part 3 covers baking)
Paul Ambrosiussen
Technical Artist, Freelance
twitter.com/ambrosiussen_p
  • Quick Links