Click here to Skip to main content
15,881,588 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWhy this error happens? How to resolve this ? (Repost : Modified, now the error is different) Pin
kapardhi17-Apr-09 2:55
kapardhi17-Apr-09 2:55 
AnswerRe: Why this error happens? How to resolve this ? (Repost : Modified, now the error is different) Pin
Stuart Dootson17-Apr-09 3:12
professionalStuart Dootson17-Apr-09 3:12 
QuestionRegistry access problem Pin
Mogaambo17-Apr-09 2:08
Mogaambo17-Apr-09 2:08 
AnswerRe: Registry access problem Pin
Jijo.Raj17-Apr-09 2:14
Jijo.Raj17-Apr-09 2:14 
GeneralRe: Registry access problem Pin
Mogaambo17-Apr-09 2:19
Mogaambo17-Apr-09 2:19 
GeneralRe: Registry access problem Pin
Mogaambo17-Apr-09 2:27
Mogaambo17-Apr-09 2:27 
GeneralRe: Registry access problem Pin
Cedric Moonen17-Apr-09 2:31
Cedric Moonen17-Apr-09 2:31 
Question[DirectX9.0]How to retrive vector from Camera setting's View Matrix Pin
kallol kumar17-Apr-09 2:04
kallol kumar17-Apr-09 2:04 
I have set view matrix like this:

D3DXVECTOR3 vEyePt( 0.0f, 2.0f, -3.0f );
D3DXVECTOR3 vLookatPt( 0.0f, 0.9f, 0.0f );
D3DXVECTOR3 vUpVec( 0.0f, 1.0f, 0.0f );
D3DXMATRIXA16 matView;
D3DXMatrixLookAtLH( &matView, &vEyePt, &vLookatPt, &vUpVec );
g_pd3dDevice->SetTransform( D3DTS_VIEW, &matView );


I want to retrive the eye, lookat and up vector for a purpose to change the vector.I get the eye point like this way:

D3DXMATRIXA16 m;
g_pd3dDevice->GetTransform(D3DTS_VIEW, &m);

D3DXMATRIX invm;
D3DXMatrixInverse(&invm,NULL,&m);

D3DXVECTOR3 v;
D3DXVECTOR3 cameraLoc;
v.x = 0;
v.y = 0;
v.z = 0;
D3DXVec3TransformCoord(&cameraLoc,&v,&invm);


D3DXVec3TransformCoord API get the eye vector = (0.0f, 2.0f, -3.0f ).Does anybody knows how the get the other lookat and up vector?


Thanks in advance....


Kallol
QuestionA question about Assert function Pin
Obsidianhom17-Apr-09 1:10
Obsidianhom17-Apr-09 1:10 
AnswerRe: A question about Assert function Pin
Cedric Moonen17-Apr-09 1:14
Cedric Moonen17-Apr-09 1:14 
GeneralRe: A question about Assert function Pin
China_Kevin17-Apr-09 2:58
China_Kevin17-Apr-09 2:58 
GeneralRe: A question about Assert function Pin
Cedric Moonen17-Apr-09 3:00
Cedric Moonen17-Apr-09 3:00 
GeneralRe: A question about Assert function Pin
China_Kevin17-Apr-09 3:26
China_Kevin17-Apr-09 3:26 
GeneralRe: A question about Assert function Pin
China_Kevin17-Apr-09 3:33
China_Kevin17-Apr-09 3:33 
JokeRe: A question about Assert function Pin
Rajesh R Subramanian17-Apr-09 3:36
professionalRajesh R Subramanian17-Apr-09 3:36 
GeneralRe: A question about Assert function Pin
China_Kevin17-Apr-09 3:44
China_Kevin17-Apr-09 3:44 
JokeRe: A question about Assert function Pin
David Crow17-Apr-09 5:00
David Crow17-Apr-09 5:00 
JokeRe: A question about Assert function Pin
China_Kevin17-Apr-09 15:00
China_Kevin17-Apr-09 15:00 
GeneralRe: A question about Assert function Pin
dandanfeng16017-Apr-09 15:56
dandanfeng16017-Apr-09 15:56 
GeneralRe: A question about Assert function Pin
Obsidianhom17-Apr-09 3:54
Obsidianhom17-Apr-09 3:54 
GeneralRe: A question about Assert function Pin
China_Kevin17-Apr-09 4:14
China_Kevin17-Apr-09 4:14 
AnswerRe: A question about Assert function [modified] Pin
Luc Pattyn17-Apr-09 1:53
sitebuilderLuc Pattyn17-Apr-09 1:53 
JokePlease Pin
CPallini17-Apr-09 2:02
mveCPallini17-Apr-09 2:02 
GeneralRe: Please Pin
Luc Pattyn17-Apr-09 2:05
sitebuilderLuc Pattyn17-Apr-09 2:05 
JokeRe: Please Pin
CPallini17-Apr-09 2:15
mveCPallini17-Apr-09 2:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.