3D file preview?

137 views
Skip to first unread message

Alex Davies

unread,
Aug 10, 2021, 11:30:00 AM8/10/21
to TiddlyWiki
I'd really like to be able to include STL files in my tiddlywiki, but actually supporting a new file type is a bit beyond me. It seems like it would be entirely doable using threejs, but a bit more challenging to make it happen "automatically" so that tiddlywiki doesn't try to show me several MB text files.

Any thoughts on how that could be accomplished? Something to do with mime type detection?

Ste

unread,
Aug 10, 2021, 12:57:39 PM8/10/21
to TiddlyWiki
There is this :

Which has, I think, the ability to display STL files.
It's been on my to do list to look at and have a go but...

Alex Davies

unread,
Aug 10, 2021, 4:15:56 PM8/10/21
to TiddlyWiki
There there needs to be what, a display widget and and a parser?

Ste

unread,
Aug 11, 2021, 6:42:47 AM8/11/21
to TiddlyWiki
Looking at the demos on that site, they all seem to be for .json files :(

But,

There is the .js program that sets up the scene, the lights etc.


There is the actual data file, in our case this would be the stl:


and then the tiddler containing the widget:



but my brain melted at that point.

Would


be any help/ use?

Finally this, just because it looks shiny: 

https://threejs.org/examples/#webgl_loader_stl

Any big brains out there any insight?

Here is a simple cube as STL if anyone can make this magic happen!





Part Studio 1 - Part 1.stl

Ste

unread,
Aug 11, 2021, 6:58:15 AM8/11/21
to TiddlyWiki
There is also this as part of the plugin:

On Tuesday, 10 August 2021 at 21:15:56 UTC+1 Alex Davies wrote:

Joshua Fontany

unread,
Aug 11, 2021, 6:40:38 PM8/11/21
to TiddlyWiki
Including 3d files in a wiki is a really neat idea. Man, I wish I had more time. Replaying so I can find the thread later. ;)

Best,

Joshua Fontany

Alex Davies

unread,
Aug 24, 2021, 11:44:57 AM8/24/21
to TiddlyWiki
With the lazy-load tiddler on node-js supporting larger collections of files it seems like a potentially very useful tool.

Ste

unread,
Sep 19, 2021, 5:46:56 PM9/19/21
to TiddlyWiki
Did you make any progress on this Alex?

Alex Davies

unread,
Sep 20, 2021, 8:10:03 AM9/20/21
to TiddlyWiki
I'm afraid I haven't had any time to really work on this, and I don't anticipate getting more free time until after Christmas.

Ste

unread,
Sep 24, 2021, 3:41:00 PM9/24/21
to TiddlyWiki
No worries. :) just wondering... And giving the thread a bump!
Reply all
Reply to author
Forward
0 new messages