WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 02-03-2010, 12:00 PM
envisC envisC is offline
Member
 
Join Date: Apr 2009
Posts: 9
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.
Reply With Quote
  #2  
Old 02-03-2010, 12:47 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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)
Reply With Quote
  #3  
Old 02-09-2010, 12:31 PM
envisC envisC is offline
Member
 
Join Date: Apr 2009
Posts: 9
This is great! Thank you! Did I just miss this in the documentation?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
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


All times are GMT -7. The time now is 11:15 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC