Forums > Jitter

how to define a plane equation inside jit.gen ??

June 16, 2012 | 4:26 pm

Hi there,
still working on my view-frustum culling implementation in jit.gen.

I have calculated the 8 points defining the part of space that I want to "compute"

How can I setup my 6 planes now ?

It means, how to translate the following code into my codebox/GenExpr stuff ?

// compute the six planes
// the function set3Points assumes that the points
// are given in counter clockwise order
pl[TOP].set3Points(ntr,ntl,ftl);
pl[BOTTOM].set3Points(nbl,nbr,fbr);
pl[LEFT].set3Points(ntl,nbl,fbl);
pl[RIGHT].set3Points(nbr,ntr,fbr);
pl[NEARP].set3Points(ntl,ntr,nbr);
pl[FARP].set3Points(ftr,ftl,fbl);

any help in that warm weekend would be very appreciate =)

[attachment=196780,4049]

Attachments:
  1. planeEquations.PNG

Viewing 1 post (of 1 total)