Jump to content

  • Log In with Google      Sign In   
  • Create Account


stc.5421

Member Since 06 Dec 2012
Offline Last Active Dec 08 2012 12:54 PM

Posts I've Made

In Topic: Creating Bullet Holes

08 December 2012 - 12:31 PM

Sorry for delay , use this:

http://bulletphysics.org/Bullet/phpBB3/download/file.php?id=588

In Topic: Creating Bullet Holes

07 December 2012 - 10:37 AM

And what's your problem right now?
Can you get information from RayResultCallback ?

In Topic: Creating Bullet Holes

07 December 2012 - 02:23 AM

Did you do intersect to your mesh by D3DXIntersect function?

In Topic: Calculate screen co-ords from a point in 3D space

06 December 2012 - 11:47 PM

Simply transform your 3d position by view projection matrix .
md3dDevice->GetTransform(D3DTS_PROJECTION,&pm);
md3dDevice->GetTransform(D3DTS_VIEW,&vm);
D3DXMATRIX vp;
D3DXMatrixMultiply( &vp, &vm, &pm );
D3DXVECTOR4 posBase;
D3DXVec4Transform(&posBase,&D3DXVECTOR4(m_positionVal.x,m_positionVal.y,m_positionVal.z,1.0f),&vp);
posBase.x/=posBase.w; // Screen space X pos
posBase.y/=posBase.w; // Screen space Y pos
posBase.z/=posBase.w;


In Topic: Creating Bullet Holes

06 December 2012 - 12:06 PM

You don't need it , that create a quad align to the mesh face .

PARTNERS