Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - bfreuden

Pages: [1]
1
Support / Changing PNG texture brightness
« on: May 31, 2014, 03:54:23 pm »
Hi,

I am writing both my first Android and first OpenGL ES application and I am happy because I have the feeling it would have been much more complex without jPCT-AE :)
I am here because I have a problem changing the brightness of a png texture.

I have successfully managed to modify the jPCT-AE HelloWorld project in order to load an obj+mtl+png combo, and to add a SeekBar that modifies the intensity of the Light object (sun) and the color of the background (back).
It works great when I don't add the texture to my object: I can see the object becoming brighter or darker (good!).
However if I add the texture to my object (object.setTexture(ti)), it is no longer affected by the brightness: its appearance does not change at all, only the background color changes.

Do you know why it is so, and how I can solve my problem?
Thanks in advance,

Bruno.

Pages: [1]