Skip to main content
gamedev.net
🔒 Locked

D3DX Bug !?!?!?!?

Started by mdias Jan 26, 2003 at 6:22 PM 5 replies 1.1k views
Original Post
mdias
mdias
Hi, I''m using DX9 SDK and when I try to do this:
D3DXMATRIX    Mat_World;
... // copy the current object matrix to Mat_World

D3DXVECTOR3   Vec_Pos;
... // Fill in Vec Coordinates

D3DXVec3Transform( &Vec_Pos, &Vec_Pos, &TargetMat );
 
I get the following error message: error C2664: ''D3DXVec3Transform'' : cannot convert parameter 1 from ''struct D3DXVECTOR3 *'' to ''struct D3DXVECTOR4 *'' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast And if I use a D3DXVECTOR4 instead of a D3DXVECTOR3 I get this message: error C2664: ''D3DXVec3Transform'' : cannot convert parameter 1 from ''struct D3DXVECTOR4 *'' to ''struct D3DXVECTOR3 *'' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast Isn''t it a crazy thing? if we give a D3DXVECTOR3, it wants a D3DXVECTOR4, and if we give a D3DXVECTOR4 it wants a D3DXVECTOR3! Can anyone tell me what''s happening here? Is my MSVC++ 6.0 compiler crazy ?
KaMiKaZe
mdias
mdias
Opss, sorry it was my mistake, I was using D3DXVec3Transform instead of
D3DXVec3TransformCoord .


KaMiKaZe
Wreakon
Wreakon
Isn''t it amazing how much "bugs" there are in DirectX.

-------
Homepage: http://students.washington.edu/andrey
-------Homepage: http://www.pclx.com
JimboC
JimboC
If you suspect a bug in DirectX, you should e-mail directx@microsoft.com so they can look into the problem.

I don''t know about your specific problem. Haven''t encountered it myself, though I usually find it''s something I''m doing wrong when I come up to things like this.
mdias
mdias
quote:
Original post by JimboC
If you suspect a bug in DirectX, you should e-mail directx@microsoft.com so they can look into the problem.

I don''t know about your specific problem. Haven''t encountered it myself, though I usually find it''s something I''m doing wrong when I come up to things like this.


Yeah, just like me


KaMiKaZe
Mescalito
Mescalito
Don''t forget that even Windows is a big bug !!!
RhoneRanger
RhoneRanger
That bug makes my ass hurt!
TechleadEnilno, the Ultima 2 projectwww.dr-code.org/enilno

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.