Hi!
I can't figure out why DrawTransform does not work for me.
While ID3DXLine:raw draws the line as expected, I just can't manage this with DrawTransform.
Here's the code:
Thank you in advance!Code:D3DXMATRIX matView; D3DXVECTOR3 vFromPt = D3DXVECTOR3( 0.0f, 0.0f, -5.0f ); D3DXVECTOR3 vLookatPt = D3DXVECTOR3( 0.0f, 0.0f, 0.0f ); D3DXVECTOR3 vUpVec = D3DXVECTOR3( 0.0f, 1.0f, 0.0f ); D3DXMatrixLookAtLH( &matView, &vFromPt, &vLookatPt, &vUpVec ); m_pd3dDevice->SetTransform( D3DTS_WORLD, &matView ); ppLine->Begin(); if ( ppLine->DrawTransform( myCoordVectPtr, myVertexCount, &matView, D3DCOLOR_RGBA( 0, 0, 0, 255 ) ) != D3D_OK ) { cout << "DrawTransform failed!" << endl; } //ppLine->Draw( myCoordVectPtr, myVertexCount, D3DCOLOR_RGBA( 0, 0, 0, 150 ) ); ppLine->End();



LinkBack URL
About LinkBacks
raw draws the line as expected, I just can't manage this with DrawTransform.



