instead of displaying solid color in geometry, how to have color reflected with SpotLight?
now with light, the geometry will have solid color. I had seen somewhere I can have the color looks better with effect similar to highlighted color.
You will only see solid color if there is no lightning in the scene.
If you have a Light source, you need to Color your objects with a MaterialState.
In the Materialstate you can play with the ambient/emmisive/specular/diffuse/shining values to get a better looking color.
currently, the color of the geometry is using TextureState ( the texture is basically an image file )
Can I use the MaterialState too for texture image?
the texture image is dynamic and keep updating / changing every 100ms.
I use the J2DImage class from http://www.jmonkeyengine.com/jmeforum/index.php?topic=1709.0
tobycraftse said:
currently, the color of the geometry is using TextureState ( the texture is basically an image file )
Can I use the MaterialState too for texture image?
yes, you can alter the color of the texture with the MaterialState
Core-Dump, how can you do that?
I tell you, I need to make a TextureState brighter (more sensible to light) or darker (less sensible to light), but I am not finding a clear way to to so. First I thought I could apply a TextureState and then I wonder to find a way to add the effect of a MaterialState (bright or dark) to the already setted TextureSate, but I guess that this is might not be possible, and when setting the MaterialState it will remove the TextureState.
Do you have a recommandation to this?
Thanks
This is related with the topic I’ve been treating here: http://www.jmonkeyengine.com/jmeforum/index.php?topic=8031.0
Adding a MaterialState does not remove the TextureState… You can change the material settings (ambient, diffuse, specular colors), to change the way the object responds to light. So you can set the diffuse color to red for example, and the texture will have a red tint to it, if lighting is enabled.
Thanks, Momoko_Fan, I will try that