Re: [osg-users] Backface culling for a group containing a plane of linestrips

2007-10-27 Thread Chris Denham
Just reposting with correct subject thread. ;-) On 26/10/2007, Chris Denham [EMAIL PROTECTED] wrote: Hi Michele, Thanks for this. You're probably right, I was floundering about a bit in that snippet of code I sent. Robert's suggestion contained a much neater solution - using the sign of the

Re: [osg-users] Backface culling for a group containing a plane of linestrips

2007-10-26 Thread Chris Denham
Hi Robert, A first class top tip! osg::ClusterCullingCallback does exactly what I was trying to do. Thanks very much. Chris. Date: Thu, 25 Oct 2007 19:20:15 +0100 From: Robert Osfield [EMAIL PROTECTED] Subject: Re: [osg-users] Backface culling for a group containing a plane of

Re: [osg-users] Backface culling for a group containing a plane of linestrips.

2007-10-26 Thread Michele Bosi
Hi Chris, I did something similar once, I am not totally sure but I think that the vector should be multiplied before the matrix and that you need to multiply only the direction component without the position. Once you have the direction transformed in camera space to see if it faces the camera