The position of a Fog node in the scene graph does not determine which objects the fog affects, it determines the origin and direction of the fog when it is in linear mode. When a fog node is in exponential mode its position and orientation in the scene graph are irrelevant. Either way , a Fog node must be activated by calling nodePath.setFog(fogNode) on some NodePath in the scene graph. Which NodePath you call the setFog method on determines which parts of the scene will be fogged: that NodePath and all its children.
???
so it does effect the specified nodepath and its children, or it doesnt?
rdb
May 22, 2009, 2:42pm
#2
The information in the manual is correct.
In the first case it’s about where the fog is reparented to.
In the second case, it’s about where you applied the FogAttrib to (e.g. where you called setFog on).
ah that makes more sense.