SolveSpace Logo SOLVESPACE -- parametric 2d/3d CAD
Examples
Tutorials
Features
Download
Reference
Technology
Library
Forum
Contact
USER FORUM

(you are viewing a thread; or go back to list of threads)

WebGL export using Three.js (by Andrew McIntyre)
I am much impressed by the interactive models on the M-Labs website. Might is be possible to have a tutorial showing how this is done - using say a simple lathed model?

Exciting stuff!
Wed Jul 27 2016, 14:34:12
(no subject) (by whitequark)
File -> Export Triangle Mesh..., then select "Three.js-compatible mesh, with viewer (.html)" in the format dropdown. It's that simple.

To embed the models somewhere else... if you have basic knowledge of HTML and JS, take a look at how the m-labs page is structured, it should be obvious from there. If not, probably the simplest way is to include the model in an <iframe> tag, with the appropriate width and height set.
Wed Jul 27 2016, 15:40:48
(no subject) (by Andrew McIntyre)
Marvellous whitequark! I'll give it a whirl the first opportunity I get. Thank-you.
Wed Jul 27 2016, 17:32:27
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):
© 2008-2022 SolveSpace contributors. Most recent update June 2 2022.