   saving poligons to .x files ?
  Hello guys !!How could I save, let''s say a simple poligon, from my vertex buffer to a directx(.X) file, so that I could then use that .x file with standard dx functions for loading .x files ? Does dx offer any working and easy to use functions for that ??Thanx a lot !Have fun!  
  i cant remember how to save them from your buffer but you should try a modeling program check out www.anim8or.com to download one its free easy to use u can draw your polygons there export to 3ds and convert to .x with conv3ds easier than drawing them on your app and saving cause you dont have to do all the code ;  You can convert it to a mesh. Create an empty mesh, call mesh->lockvertexbuffer and copy your data in, create a dummy index buffer (just 0,1,2,3...), create a dummy adjacency buffer (just 0,0,0,0,0,0...) and save it. For a better file you can call weldvertices, generateadjacency or optimizemeshinplace before saving. ;  Hey !Fidelio66:Thanx for help! I''ll try what you suggest and report my success Madprog: I know you can create and export to .x files with many modelling programs. The thing is that I am trying to create a simple map editor for my game, and then save my map as an x file.I''m out of here. ;  D3DX9 has the perfect function for you: D3DXSaveMeshToX() ;  Circle, that''s what I meant when I said ''and save it''.