Materials are broken when loaded from a pak file
I've managed to set up a relatively basic custom map system using Steam Workshop and pak files. I have a template project with a custom plugin capable of cooking, packaging, and uploading the pak to steam, and then my game basically just trolls
This is (mostly) working. I am able to load the map up in my game and all the geometry is there. The issue is that this scene:
ends up looking like this when actually loaded into the game:
I know that the 'grass' material is found by the engine because it no longer defaults to the grey grid texture. The lens flare (?) only appeared after I turned on the forward renderer in my template project (my game uses the forward renderer). Neither the lens flare or the black material are present in the template project. I have both a skylight and a lightmass importance volume in this map.
I've now removed the skylight/importance volume and replaced the green texture with the blue texture which had appeared to work.
What's really interesting is that this happens seemingly randomly. If I keep loading up the map through the console, it will sometimes make the drop pod purple like in the video, sometimes it will be black like the landscape, and sometimes it will be all weirdly lit like in the picture. The landscape material NEVER works, regardless of what it is.
This is the code I'm using to load my paks:
Any ideas what's going on here? I'm pretty stumped.
Okay i fixed this on my own. The issue was that rendering settings in the template project were not the same as in the actual game, so the cooked materials were loading wrong
answered Jul 07 '17 at 06:03 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here