Issues on Linux - designs not rendering in html viewers
-
I have just downloaded a new version of OpenJSCAD onto a recently upgraded Archlinux distribution. I last used OpenJSCAD - on this same system, but an earlier version - about a year ago. However now I have a minor, but annoying, issue. I can view designs in the
index.htmlpage by dragging and dropping the jscad script into it. So my browser indeed supports both JavaScript and WebGL.But what I can't do is view a design in either of the two html viewers. In fact opening up either viewer shows a blank area except for the openjscad xy plane. In neither viewer is the design rendered. I've checked the source for
min.jsandmin.cssand they're both there, and being pointed to correctly by the viewer's html code.Clearly I'm either missing something obvious, or I need to add something else to my system for this to work. In any case I want to use the viewers as tests for adding some of my shapes to webpages.
What might be going wrong that a shape is not being rendered in an html viewer?
-
@Alasdair-McAndrew here's some thoughts.
For a local installation of OpenJSCAD, be sure to run the following commands.
npm install npm run bootstrapThis is true for both V1 and V2.
-
@z3dev Thanks very much - I'll give that a go (when I've finished a current round of marking - I'm a university academic). Do you recommend installing as a user or as root? Like most Linux users, I'm the only non-root user on my system, but on the other hand I like to separate all my personal files (which are in the
/homefolder) from system files, which includes applications and libraries, most of which are under/usr. -
@Alasdair-McAndrew Sorry. i forgot to provide the help page for installing V2 locally.
https://openjscad.org/dokuwiki/doku.php?id=early_v2
Please install as a normal 'user' account.
If you want to go further then please see the README file for the WEB UI. There should be some guidance on how to set up the WEB UI as part of a webserver.
-
@z3dev Thank you again! The web demo works very nicely, and I can pull examples into it and play around with them. It seems much faster than V1, although the scripting seems significantly different - although maybe that's just my lack of experience with V2.
However - the
viewer-minimal.htmlfile still refuses to render anything, even when I update thedesign-urlto point to an existing file... I'll do a bit more reading and searching. Again, many thanks. -
@Alasdair-McAndrew super.
only the main web page is available as this time, demo.html. the other web pages have not been ported to V2 yet.
-
@z3dev Thanks - but can it be embedded somehow in another webpage?
-
@Alasdair-McAndrew sure.
check out the recent post by @crysislinux
i haven't seen anyone embed V2 into a web page yet, but that will happen soon.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login