0
votes

I have been trying to get a model exported from Maya to the .js format supported by three.js.

My problem is that when I use the exporter provided by the three.js github I get a file that contains values of 'Infinity' and '-Infinity' which gives me the expected error "uncaught syntaxerror unexpected token I"

-edit- To clarify on where the 'Infinity' values occur, they are all in my UVs

I have also tried the BlackTowerEntertainment version of the exporter and this produces no 'Infinity' values but rather an incomplete file that contains no material data.

I have also tried the clara.io route which produces a visible model, material data, but it seems they are unable to properly reference the textures in the materials.

Possibly a tutorial on how to actually get a model properly exported from Maya to three.js?

1
Hi from Clara.io! We are working as we speak on improving the Clara.io exporter such that it references the proper textures. It should be available soon after SIGGARPH (which is next week.) - bhouston
can you upload the json and obj version of your mesh so we can take a look? Where are you getting these values? - pailhead
@mindless_developer_man This is good news, I will keep an eye out for updates from clara.io, any chance you would be able to notify me when these changes might be in? - Jusdes
@pailhead I've edited question to clarify where the 'Infinity' values occur. My mesh is fairly complex, how should I go about uploading it? - Jusdes

1 Answers

0
votes

This is probably Maya/your model related.

Do you have the capability to break the mesh apart and inspect the mapping in a UV editor? If so, i'd try exporting piece by piece to pinpoint the problematic values.

If not, try to add some sort of mapping over the entire mesh (like planar) and check if you are still getting these odd values.