Sign in to follow this  
Ksingh30

beginner DX10 question.

Recommended Posts

ok I was looking at the tutorials that come with the SDK. it said "After vertices are converted to world space, view transformation converts those vertices from world space to view space" so then it calls the following WorldVariable->SetMatrix( (float*)&_World ); ViewVariable->SetMatrix( (float*)&_View ); ProjectionVariable->SetMatrix( (float*)&_Projection ); //Draw Object so since its setting the _word matrix first, then the _view matrix then the Projection matrix. Do all renderable objects need access to the viewmatrix and the projection matrix? because it has to set those after setting its world matrix. or should each object in the scene have its own viewmatrix, projectionmatrix?

Share this post


Link to post
Share on other sites
ok I think I got it.
Please correct me if im wrong.

_ViewVariable->SetMatrix( (float*)&view );


where _ViewVariable is a pointer to ID3D10EffectMatrixVariable

this just tells that shader what the view matrix is right?

[Edited by - Ksingh30 on June 1, 2007 11:27:13 PM]

Share this post


Link to post
Share on other sites
Quote:
Original post by Ksingh30
where _ViewVariable is a pointer to ID3D10EffectMatrixVariable

this just tells that shader what the view matrix is right?
Yup, you've got the right idea [smile]


Jack

Share this post


Link to post
Share on other sites
ok I think I got that. now i have 1 more noob question.
I was trying to do some alpha blending stuff and I know the formula to get the pixel is this

outputpixelcolor=SourcePixel*SourceBlendFactor + DestPixel * DestBlendFactor

but how do I get the DestPixel?


[Edited by - Ksingh30 on June 3, 2007 11:04:00 AM]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this