Search found 5 matches

by cymx2
Wed Jul 12, 2006 1:51 am
Forum: Advanced Help
Topic: Inverse of view matrix(right-handed look-at matrix) for pick
Replies: 4
Views: 667

M(xaxis,yaxis,zaxis) * Inverse(M(xaxis,yaxis,zaxis))=E
M(xaxis,yaxis,zaxis) * Transpose(M(xaxis,yaxis,zaxis) )=E
so:
Inverse(M(xaxis,yaxis,zaxis))=Transpose(M(xaxis,yaxis,zaxis) )

CameraLookAtMatrixRH=M(xaxis,yaxis,zaxis)*M(-position) (right multiply)

so:
Inverse(CameraLookAtMatrixRH)=M(position ...
by cymx2
Tue Jul 11, 2006 1:29 pm
Forum: Advanced Help
Topic: Inverse of view matrix(right-handed look-at matrix) for pick
Replies: 4
Views: 667

Inverse of view matrix(right-handed look-at matrix) for pick

I need Inverse of view matrix (right-handed look-at matrix) for screen pick,but irrlicht's matrix only have matrix4::buildCameraLookAtMatrixRH(),no it's inverse matrix. so I write a inverse matrix,is right??

(*this)(0,0) = xaxis.X;
(*this)(1,0) = xaxis.Y;
(*this)(2,0) = xaxis.Z;
(*this)(3,0 ...
by cymx2
Sat Jul 08, 2006 8:16 am
Forum: FAQs, Tutorials, Howtos, and external tool lists
Topic: How to integrate irrlicht with MFC tutorial
Replies: 5
Views: 2626

I use createDeviceEx in CIrrMFCTestView::OnCreate(), use smgr->drawAll() in CIrrMFCTestView::OnDraw(CDC* pDC)
but it isn't working! why?? please tell me,thank you!

after 4 days of debug, I have discovered that OnDraw() function is called in 4 case:
-before the mainframe is created
-after the ...
by cymx2
Tue Jul 04, 2006 8:50 am
Forum: FAQs, Tutorials, Howtos, and external tool lists
Topic: How to integrate irrlicht with MFC tutorial
Replies: 5
Views: 2626

I create irr device in CMyView:: OnInitialUpdate()

now it is working !! and I have know why not in OnCreate()

I render scene in CMyView:: OnDraw() not in CApp::Run() ,but working!

thank you again!!
by cymx2
Tue Jul 04, 2006 8:12 am
Forum: FAQs, Tutorials, Howtos, and external tool lists
Topic: How to integrate irrlicht with MFC tutorial
Replies: 5
Views: 2626

thank you very much!!

i write windows with irrlicht is working ,but use mfc isn't working !!

I don't know why

I use createDeviceEx in CIrrMFCTestView::OnCreate(), use smgr->drawAll() in CIrrMFCTestView::OnDraw(CDC* pDC)

but it isn't working! why?? please tell me,thank you!