Aller au contenu

Photo

Weird appearance in-game


  • Veuillez vous connecter pour répondre
7 réponses à ce sujet

#1
Dark_Ansem

Dark_Ansem
  • Members
  • 638 messages
after I convert my model to .obj via blender and then to .fbx via the autodesk converter this is what happens in-game

http://img707.images...elweirdness.jpg

or actually, in the editor. what am I doing wrong?

#2
Dark_Ansem

Dark_Ansem
  • Members
  • 638 messages
Solved. Still do not know how. but definitely a texture problem, unless it was fault of Blender that, when exporting a .obj file exported a .mtl too. converting only the .obj possibly caused this. I'll convert only in .3ds now. if only blender did not behave as stupidly when exporting .3ds...

#3
DarthParametric

DarthParametric
  • Members
  • 1 412 messages
You don't need to convert an OBJ to an FBX. In fact I would strongly advise against it, as multiple format conversions generally lead to all sorts of problems. Tazpn's tool accepts OBJs natively. You'll need the MTL file to make sure you get your texture name inserted into the MMH. If you didn't get an MAO on conversion then it didn't get added, so you'll have to edit the MMH manually (and make an MAO).

#4
Dark_Ansem

Dark_Ansem
  • Members
  • 638 messages
tapzn's tools do not support conversion from .obj to .mmh.xml and so on I think. at least, in the GUI this does not happen.



and how do I use the eventual .mtl? can you post a step-by-step example?

#5
DarthParametric

DarthParametric
  • Members
  • 1 412 messages
The GUI is not part of tazpn's tools, it's a 3rd party app. I have previously suggested to the author of the GUI that he add in the ability to load OBJ/3DS/DAE files as well as FBX, as tazpn's tool natively supports all these formats.

To convert an OBJ you will have to use the command line. The easiest way is using a batch file. Create a text file in the same directory as fbxcmd.exe. Open it in Notepad and paste in the following:

fbxcmd convert model_name.obj model_name.mmh.xml

Save it, then change the extension from .TXT to .BAT. Make sure you aren't hiding file extensions which is the default in Windows (in Windows Explorer go to Tools->Folder Options, switch to the View tab, uncheck Hide Extensions for Known File Types).

Now any time you want to convert a file, paste the OBJ and the MTL in the same directory as fbxcmd.exe. Right click on the BAT and choose Edit to open it in Notepad. Change model_name to the filename of your model. Save, then double click the BAT to run it. You should get the MMH.XML, MSH.XML and MAO. The OBJ references the MTL, so as long as they are in the same folder tazpn's tool will use it.

You can open both the OBJ and MTL in Notepad if you want to have a look at what's inside. They are just ASCII, not too dissimilar in principle to the XML files for the MMH and MSH.

Modifié par DarthParametric, 13 janvier 2010 - 10:46 .


#6
Dark_Ansem

Dark_Ansem
  • Members
  • 638 messages
thank you Darth. But I guess it will have to wait for the GUI extension.



Why only .obj are best though? is .3ds bad?

#7
DarthParametric

DarthParametric
  • Members
  • 1 412 messages
3DS is not the most reliable format in my experience. OBJ is a universal format and (generally) doesn't get screwed up when swapping between apps.

#8
Dark_Ansem

Dark_Ansem
  • Members
  • 638 messages
thanks for the info. other differences?