First of all. I’m not really using the three library directly, but instead I’m using a dependency that depends on the three library, so at the end the function parameters are the same to take into account.
To give a brief explanation, I’m basically using this dependency to have a 3d model viewer as a react component, if you check the props of the component you will see that it accepts a src property to the component, I have been checking the dependency files and I’ve figured that it is the same paramether of the
OBJLoader.load() method that is referenced in the docs. So, the thing is that the actual content of the .obj file that I want to load into this component is stored in a string variable that I got from a request to the backend of the application which from its part is downloading th obj file from a cloud storage that I’m using to store said files. The
console.log() of this string variable looks like this as the docs say, the url parameter should be a string that indicates a physical path for a file that is actually stored in the computer (this is the only way it has worked, static files in the client src files folder), is there a way to make this work with a string variable containing the content of the .obj file as I showed?