Hello,
I am new to the forums. Just wanted to say my experience with jMP has been awesome. However, I am currently going through the jME3 Tutorial found here:
https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:beginner:hello_main_event_loop
After reading through the lesson and trying to implement the code, I keep getting the exception:
[java]java.lang.IllegalArgumentException: Material parameter is not defined: Color[/java]
and I have no idea how to correct it.
If I comment out the line:
[java]mat.setColor("Color", ColorRGBA.Blue);[/java]
it will run, albeit with no cube. Any help would be appreciated!
Thanks in advance,
halaku
It should be m_Color
I just ran through the tutorials last week and noticed the m_ was missing in a few places.
schulzjp said:
It should be m_Color
I just ran through the tutorials last week and noticed the m_ was missing in a few places.
It worked! Thank you very much.
Use the tutorials that come with jMP (F1), the tutorials in the wiki are always updated for the latest svn version. the m_ prefix is deprecated.