Jump to content

  • Log In with Google      Sign In   
  • Create Account


m_a_s_gp

Member Since 05 Oct 2010
Offline Last Active Jul 25 2013 08:10 AM
-----

Posts I've Made

In Topic: DrawPrimitive() fails after device reset?

28 September 2012 - 12:04 PM

So there is no big difference between the two.. maybe I'll try the managed pool later.. thanks for clarifying.

Of course, your own target audience may be different from those surveyed, so you've got to profile your audience, know what kind of kit they've got, and base that decision on hard facts. But do base it on actual facts and not just some vague sense of locking out XP users though. ;)

That sounds a little scary!
I hope this will not be a big issue for the 2D game I am developing..

Thanks kubera, thanks mhagain.

In Topic: Pixel-based collision detection with sphere

28 September 2012 - 10:33 AM

You can get the contact point using this formula:

Pc = C - n[(C-P)dot(n)]

Pc: contact point
C: ball's center
n: the unit vector normal to the table and pointing upward
P: any point on the surface of the table

The quantity [(C-P)dot(n)] is the closest distance from the ball's center to the table. If this distance is greater than the ball's radius, there is no collision..

In Topic: I think my rigid body classes are incorrect. Error laden behaviour

28 September 2012 - 09:31 AM

I don't know if this has anything to do with your problem, but you should change this:

if(m_force[direction] < threshold) m_force[direction] = 0.0f;
if(m_torque[direction] < threshold) m_torque[direction] = 0.0f;

to:

if(abs(m_force[direction]) < threshold) m_force[direction] = 0.0f;
if(abs(m_torque[direction]) < threshold) m_torque[direction] = 0.0f;

because the components of the force can take minus values..

In Topic: DrawPrimitive() fails after device reset?

28 September 2012 - 06:54 AM

I didn't know that..
So you mean that there is totally no difference (especially in performance) between using default pool and managed pool? What about if I am publishing a game, and players may have older versions of windows?

In Topic: DrawPrimitive() fails after device reset?

28 September 2012 - 05:38 AM

I think that managed pool is suitable only if your vertex data is not frequently updated, otherwise, you should use the default pool, isn't that right?

PARTNERS