Mario Veraart (rioj7++at++fel.tno.nl)
Fri, 5 Dec 1997 17:47:38 +0100 (MET)
Sorry a small typo from my side.
In the code the direction was set to (0,0,1)
>
> > I get no intersection with the database.
>
> Which is what I'd expect since the vector runs from Z=-100 to Z=-300 and
> the quadrilateral is at Z=0
>
> > I use PFTRAV_IS_CULL_FRONT in the mode specifier.
>
> > But when I model an extra triangle in the database with coordinates
> > (36,0,5) (40,0,5) (40,4,5)
> > I get an intersection hit at location (40,0,5).
>
> That's a suprise! The entire triangle is at Z=5 which is still not
> between Z=-100 and Z=-300.
>
> > Also if I put a quad at z=5 at the same location as the triangle I get
> > an intersection with this quad.
>
> Same deal.
>
> > If I try to intersect along the edge of the (ground) quads
> > it gives the right result.
> > I also tried it at location (0,0) and there I got an intersection back.
>
> > My question:
> > Is there a possibility that intersection at an xy coordinate that matches a
> > vertex coordinate is missed for some of the vertices in a quad or
> > triangle? (It does not happen along the edge of a primitive)
>
> I suppose a teeny-tiny roundoff error could result in a miss - it's not
> totally unreasonable.
If this is the case than I have to try and find a way round this
problem. That is because I have to intersect at vertex coordinates of
some primitives that are part of the database.
Mario
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:56:20 PDT