Page 1 of 1

json and Color

Posted: Tue Feb 02, 2016 7:35 pm
by rileyrg
Total mental wipeout here. Just come back to coding my little app after a few months away. What's the way to read in a color property from "world values" from the export b2djson json in Java? (I want to set a custom ambient light property on the scene properties)

Re: json and Color

Posted: Thu Feb 04, 2016 2:38 am
by iforce2d
hmmm... it's not a mental wipeout I'm afraid. Looks like the Java source code was never updated to handle any color properties other than the colorTint of images. I'm in the middle of moving house right now, but I'll try to get it done in the next couple of weeks.
If you are in a hurry you could perhaps figure it out by looking for 'color' and 'custom' in Jb2dJson.java.