Re: Intersection mask

New Message Reply Date view Thread view Subject view Author view

VSM 13 (vsm13++at++hol.fr)
Mon, 26 Oct 1998 15:57:17 +0100


be careful, when you attach your aircraft to a node or a scene which have a
intersection mask, your aircraft inherit this mask. So you have to load the
scene, load your aircraft, attach the aircraft to the scene, define your
scene mask and define your aircraft mask at last.

Yoel HALLAKOUN
-----Message d'origine-----
De : Joaquin Casillas Melendez <jcasilla++at++glup.irobot.uv.es>
À : Performer Mailing List <info-performer++at++sgi.com>
Date : vendredi 23 octobre 1998 13:05
Objet : Intersection mask

>Hello all.
>
>I am doing collision detection of an aircraft with the scene, and of
>course don't want the isects intersecting with the aircraft model, so I
>changed the aircraft node mask to 0:
>
> aircraft->setTravMask(PFTRAV_ISECT, 0x0, PFTRAV_SELF, PF_SET);
>
>The problem is that this is not working and the aircraft is detecting
>collisions with itself.
>
>I have solved the problem by adding a node callback to the aircraft:
> aircraft->setTravFuncs(PFTRAV_ISECT, preIsect, NULL) and the preIsect
>function returning PFTRAV_PRUNE.
>
>I think the right way to do this is the former one, so I would
>appreciate any comments about solving the problem by setting the
>aircraft mask correctly.
>
>Thanks.
>
>
>
>-----------------------------------------------
> Joaquin Casillas Melendez mailto:jcasilla++at++glup.irobot.uv.es
> LISITT (ARTEC) Phone: +34 6 364 2253
> Dept. Electr. & Informatics Addr: Poligono de la Coma s/n
> University of Valencia Valencia (SPAIN)
>=======================================================================
>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 Oct 26 1998 - 06:00:11 PST

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