Jump to content
  • Advertisement
Sign in to follow this  
Ksingh30

beginner DX10 question.

This topic is 4063 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!