Re: Clipping with arbitary planes

New Message Reply Date view Thread view Subject view Author view

Marcus Barnes (marcus++at++multigen.com)
Tue, 25 Mar 1997 12:29:18 -0800


On Mar 22, 7:16pm, Angus Dorbie wrote:
> On Mar 22, 1:58am, Jukka Vaisanen wrote:
> >
> > I got the attached code to work if I set the funcs to the scene, but not
> > if I set the funcs to the site_objs pfGroup. Can't I have these callbacks
> > in pfGroups? I don't want to clip the entire scene, just some objects if
> > possible.
>
> I think this *may* be due to the orientation of the clip plane through
> the model transformation matrix.
>
> Try glClipPlane before the pfDraw call in the channel draw callback,
> then use glEnable in the object draw callbacks.

Yes. Beware of pfFlatten(3) too. If you intended for the plane the be defined
in the object space of the group, it won't work if the group has been flattened
into world space.

Regards.

--
+ Marcus Barnes, Technical Staff        mailto:marcus++at++multigen.com +
+ Multigen Inc.                         http://www.multigen.com    +
+ 550 S. Winchester Blvd.               phoneto:1-408-556-2654     +
+ Suite 500 San Jose CA 95128           faxto:1-408-261-4102       +
=======================================================================
List Archives, FAQ, FTP:  http://www.sgi.com/Technology/Performer/
            Submissions:  info-performer++at++sgi.com
        Admin. requests:  info-performer-request++at++sgi.com

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:54:57 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.