View Single Post
  #1  
Old 10-19-2009, 10:33 AM
vijaykiran vijaykiran is offline
Member
 
Join Date: Sep 2009
Posts: 13
Near and far clipping on infinite terrain

Hi,

The near and far clipping plane values in the infinite terrain plug-in overrides any clip values set at the begin of the scripts. This makes objects to get chopped off at weird view locations.

Is it possible to set the clipping values so it is applicable to the infinite terrain as well?

Here is a piece of relevant code:

Code:
myWindow = viz.MainWindow
myWindow.clip(0.01, 10000, viz.BOTH_EYE)
When printed, the near and far clip values return 0.0097 and 10200, which is acceptable.

When the following code is added:
Code:
terrain = viz.add('InfiniteTerrain.dlc',1,'456',7,6,15000,0.0005)
terrain.texture(grass)
terrain.parent(carrierGeom)
The clip values now returned are: (0.1, 100000)

Thanks,
Vijay.
Reply With Quote