[TW5] A small update to rboue's Three.js plugin

208 views
Skip to first unread message

Jed Carty

unread,
Oct 16, 2017, 4:48:25 PM10/16/17
to TiddlyWiki
For another project I had to use three.js a bit and because everything goes with TiddlyWiki I started playing around with the Three.js plugin. I made a small modification to the $view3js widget so that you can now pass arguments to the three js program from tiddlywiki. You can pass a json object to the widget as the opts input to be passed to the main function for the three js program. It is a bit awkward at the moment but I will hopefully clean it up in the future.

It is a small update and the credit still belongs to rboue.

I am not sure if many people are going to have use for this but I don't know how to contact rboue and this may be useful for someone. I made a quick demo here http://ooktech.com/jed/ExampleWikis/ThreeJS/ if you change the values on the range widgets it will rotate the object around the x y or z axis.

Ste

unread,
Aug 17, 2020, 1:37:42 PM8/17/20
to TiddlyWiki
I appreciate this is an old old thread but does the three.js plugin mean I can display stl files in tiddlywiki... And if so do any kind genius know how i'd do that? I am an engineer of little brain... 

Jed Carty

unread,
Aug 18, 2020, 2:04:36 PM8/18/20
to TiddlyWiki
I think that you would need to add the stl loader component for 3js to the plugin, or as a separate plugin, but it is certainly possible.

Ste

unread,
Aug 19, 2020, 12:28:06 PM8/19/20
to TiddlyWiki
Ah. Ok. Isn't the stl baked into three.js? I'll have a look. 
Just prodding at the edges of embedding models from onshape.com which although it does a good link share won't allow it to be embedded because of reasons. Was hoping stl export and tiddlywiki could be a pain free ish solution. 
Thanks for the reply. 

Stephen Wilson

unread,
Aug 20, 2020, 11:53:37 AM8/20/20
to TiddlyWiki
Digging around a little bit would suggest native stl support:  $:/plugins/rboue/Three.js/Lib/Loaders/STLLoader.js but just dropping the text output of an STL into a tiddler and pointing to it threw up an error. 
Reply all
Reply to author
Forward
0 new messages