This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Exact multi-precision arithmetic


Exact multi-precision arithmetic

Postby hm » Jan 14, 2005 @ 9:46am

I am currently working on some collision detection code, and numerical precision seems to be one of the major challenges. Given that pretty much all intersection and interpenetration tests can be reduced to sign of determinant comparisons, I was wondering if anyone in this forum has already implemented a suitable set of primitives, i.e. a set of functions that calculate the exact sign (no over/underflow etc.) of 2x2, 3x3 and 4x4 determinants of 15.16 fixed point input coordinates.

- HM
User avatar
hm
pm Member
 
Posts: 201
Joined: Dec 28, 2003 @ 8:47pm
Location: Seattle, WA


Postby Structure » Jan 14, 2005 @ 1:44pm

User avatar
Structure
pm Member
 
Posts: 147
Joined: Sep 17, 2004 @ 8:28pm
Location: UK


Postby Dan East » Jan 14, 2005 @ 2:46pm

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby Tala » Jan 14, 2005 @ 4:08pm

Tala
pm Member
 
Posts: 125
Joined: Feb 6, 2004 @ 4:32pm


Postby hm » Jan 14, 2005 @ 5:46pm

Last edited by hm on Jan 14, 2005 @ 6:01pm, edited 1 time in total.
User avatar
hm
pm Member
 
Posts: 201
Joined: Dec 28, 2003 @ 8:47pm
Location: Seattle, WA


Postby hm » Jan 14, 2005 @ 5:51pm

User avatar
hm
pm Member
 
Posts: 201
Joined: Dec 28, 2003 @ 8:47pm
Location: Seattle, WA


Postby Dan East » Jan 14, 2005 @ 8:28pm

I used the determinant method at first to see if a point was inside a poly. I don't remember any precision related problems at all with that technique - it seemed to work perfectly for line-poly collision detection.

I ended up using (precalculated) edge planes perpendicular to the poly normal. That works much better for volumetric collision.

Dan East
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum