On my html5 website on physics, I would like to add computer graphics of tangles, similar to the following photo, and I would like to allow users to rotate the image of a tangle and thus allow viewing the tangle from all sides.

Is this the right forum to ask?

If so, what is the best way to realize this, using Mathematica? (I also have KnotPlot as available tool.)

Any advice would be greatly appreciated.

simple tangle image

  • $\begingroup$ Well, some time ago, I used embedded CDFs on a webpage. This should still work and it is also decently easy to implement from the developer side. But it requires the user to install the CDF player, which is probably something the user does not want fro security reasons. A more future-proof and lightweight way would be to place obj files with the tangles in the server and to use standard engines like WebGL or Unity to render it. (I am not an expert, though.) $\endgroup$ Jun 22 '20 at 8:22
  • $\begingroup$ What is the difference between WebGL and Unity? $\endgroup$ Jun 22 '20 at 15:24
  • $\begingroup$ What is the difference between Windows and Linux? ;) But seriously: I can't tell as I have not really used, yet. My impression is that Unity can do more (and is thus more complex; among browser games, Unity has become almost what Flash used to be a couple of years ago), but I guess WebGL is easier to learn. But I am really not an expert. Sorry. $\endgroup$ Jun 22 '20 at 15:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.