Yellow Town in Hello Collision tutorial

I did the “Hello Collision” tutorial (https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:beginner:hello_collision) and my town comes out yellow…



Imgur: The magic of the Internet



What should I look for to see why it’s this color?



Thanks,

~Jeremy

Is your version an exact copy or did you change the light colors?

Did you use ssao?

not sure what ssao is, so probably didn’t use that.



I just checked the town.zip. The one I had was 1.4MB, so I downloaded it again from the tutorial page, and that version is 639kb. Not sure what the difference is, but I get the same result. I haven’t changed any of the settings from code. All the lighting and stuff is set the exact same.

So you just cut and pasted directly from the wiki and didn’t change anything?

mmm… not exactly, no. I’m actually doing a port of all the tutorial stuff with JRuby



Waves/sample8.rb at master · jwoertink/Waves · GitHub



I have gone through all the code, and made sure that the values are the same though. The example works great, it’s just the color is off. Is there something I should look into, like something with the AmbientLight or something?



Thanks,

~Jeremy

[java]

dl = DirectionalLight.new

dl.color = ColorRGBA.new(0.75, 1.0, 0.0, 1.0)

dl.direction = Vector3f.new(2.8, -2.8, -2.8).normalize_local

[/java]



Yeah, you set the light color to greenish-yellow… so your scene will be greenish-yellow.

1 Like

WOW… O_o OMG… where the hell did I come up with those numbers?!



I feel like an idiot ~_~



thanks for the help :smiley: sorry.

@jeremywoertink said:
WOW...... O_o OMG.... where the hell did I come up with those numbers?!

I feel like an idiot ~_~

thanks for the help :D sorry.


Heheh... if it helps any, I pegged it exactly in my very first response. ;) :)

haha. yes, you did indeed. I actually wrote this almost a year ago. Had to put jMonkeyEngine on hold for a bit, but I’m just now getting back into it. I guess I must have been playing around with it, and didn’t realize it. I glanced over the tutorial code, and then mine, but didn’t really get deep into it. Pretty awesome how the light thing works though! Now if I can just figure out the weird bug (http://hub.jmonkeyengine.org/groups/graphics/forum/topic/weird-visual-bug-from-update/#post-187924) in my game, I’ll be set!

@normen What does SSAO do that can make it yellow?

@seann999 said:
@normen What does SSAO do that can make it yellow?

Its broken on mac and makes funky colors, somehow the RGB values are scrambled.

not exactly yellow but broken ssao look like this:



http://i.imgur.com/kox5O.jpg

@oxplay2 said:
not exactly yellow but broken ssao look like this:

Well we already know it was a light in the OPs scene right? ^^

about this topic, right :wink:

yeah, in this instance it was my eff up. lol, but it’s good to know about bugs like this for future reference :slight_smile: