WorldViewProjection keyword in DierctX Document

Started by
4 comments, last by akira32 16 years, 1 month ago
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]
akira32 編程之家 Yahoohttp://tw.myblog.yahoo.com/akira32-akira32
Advertisement
They're called Semantics. There are some predefined, and you can add your own ones like WVP, CameraPosition and the like, whatever you need.
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

akira32 編程之家 Yahoohttp://tw.myblog.yahoo.com/akira32-akira32
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
I want to find the complete list of all custom semantics as defined by FxComposer. Could somebody have the list?



akira32 編程之家 Yahoohttp://tw.myblog.yahoo.com/akira32-akira32
I find the list in FX Composer 1.8 Help>Semantics and Annotations.
FX Composer Semantics and Annotations

akira32 編程之家 Yahoohttp://tw.myblog.yahoo.com/akira32-akira32

This topic is closed to new replies.

Advertisement