Author Topic: Contrast due to scaling  (Read 3365 times)

Offline ErDetEnAnd?

  • int
  • **
  • Posts: 87
    • View Profile
Contrast due to scaling
« on: March 05, 2008, 09:58:45 am »
Hello all!

First of all I'd like to appreciate the work that have made so intuitive 3D handling feasible in Java.

About my question:
Once an object is created in the world, a solid gray texture has been assigned to it and lights have been set up, the object shows to the camera like one could expect. I'm scaling the object to make a zoom effect when using the mouse. What I find strange is that the object appears brighter the closer the camera get (almost white), and darker as the distance grows (almost black).

I've tried to move the lights far away but no improvement.

Could someone explain what is happening, and how to avoid it?

Regards

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Contrast due to scaling
« Reply #1 on: March 05, 2008, 10:34:11 am »
Maybe fogging is enabled?

Offline JavaMan

  • long
  • ***
  • Posts: 231
    • View Profile
Re: Contrast due to scaling
« Reply #2 on: March 05, 2008, 03:46:40 pm »
Maybe you have two lights in the world, and one is behind the camera? Or your light is super bright, and you need to move it very far away to see any change in brightness?


Offline ErDetEnAnd?

  • int
  • **
  • Posts: 87
    • View Profile
Re: Contrast due to scaling
« Reply #3 on: March 09, 2008, 10:48:43 am »
No fogging is enabled.

It seems to be the brightness of lights, and they are very very hard to control to give a good light so shapes looks realistic instead of a single color.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Contrast due to scaling
« Reply #4 on: March 09, 2008, 10:58:20 am »
Do you have a test case or a screen shot? I'm not sure if we are taking about the same thing here... ???