Trouble exporting OBJ with materials

General discussion and questions about XNALara go here.

Moderators: Runa, ObscureMemories, Love2Raid

User avatar
Posts: 2
Joined: Tue Apr 10, 2018 6:55 pm
Custom Rank: vaguely competent

Trouble exporting OBJ with materials

Postby Otter-Croft » Tue Apr 10, 2018 7:23 pm

Hey all,

I'm fairly new to the xnaLara world, but getting the hang of it pretty quickly. What I've been doing is exporting the scenes as OBJs with materials and then bringing them into After Effects for lighting and movement. Looks beautiful and worked like a charm for the first few times.

I'm just running into trouble with a particular model. All the textures show up fine in xnaLara, but when I go to export the scene as an OBJ with materials I get the following message: 'Could not save model. Could not find file ...' etc. And it stops halfway through copying the materials and geometry.

All the materials for the model are in the data folder (and named correctly), but the path listed in the pop-up doesn't match mine. I even tried manually relinking each .tga in the material editor panel and that didn't seem to fix it either. Is there something I'm overlooking? I know I need to redirect where the program is looking to pull materials, I just don't know where that could be.

Any help would be greatly appreciated!

-OC
You do not have the required permissions to view the files attached to this post.
Running xnaLara 11.8 off Windows 7 Bootcamp on 2012 Retina Macbook Pro.
Treating/animating final renders in After Effects via Element 3D.

User avatar
Posts: 109
Joined: Wed Aug 22, 2012 2:52 am
Location: Gravlex Med

Re: Trouble exporting OBJ with materials

Postby Anx » Wed Apr 11, 2018 11:37 pm

Some time ago, I stumbled into the same problem (Running XNALara_XPS 11.8 on Windows 8.1 with Nvidia GTX GPU).
I analyzed the model and found the mistake.

Like you written, the path listed in the pop-up also doesn't match mine. Some porters has coded the path to the textures, inside the mesh file, as "absolute path" to your own hard drive, and not "relatve" to the model. That's wrong!

XNALara is looking to pull materials, only in the SAME folder like the model (mesh) file.

The solution was quite simple:

A) If you just want exporting the scenes as OBJ, one time:

1) Modify->Save scene as .obj ...
2) Unmark "copy textures"
3) Press OK
4) Use the windows explorer to copy all textures (.tga) into the .obj folder

B) If you want to fix the wrong model: (That's what I always do.)

1) Modify->Save Generic_Item ...
2) Mark "overwrite selected item"
3) Be sure that "copy textures" is marked ("convert to .png" is recomment but not necessary)
3) Press OK
4) Reload the saved model, using "Commands->Swap selected model"
5) Export the scene as OBJ, like usually ("copy textures" is marked )



BTW: I like your perfectly written error report, with your major system specs and the complete error message. <3
A DL to the FF model would have been helpful to crack the trouble with THIS particular model :ohn:

User avatar
Posts: 2
Joined: Tue Apr 10, 2018 6:55 pm
Custom Rank: vaguely competent

Re: Trouble exporting OBJ with materials

Postby Otter-Croft » Sat Apr 14, 2018 7:33 pm

Anx wrote:


Tried Option B and it worked perfectly :D Thank you so much!
Running xnaLara 11.8 off Windows 7 Bootcamp on 2012 Retina Macbook Pro.
Treating/animating final renders in After Effects via Element 3D.

Return to General

Who is online

Users browsing this forum: No registered users and 1 guest