Jump to content
  • Advertisement
Sign in to follow this  
akira32

WorldViewProjection keyword in DierctX Document

This topic is 3870 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

float4x4 WorldViewProjectionMatrix: WorldViewProjection; The keyword of WorldViewProjection is used in the FX Composer2? But I cannot find the description of WorldViewProjection in DirectX SDK's document and FX Composer2's User Guide. Could somebody know where is the WorldViewProjection and others keyword(after ":") in DirectX SDK Document? [Edited by - akira32 on March 16, 2008 10:28:24 AM]

Share this post


Link to post
Share on other sites
Advertisement
FoxHunter2,thank you!
But I still cannot find the definition of WorldViewProjection in "Semantics (DirectX HLSL)".

I want to know the key words,as below:
WorldViewProjection
Wolrd
View Projection
WolrdInver
...... etc

Share this post


Link to post
Share on other sites
I think they're some custom semantics as defined by FxComposer (I also define them in my projects). In my opinion they speak for themselves:

WorldViewProjection - The World * View * Projection matrix
Wolrd - The World matrix
View Projection - The View * Projection matrix
WolrdInver - The Inverse(World) matrix

Via semantics you can set certain variables instead of their real name inside the shader. For example you could also do something like

float4x4 foo : WorldViewProjection

For example, if you don't know what the exact parameter name for the WorldViewProjection matrix is, but you know its semantic, you can always access is like that:

D3DXHANDLE wvpMatrixValue = ID3DXBaseEffect::GetParameterBySemantic(NULL, "WorldViewProjection");

This depends on the API and language used, of course

Share this post


Link to post
Share on other sites
I want to find the complete list of all custom semantics as defined by FxComposer. Could somebody have the list?



Share this post


Link to post
Share on other sites
I find the list in FX Composer 1.8 Help>Semantics and Annotations.
FX Composer Semantics and Annotations

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!