Jump to content
  • Advertisement
Sign in to follow this  

Combining Materials in an .x file

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

I think Im being a tad dumb here. I want to combine meshes that use the same materials together to form a single mesh (thats in a frame heirachy in a .x file). Now Im sure its easy enough to do if I manually parse the .x file. Find the meshes, load seperately, check for their materials etc. I was just wondering if there is a function or technique to either a) run through the file and combine duplicates automatically or b) combine two meshes together (so I can parse through and let a function combine two meshes vertices, uvs, normals, faces together etc). Or do I need to write my own stuff (not really a problem but Im working to a deadline and would idealy like to get done as quickly as possible :) ). It just seems something like that has probably already been done somewhere and Im just too dumb right now to find it :)

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!