Exporting models from Maya to Three.js can sometimes result in 'Infinity' values

I've been struggling to export a model from Maya to the .js format compatible with three.js. The issue I'm encountering is that when I use the exporter available on the three.js GitHub, the resulting file includes 'Infinity' and '-Infinity' values, triggering an error message: "uncaught syntaxerror unexpected token I".

-edit- Just to clarify, these 'Infinity' values are all in my UVs.

I also attempted using the BlackTowerEntertainment version of the exporter, which eliminates the 'Infinity' values but generates an incomplete file missing material data.

Another approach I tried was through clara.io, which provides a visible model and material data, although there seems to be an issue with properly referencing textures in the materials.

Is there perhaps a tutorial available that explains how to successfully export a model from Maya to three.js?

Answer №1

It seems like the issue is specific to Maya or your custom model.

Have you attempted to separate the mesh and examine the mapping in a UV editor? If possible, consider exporting individual pieces to identify any problematic values.

If that's not an option, try applying a basic mapping technique across the entire mesh (such as planar) to see if the odd values persist.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

What is the best way to implement a unique function in an angularjs directive?

Is it possible to execute a custom function when clicking on the checkbox of a table row shown below? I am using the Angular Smart Table directive and need to be able to store the rowid or another property of the rows when the checkbox is clicked. app.dir ...

next-images encountered an error during parsing: Unexpected character ''

Having trouble loading images dynamically with next-images: //Working <Image src={require(`../../images/exampleImage.jpg` )}/> However, I want to use a dynamic URL like this: //Not working <img src={require(`../../images/${image}.jpg` )}/> Th ...

Create a dynamic effect by adding space between two texts on the page

const Button = () => { const options = ['test1', 'test2', 'test3']; return ( <div style={{ position: 'absolute', left: '8px', width: 'auto', flexDirection: 'row' ...

Encountering a failure when trying to run npm in a React project

I've removed the .lock file and node_modules, then reinstalled, but it's still not working. Can someone assist me with fixing this? npm ERR! gyp ERR! node -v v16.13.0 npm ERR! gyp ERR! node-gyp -v v8.2.0 npm ERR! gyp ERR! not ok npm ERR! node-pr ...

What is the best approach for testing a component that makes use of React.cloneElement?

My main component fetches children using react-router in the following manner: class MainComponent extends Component { render() { return ( <div> {React.cloneElement(children, this.props.data)} </div> ) } } I a ...

Waiting for the API endpoint to be posted on the development tool

After creating login credentials in the database, I am facing an issue when trying to use them to log in. The network response for the /api/login endpoint remains stuck on a pending request. Upon checking the response, it seems that the payload data intend ...

Navigating through JSON objects in Angular controllers and showcasing them in views

I'm currently learning Angular and facing a challenge with one of my tasks. My app has three main parts - a View, service, and controller. Here is how the View looks: <body ng-app="ForecastApp"> <nav class="navbar navbar-inverse navbar- ...

Building and utilizing xterm.js on your local machine - A step-by-step guide

I have been attempting to modify the source code of xterm.js and test my changes before submitting a PR. Unfortunately, I have not been able to generate a functional 'distribution.' (I apologize if my terminology is incorrect -- I am still fairl ...

Pressing the menu button will trigger a function that halts after the third click

As I attempted to implement the functionality of this left menu bar, I encountered a roadblock. The click event on the menu button seems to work fine initially - the left bar appears with the first click and closes as expected with the second click. Howeve ...

Error message: "Typescript is unable to locate offscreencanvas"

Currently, I am in the process of migrating a Three.js project to TypeScript. However, when attempting to compile it, I encountered an error which is documented in this particular issue on the Three.js repository: https://github.com/mrdoob/three.js/issues ...

Is it possible to use the addRow function with AJAX in Tabulator, similar to how setData is

Currently working with Tabulator 3.5 and I have a question... Can I dynamically add a row to tabulator using AJAX to get the data, similar to how we set data using setData? For example, instead of: $("#picks-table").tabulator("addRow", {"player":"La Di ...

Retrieving an object from an array in Javascript

Here is the structure of my response body, which is stored in a variable. When I use console.log(body), this is what I see: [ { "key1":"value1", "key2":"value2", "key3":"value3" } ] I am attempting to access "key3" with the follow ...

creating a dynamic PIE chart on Google using a Java string received from an AJAX request

Can someone assist me with a Google Pie Chart issue I'm encountering for the first time? I have two charts - a Bar chart and a Pie chart. When I click on a particular column in the bar chart, the corresponding pie chart should load on the same screen. ...

Transfering data from a mobile device can be most efficiently done with this method

Looking to create a client-server system with a mobile client. What is the most effective method for transferring data between the server and client? Is it best to use RESTful architecture, HTTP requests, or to transfer data in JSON or XML format? If the ...

Problem arises when a recursive function call is nested within a request in an asynchronous setting

Currently, I am working on the task of finding a specific document path by providing its name as an argument. In the fetch_doc_path function, I am making two get requests to retrieve a JSON file containing information about all files. Subsequently, I recur ...

Having trouble with a tslint error in Typescript when creating a reducer

I encountered an error while working with a simple reducer in ngRx, specifically with the on() method. https://i.sstatic.net/9fsvj.png In addition, I came across some errors in the reducer_creator.d.ts file: https://i.sstatic.net/sWvMu.png https://i.ss ...

Converting embedded json into a string variable

I am facing a challenge with deserializing nested JSON data into a string property while configuring binding in my application. Below is the configuration file snippet: { "Service": { "Id": "ccApiMicroservice", "Configuration": { "Option1 ...

Resize the v-select component in Vuetify to make it more compact and easily fit within a paragraph

Currently, I am facing a dilemma where I have a paragraph that requires a select box to be placed right in the middle of it. However, the v-select component is too large and does not seem to offer any control over its width. This is how it currently appea ...

Double Looping of Ajax on Shopify Order Form

I have an Ajax order form on a product page. Every time the #submit-table button is clicked, it should display a drop-down menu with updated cart information, such as quantities and prices, along with the newly added products. Here's an example of th ...

Implement a loading animation that will be displayed until a specific JavaScript code has finished loading

I need to implement a loading animation for an external JavaScript src while it's being loaded: <script src="https://xxxx.domain.com/xxx.js" type="text/javascript"></script> Currently, I am using jQuery (window).load, but it waits until ...