Creating a .X file from vertices.

Hey guys!

I had a question I wanted to see if anyone could help me with. I was going to shoot you a message Rom but I figured maybe someone else would have an idea as to what I'm looking for and would give you a break! B) In my programming class we're we have plans to create a simple modeling tool, something that will create terrains. The goal is to lay out a terrain and then be able to move the X, Y, Z positions. Most of it is done but were trying to figure out how to write out to a .X file. What we have is a list of verticies that we want to use.. but we're not sure how to get it out to a usable model file to be used. So far anything we've found related to it simply said "Don't even trying" so I'm hoping that someone has a better suggestion then that. Any help would greatly be appreciated with this project. Thanks guys!

Matt

Comments

  • edited February 2011
    Hey Matt!

    So why .x file exactly? .obj format sounds more easy to use for writing out a simple mesh.

    You can find all the info you need on .x format here: http://msdn.microsoft.com/en-us/library/bb173014(v=vs.85).aspx

    Good luck! ;)
  • edited February 2011
    Thanks for the quick response!
    A .x file is the DirectX compatible mesh that we used in XNA for our class. Do obj files have similar capabilities? Perhaps we can look into those if its easier. I'm not formiliar with 3D models. Thanks for the link! Will check it out when I'm not on my phone.

    Matt
  • edited February 2011
    Yep, .obj is a traditional file format to express 3D geometries. It's text based and very easy to handle. You'll find more info here: http://en.wikipedia.org/wiki/Wavefront_.obj_file
  • edited February 2011
    Thanks for the advice Rom, will see what we can get done tomorrow!
    Matt
  • edited February 2011
    No problem. Let me know if you managed to export you mesh in this format. :)
Sign In or Register to comment.