sdk icon indicating copy to clipboard operation
sdk copied to clipboard

Auto-Generating material files not working with BasicGradleGame

Open yaRnMcDonuts opened this issue 3 years ago • 2 comments

I cannot create an auto-generated material file while using the SDK's scene composer in a BasicGradleGame based project.

Whenever I press the drop down to choose a material for a selected model, I choose the "create j3m file" option, but the material file that is created in the "generated" folder is empty.

yaRnMcDonuts avatar Feb 24 '22 20:02 yaRnMcDonuts

It seems it's having trouble finding the MatDefs from core. That drop down menu is also empty. But if I drop a matdef into the MatDef folder of the project, I can select it.

neph1 avatar Mar 17 '22 20:03 neph1

Yes I notice that as well. The drop down menu contains all my own shaders located in my projects assets folder, but none of the MatDefs from dependencies such as JME core or Terrain.

I am also noticing that the material editor begins to work again with my GradleTemplate based project when I open up a material using a MatDef from my assets folder, so I believe if this issue is resolved then it will also resolve the other issue with Gradle projects in the SDK where the visual Material Editor doesn't work for the stock Lighting.j3md and PBRLighting.3md MatDefs

yaRnMcDonuts avatar Mar 26 '22 08:03 yaRnMcDonuts