Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

mickey

rendering the flattened mesh to the right side using D3DXMatrixShadow(...)

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

hi, i'm having trouble, anyway this is what i do to flatten the mesh unto the floor, D3DXVECTOR4 LightPosition( 0.0f, 3.0f, 0.0f, 1.0f); D3DXMATRIX ShadowMatrix; D3DXPLANE ShadowPlane(0.0f, 1.0f, 0.0f, 0.0f); D3DXMatrixShadow(&ShadowMatrix, &LightPosition, &ShadowPlane); matObjWorld *= ShadowMatrix; ... can you plz show me the way how to project the flatten mesh to the right/left side instead? many thanks, [edited by - mickey on November 5, 2002 8:10:01 AM]

Share this post


Link to post
Share on other sites
Advertisement
not sure if this is right...

a shadow plane (or any plane) can/is defined with a normal. so to have a normal "ground" plane u use a normal (0.0,1.0,0.0) y-axis is pointing up. to change this to wall on the right side, i''d say use something like (-1.0,0.0,0.0) x-axis is pointing to the left.

right?

Share this post


Link to post
Share on other sites
should that ''really'' work? well, i''ve already tried that too but something tells me it doesn''t seem right

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!