![]() |
|
#1
|
|||
|
|||
We explored these options, but they don't provide the functionality that we need. What we really want is something similar to glClipPlane or osg::ClipNode, not just near and far clip planes for the camera.
|
#2
|
|||
|
|||
Here is a sample script that shows how to apply a custom clip plane on a model (Note: the clip plane values are specified in global coordinates):
Code:
import viz import vizact import vizmat viz.go() model = viz.add('gallery.ive',pos=(0,0,10)) model.clipPlane([1,0,0,-3]) slider = viz.addSlider(pos=(0.5,0.1,0)) def SetClip(p): model.clipPlane([1,0,0,vizmat.Interpolate(-3,3,p)]) vizact.onslider(slider,SetClip) |
#3
|
|||
|
|||
This is great! Thank you! Did I just miss this in the documentation?
|
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Near and far clipping on infinite terrain | vijaykiran | Vizard | 2 | 01-21-2011 04:59 AM |
Does the automatic clipping plane calculation work? | Joran | Vizard | 4 | 07-10-2009 10:35 AM |
Plane faces main View | jaylocco | Vizard | 2 | 07-05-2009 08:21 PM |
I need help with the Far Clip Plane... | k_iwan | Vizard | 3 | 03-13-2007 04:54 AM |
Panning Textures across a plane. | shivanangel | Vizard | 3 | 04-07-2006 08:45 AM |