No one?
the main issue is that the following is not working:
public Material getNewMaterial(JavaSrcTree.DNAProperties p) {
Material m = new Material(assetManager,
"Common/MatDefs/Misc/SolidColor.j3md");
m.setColor("newColor", new ColorRGBA(p.getRed(), p.getGreen(), p
.getBlue(), 1));
return m;
}
kreedman said:
No one?
the main issue is that the following is not working:
public Material getNewMaterial(JavaSrcTree.DNAProperties p) {
Material m = new Material(assetManager,
"Common/MatDefs/Misc/SolidColor.j3md");
m.setColor("newColor", new ColorRGBA(p.getRed(), p.getGreen(), p
.getBlue(), 1));
return m;
}
It should be
m.setColor("m_Color", new ColorRGBA(p.getRed(), p.getGreen(), p.getBlue(), 1));
ie.
"m_Color"
instead of
"newColor"
Hope that helps :)
YOU HAVE JUST SAVED MY LIFE!!!
Thanks.