(no subject)

New Message Reply Date view Thread view Subject view Author view

Sujay Kumar (sujay++at++cair.res.in)
Wed, 12 Aug 1998 17:51:09 -0500 (Etc/GMT)


Hi,

        I had posted a problem with `pfQueryHit()' earlier. The query tokens
PFQHIT_PATH and PFQHIT_NAME, both return NULL strings. I was advised to check
the validity of the information in pfHit object using PFQHIT_FLAGS and
NULL checks. I checked these and the string returned by the query 'is' NULL.
But we want it to give us the idea of the intersected node (not just
find whether it is valid or invalid). Is there any flag or mode to be set so
that the pfHit object returns a valid path/name? (We have already set the
PFTRAV_IS_PATH in pfSegSet.mode).What else could be wrong?

        I am making a walkthrough in which we have a room with 3 doors,
2 switches and walls.The doors and switches are DCS nodes and the walls
are SCS nodes. I want a door to open, and the switch to turn on/off,if
I collide with it. Now, at any instance of my "walk-through" if I
collide with a node,I want to get the name of the node which I hit, through
pfQueryHit(). I name the doors(nodes) as "door1" , "door2" etc.
If the Query token PFQHIT_NAME returns the name of the node, then I can check
for the first four characters of the node ("door"), and find what action
is to be performed on the node (in this case, rotate).
        
       Currently I am modeling in Multi-Gen ( the .flt format ) and then
am loading this through Performer.Kindly suggest me a way out. Is there any
other elegant way for collision detection check?

       Thanks in advance.

Sujay


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Wed Aug 12 1998 - 05:22:10 PDT

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