mesh mirroring..
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
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]
[edited by - vxten on October 23, 2003 11:25:57 AM]
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!!
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..
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]
http://www.ten-arc.net/perspectivehelp.jpg
[edited by - vxten on October 23, 2003 1:08:36 PM]
Why dont you just change your camera view?
---------------------------------------------
If God with me, Who against me?
Sitio de desarrollo de videojuegos en español
Digital Moon Studio...
---------------------------------------------
If God with me, Who against me?
Sitio de desarrollo de videojuegos en español
Digital Moon Studio...
Rotate the actual vertices by locking the vertex buffer and transforming each vertex individually.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement