Nudibranch problems (Mac)

Raab, Andreas Andreas.Raab at disney.com
Mon May 21 21:11:28 UTC 2001


> I actually found the problem: you restricted the near/far fog range to
> 0..1 which is wrong because in OpenGL linear fog works in eye
> coordinates. So everything from distance 1 to infinity was bluish in
> nudi. I changed it to allow all distances
> 	fogRangeEnd: aNumber
> 		myCamera setFogRangeEnd: (aNumber "min: 1.0" max: 0.0)
> and indeed, linear fog works when I give 10000 as range end. 
> Odd enough,
> the fogging of the ground plane depends on the viewing direction?! It
> works fine for all other objects, as well as for exponential fog.

Hm - just found something interesting:

	glHint(GL_FOG_HINT, GL_NICEST);

According to the docs this turns on/off pixel vs. vertex fog and since most
vertex fog may not be range based it could explain the effects you're
seeing.

  - Andreas





More information about the Squeak-dev mailing list