Jump to content

  • Log In with Google      Sign In   
  • Create Account

We need your feedback on a survey! Each completed response supports our community and gives you a chance to win a $25 Amazon gift card!


BFG

Member Since 18 Nov 2008
Offline Last Active Yesterday, 03:49 PM

#5199016 3d Collision Detection

Posted by BFG on 18 December 2014 - 04:26 PM

I've implemented both approaches.  I was surprised to find that the "intersection method" is far easier to get working in a robust way because it is entirely based on handling overlap.  In the other approach overlap is a failure case that you must prevent.  This becomes tricky when handling contact, i.e., zero distance intersection.

 

Preventing "pass through" with the intersection method is usually handled by updating an object using substeps of the total time step based on its velocity and bounding volume size.  This impacts performance only for small and fast objects (in which case you can probably get away with raycasting).  

 

Of course implementing your own collision/dynamics rarely makes sense these days.  I'm assuming you have a good reason for not using Bullet or some other SDK.




#5193497 Using RealWorld People in Games and law?

Posted by BFG on 18 November 2014 - 02:01 PM

http://gamasutra.com/blogs/StephenMcArthur/20141117/230361/Right_of_Publicity_in_Video_Games__How_You_Can_Legally_Include_a_Celebrity_in_Your_Game.php

 




#5191728 xaudio2 problem

Posted by BFG on 07 November 2014 - 03:19 PM

In Xaudio2 I am SubmitSourceBuffer() and start() ing multiple IXAudio2SourceVoice* at the same time, I am hearing some cracking noise and I think it is because the Masteringvoice() mixes those voices by just adding them together without normalizing the final output.

Is there any function in the API that configures how voices are mixed?

 

Yes, they are just added.  If you play two or more sounds that have a full range of amplitudes at full volume, you will run into the problems you are encountering.  It's essentially 16-bit values overflowing/underflowing.  

 

You can set volumes in Xaudio2 in many ways:  http://msdn.microsoft.com/en-us/library/windows/desktop/ee415796(v=vs.85).aspx




PARTNERS