rifter1818 Posted March 31, 2004 Posted March 31, 2004 (edited) I was having a problem trying to use the mesh.intersect method however i have solved it. I have no idea what the problem was however my solution was to create the mesh from an x file instead of from code so i guess i need to know some more about how to make a mesh from code. the current mesh was just a 150x150 square. what i was using to create the mesh was mesh = new mesh(2,4,customvertex.positiononly.format,d3d.device) then creating a 4 vertex array and using the mesh.vertexbuffer.setdata method. But this doesnt seem to work. Any one know of a proper tutorial on creating mesh's from code? Edited March 31, 2004 by rifter1818 Quote
rifter1818 Posted April 1, 2004 Author Posted April 1, 2004 Thanks You also have to fill the index buffer. That would do it. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.