Re: [Fwd: Intersection mask]

New Message Reply Date view Thread view Subject view Author view

Joaquin Casillas Melendez (jcasilla++at++glup.irobot.uv.es)
Mon, 26 Oct 1998 10:44:16 -0800


>
> 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

Well, that is exactly what I am doing. When all objects are loaded,
first I set the root node mask:
 root->setTravMask(PFTRAV_ISECT, 0x1,
                   PFTRAV_SELF | PFTRAV_DESCEND, PF_SET);

and next:
 sw->setTravMask(PFTRAV_ISECT, 0x0,
                 PFTRAV_SELF | PFTRAV_DESCEND, PF_SET);

I haven't got this running right yet. The aircraft model is attached to
a pfSwitch node, and have also tried with PFTRAV_SW_ALL. I think the
pfSwitch is not the problem.

Moreover, I have set a 0x0 mask to the root node in order to test the
intersection mask, and the aircraft keeps on doing intersections with
the database!.

The only way I have got the aircraft avoiding collision detection with
itself is trough traversal funcs ... for now. So I will be glad of
hearing about other suggestions.

-----------------------------------------------
 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)


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Tue Oct 27 1998 - 02:35:46 PST

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