Jump to content
  • Advertisement

Archived

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

vxten

mesh mirroring..

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

Ok I''m not sure what to do here. I load a model/mesh with D3DXLoadSkinMeshFromXof since its an x file. I need to edit the mesh so that it is mirrored either verticle or horizontal or both. now the thing is i think i will have to edit ID3DXSkinMesh but i do not know what to do. any help? thanks

Share this post


Link to post
Share on other sites
Advertisement
Well I figured out how to get direct access to the vertext buffer. simple enough. but i still have no clue how i can mirror meshes.

[edited by - vxten on October 23, 2003 11:25:57 AM]

Share this post


Link to post
Share on other sites
now it seems if i rotate the mesh''s x,y,z just right i can get the required effect. its like damn impossible know what to rotate it too i have to let it run in a loop adjusting rotation and when something looks good ill break in and see the values. this is driving me insane!!

Share this post


Link to post
Share on other sites
quote:
Original post by rileyriley
could you just multiply whichever coordinate you want to mirror around by -1?


This would like.. change the order of the vertices of a triangle.
Clockwise -> Counter-clockwise;
Counter-clockwise -> Clockwise;

--
You''re Welcome,
Rick Wong
- sitting in his chair doing the most time-consuming thing..

Share this post


Link to post
Share on other sites
see this image. maybe i can fix something like the perspective view so things will look right to me?

http://www.ten-arc.net/perspectivehelp.jpg

[edited by - vxten on October 23, 2003 1:08:36 PM]

Share this post


Link to post
Share on other sites
Rotate the actual vertices by locking the vertex buffer and transforming each vertex individually.

Share this post


Link to post
Share on other sites
i am hoping its a camara deal, but the camara wont hover over the meshes top down like that it either gos left-right, up-down, or away-near. in either case i still only see the side

[edited by - vxten on October 23, 2003 1:27:08 PM]

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.

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!