Page 1 of 1

D3DXMatrixTranspose(), D3DXVec3Project() [help needed]

Posted: Fri Oct 11, 2013 5:19 pm
by CodeCave
I just dont get those functions to work (PB4.5) :S

Code: Select all

Import "d3dx9.lib"
  D3DXMatrixTranspose(a,b)
  D3DXVec3Transform(a,b,c)
  D3DXVec3Project(a,b,c,d,e,f)
EndImport

 
        ;D3DXMatrixTranspose()
        ;D3DXVec3TransformCoord()
        ;D3DXVec3Project()
Has anyone got those functions working ?
Are there any samples or documentations with the PB syntax ?
:D

Re: D3DXMatrixTranspose(), D3DXVec3Project() [help needed]

Posted: Fri Oct 11, 2013 7:03 pm
by applePi
googling result in this:
DirectX 9 For PB (October 2006)
http://www.purebasic.fr/english/viewtopic.php?p=152977
size: 58 MB download from purearea link
inside the file d3dx9math.pbi there is a definition for your functions
D3DXMatrixTranspose.l(*pOut.D3DXMATRIX, *pM.D3DXMATRIX)
D3DXMatrixTranspose.l(*pOut.D3DXMATRIX, *pM.D3DXMATRIX)
D3DXVec3Project.l(*pOut.D3DXVector3, *pV.D3DXVector3, *pViewport.D3DVIEWPORT9, *pProjection.D3DXMATRIX, *pView.D3DXMATRIX, *pWorld.D3DXMATRIX)
D3DXVec3ProjectArray.l(*pOut.D3DXVector3, OutStride.l, *pV.D3DXVector3, VStride.l, *pViewport.D3DVIEWPORT9, *pProjection.D3DXMATRIX, *pView.D3DXMATRIX, *pWorld.D3DXMATRIX, n.l)

i can't provide advice how to use it, you may find it usefull

Re: D3DXMatrixTranspose(), D3DXVec3Project() [help needed]

Posted: Fri Oct 11, 2013 9:09 pm
by CodeCave
thx thats great :)
ill have a look and see if i can move on finally :D

Re: D3DXMatrixTranspose(), D3DXVec3Project() [help needed]

Posted: Fri Oct 11, 2013 10:06 pm
by IdeasVacuum
Take a look at the Games Math post, plenty of Matrix functions there, probably no need to import them.
http://www.purebasic.fr/english/viewtop ... 16&t=45701
and Guimauve's work is excellent: http://www.purebasic.fr/english/viewtop ... 64#p357864

Re: D3DXMatrixTranspose(), D3DXVec3Project() [help needed]

Posted: Sat Oct 12, 2013 8:09 pm
by CodeCave
Thx that is also very helpful :)