Jump to content
  • Advertisement
Sign in to follow this  

pix and vars

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

Hy. I'm not understand how work the debug of pix. There are part of the debug code that are reach and part not reach. For example: this code:

	VS_OUT vOut;
	float4x4 skinMatrix =
		RebuildSkinMatrix(vIn.blendIndices.x) * vIn.blendWeights.x +
		RebuildSkinMatrix(vIn.blendIndices.y) * vIn.blendWeights.y +
		RebuildSkinMatrix(vIn.blendIndices.z) * vIn.blendWeights.z;
	// Calculate local world matrix with help of the skinning matrix
	float4x4 localWorld = mul(gWorld, skinMatrix);
	float4 worldPos = mul(localWorld, float4(vIn.posL, 1));
	float4x4 mx0 = RebuildSkinMatrix(1);// the debug don't reach this code!!!!!!
        float4 m = float4(0,0,0,0);// the debug don't reach this code!!!!!!
	m = mx0[1];// the debug don't reach this code!!!!!!	
	vOut.posH = mul(worldPos, viewProj);
	//vOut.posW    = mul(float4(vIn.posL, 1.0f), gWorld);
	vOut.normalW = mul(mul(float4(vIn.normalL, 0.0f), gWorld), mx0);
	mx0 = mul(mx0,gWorld);

	//vOut.posH = mul(float4(vIn.posL, 1.0f), gWVP);
	vOut.posH = mul(worldPos, viewProj);
	// Output vertex attributes for interpolation across triangle.

why???? Thanks

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!