D3DXMatrixTranspose(), D3DXVec3Project() [help needed]

Everything related to 3D programming
CodeCave
User
User
Posts: 16
Joined: Wed Jun 19, 2013 10:50 pm

D3DXMatrixTranspose(), D3DXVec3Project() [help needed]

Post 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
applePi
Addict
Addict
Posts: 1404
Joined: Sun Jun 25, 2006 7:28 pm

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

Post 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
CodeCave
User
User
Posts: 16
Joined: Wed Jun 19, 2013 10:50 pm

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

Post by CodeCave »

thx thats great :)
ill have a look and see if i can move on finally :D
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

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

Post 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
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
CodeCave
User
User
Posts: 16
Joined: Wed Jun 19, 2013 10:50 pm

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

Post by CodeCave »

Thx that is also very helpful :)
Post Reply