Sign in to follow this  
theMadMonster

Odd UV issues when creating FBX at runtime Unity3D

Recommended Posts

theMadMonster    100
I am having a bit of an issue with passing in UVs to a mesh that is created in Unity 3D. I am creating a fbx model at runtime with Unity using Autodesk FBX SDK and everything works fine unit I get to the texture. In the image you can see the heads that are being created for the body. The top image is showing the UVs and the bottom image is with the actual texture. The head in the middle is that one that is created at run time. The odd thing, is that the head on the left is that same head that is created at run time just added to the scene later by hand. So the uvs seem to be right.

A little more of an explination of what is going on here. I am creating a solid model at the end of this but it starts in pieces due to the programs that are creating the models. The body is an FBX to support animations and the head is created in FaceGen which only exports in OBJs. So we are converting the OBJ info into a fbx format so that we can add the head back on to work with animations. This is all working but I am left with this ugly texture issue. I have tried passing in the UV info from the origninal FBX head, and also from the OBJ which is the final target morph but still get the same ugly seam. If anyone has any ideas on what this could be I would really appreceate it, or just some ideas on things that I should start looking into.

Thanks

[attachment=8000:meshUVProblem.jpg]

Share this post


Link to post
Share on other sites
mikiex    261
Your obj models actually technically split at the seam, where as your generated model shares UVs
Its interpolating across that seam, where as you want it to interpolate up to the seam. Basically you need two sets of UV information at the seam, one stores U value of 0 and the other stores U value of 1.

Do you understand what I mean?

Share this post


Link to post
Share on other sites
theMadMonster    100
Thanks that makes sense. I've been tasked to some other things for now, this issue has been deamed less important. So I will be back to visit this issue later this week or next. I am sure I will have some questions about it then. Thanks again

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this