New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Importing X3D objects into three.js #4239
Comments
@xxdaggerxx Like mentioned in the reply to your(?) StackOverflow question, there is no X3D loader for three.js at the moment, but you could use X3DOM instead of three.js if you really have to use that file format. Otherwise, you'd have to write your own loader or convert to another format as you suspected. However, the tool Yvonne mentioned in the X3DOM issue is commandline, so you could make a webservice with it, then you could make ajax queries to the webservice to use it in client-side javascript. Otherwise X3DOM being open source, so you could dig into its code and try to extract only the parts that deal with parsing the file, and write an OBJ file accordingly, but that would require good knowledge of the X3D and OBJ formats, and solid javascript knowledge. You could skip the first part by having a 1-pixel canvas with X3DOM to feed it the files to parse though. |
There is already an online service which comes along with aopt called Transcoder. Or check out this Framework: https://github.com/x3dom/pipeline |
Sounds good :) |
There are a few works since then. X3D loaders need to be tested: https://github.com/dividab/three-x3d-loader .x3dv encoding is like vrml-classic X3Dv4 has passed International Ballot and is now and ISO/IEC Standard~ |
Hi everyone,
Is there a way to load X3D scenes into three.js?
Been searching all over the web and im surprised to find nothing on this issue.
Thanks very much for the help.
The text was updated successfully, but these errors were encountered: