Re: [info-performer] intersection testing!

Date view Thread view Subject view Author view

From: Steven Queen (Steven.Z.Queen++at++nasa.gov)
Date: 07/06/2005 15:57:10


I believe it is synchronous when called from an APPCULLDRAW uni-process.
Also, I have had my hit detection act flacky (dropped hits) when the
draw time is
too short. Let me know what you find out.

Here's another tid-bit. I sproc'd off multiple light wieght processes
which I synchronize
with a barrier() in the intersection callback. I've achieve a 4.5x speed
up of my (large number)
of intersection tests over 6 CPUS on an Onyx350 running IRIX 6.5.27. I
am very pleased
with the result, but when I had first tried this with pthreads, the
pfNodeIsectSegs() hit
returns steps all over each other. Pthreads are not Performer friendly?

Good luck.

tansel halic wrote:

>i realize that intersection detection misses
>collisions when the movement of the object, that has
>intersection vectors,occurs too fast. when i decrease
>the speed of the movement(actually when i move the
>mouse slowly,object movement comes from the mouse) it
>works fine and it captures all collisions.although i
>try this without forked ISECT process the problem
>still exists. Do you have an idea? another question
>when the intersection process is not forked and runs
>within the application process, does it work still
>asynchronously
>
>here is the main loop of my code
>
>..
>..
>pfMultiprocess(PFMP_APP_CULL_DRAW|PFMP_FORK_ISECT);//i
>put all of them in the same process, the problem still
>persisted
>..
>..
>..
>
>while(true){
> pfSync();
> pfuGetMouse(&mouse);
> pfiUpdateXformer(xformer);
> handleevents();//handle event queries and queries
>the intersections
> pfFrame();
>
>}
>
>__________________________________________________
>Do You Yahoo!?
>Tired of spam? Yahoo! Mail has the best spam protection around
>http://mail.yahoo.com
>
>-----------------------------------------------------------------------
> List Archives, Info, FAQ: http://www.sgi.com/software/performer/
> Open Development Project: http://oss.sgi.com/projects/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>-----------------------------------------------------------------------
>
>
>
>

-- 
_______________________________________________

Steven.Z.Queen++at++nasa.gov NASA, Goddard Space Flight Center Flight Dynamics Analysis Branch, Code 595 V:(301) 286-0988 F:(301) 286-0369 _______________________________________________


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Jul 06 2005 - 15:56:57 PDT