I have a 3d application that allows scripting via Javascript files. Is there a way to launch node.js from that file and create a server of sorts to communicate with the 3D application?
Many thanks for ideas and alternatives!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Probably not. nodejs has a os-specific binary part (i.e. it’s not pure JavaScript). Also, the 3D JavaScript interpreter would fight with the one from nodejs and the results wouldn’t be pretty.
If the JavaScript dialect of your 3D application allows to open sockets (AJAX, maybe?), then you can use that to talk to a nodejs instance which is running independently.