Importing DAZ3D model, textures messed up.

Anonymous 9 years ago 0
This discussion was imported from CodePlex

Rogad wrote at 2013-12-10 17:43:

Aloha !

So I am trying to load a Daz3D figure. Only problem is the textures are all messed up. Most of the textures don't show up at all. The face is about the only one that loads up correctly, despite one eye texture going AWOL too. Confused :/

I looked at the UV maps in UVMapper and they seem okay, so I don't think it's an export problem in DazStudio.

I'm exporting from DazStudio in .OBJ file format.

Do you think there could be a problem with your .OBJ importer ?

I can send you the model I guess, I won't post a link here as it's probably copyright, even though it's a freebie and freely obtainable.

Thanks for looking :)

Rogad wrote at 2013-12-13 11:25:

Objo,, any thoughts ?

objo wrote at 2013-12-16 18:45:

Yes, this is probably bug or limitation in the obj importer. Did you try importing into other software, e.g. MeshLab?
Can you export a small model that can be used for debugging? I would prefer a model that can be posted here and included in the unit tests!

Rogad wrote at 2013-12-16 21:19:

Hi :)

Yes I imported the model into Blender and the textures all load correctly. The only thing that was not quite right was the eyelashes, but I think that is some transparency thing that I have yet to figure out.

I don't have any other models from Daz3D I just have a few morphs which are commercial so I cannot pass on. It's free to download DazStudio though if you want to have a look. It should come with a basic figure and texture.

David_NET wrote at 2013-12-18 23:32:

I wonder if it is worth using Assimp.NET as model importer. Not sure this is possible as preliminary Google search has not shown anyone attempted for WPF3D. It is used in SharpDX.

Rogad wrote at 2013-12-21 17:36:

I've not heard of that David.

Objo, would you like me to email you the model so you can experiment ?

objo wrote at 2014-01-07 22:38:

Rogad: Yes, please send the model.
David: It should be possible, and it would be interesting to see a WPF demo using Assimp.NET!

Rogad wrote at 2014-01-09 01:42:

Thanks, I have sent you a message about where to send the model too :)

objo wrote at 2014-01-24 21:32:

I think the problem is the material is not set for groups. I have submitted a fix that seems to help.

Rogad wrote at 2014-01-25 20:23:

Thanks very much, this is just to confirm the textures are working as expected. There are a couple of artefacts that show through but they are not anywhere I need to worry about as for now it's just the face and head I need. Look on the top of the head if you want an example of what I mean, also in a couple of other places, that may be more to do with the model though.

I just realised the eyebrows are not transparent, but it's using a JPG file for that, so no wonder. I will try to locate a PNG and see if that works.

Great work objo !