Jump to content
  • Advertisement
Sign in to follow this  

cannot use shaders with animated mesh .x

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

for some reason , i cannot display q triangle using a basic fx effect if there is a .x model rendering, ive even trying with vertex shaders and i still have the same problem , if i can get it to work then the goal is to render the joints but now i am just trying a triangle seperate the from the model , has anyone encountered this sort of problem before?

vertex shader

D3DXMATRIX i,w,f,compMat,matProj;
f = i * w;
D3DXMatrixMultiply(&compMat,&f,&(w *matView));

d3ddev->DrawPrimitive(D3DPT_TRIANGLELIST, 0, 1);

so if i comment out this line

// render each mesh container

then the triangle above renders Edited by Anddos

Share this post

Link to post
Share on other sites
Use PIX debugger to figure out if the render states are being messed up by the earlier draw_mesh() calls to the point where your your DrawPrimitive for the triangle doesn't appear correctly.

You don't show the content of draw_mesh() either, does it use the effects framework? Are you specifying this flag anywhere? D3DXFX_DONOTSAVESTATE

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!