Posts made by hrgdavor
-
RE: Jscad.app prototype desktop app
@DavidLyon66 this is just a desktop version of the jscad prototype: jscad.app.
openjscad.xyz stared implementing a desktop version, but was abandoned.
Although I can easily use jscad.app or openjscad.xyz in the browser there are benefits of having a desktop version (dedicated button in taskbar).
It could also be just personal preference to have desktop app that reliably works offline (PWA can be great but could break if cache is cleared while offline).
This is more of an attempt to reach more users, as some users consider not having a desktop app a deal-breaker.
-
Jscad.app prototype desktop app
For those interested in desktop app.
Here is initial draft version built with neutralino
https://3d.hrg.hr/jscad/desktop/draft1/the desktop app is just wrapped jscad.app there is currently no specific customizations in it to enhance desktop experience.
it should work well if your OS web view is chrome (I did not implement FS access through neuralino yet)to run it, download both: executable for your OS, and resources.neu, put them in the sam dir and run
Feedback for different OS is welcome, I only have windows available to test currently.
-
RE: API documentation links broken
@Zachary-Keim good to hear. Guess it was a temporary issue
-
RE: API documentation links broken
@Zachary-Keim
I clicked a bit but all links I tried except TOS worked okTOS links are broken.
what Other links did you find not working ?
-
RE: Click to item for Callback/Event functionality
@DavidLyon66 that is something I really want to imeplement, but I need to ask @z3dev to confirm this is not something in scope of jscad itself ... at least for now. I would need to experiment with it in jscadui.
I have made some progress there that will be usable for jscad, but it takes years with time am able to put aside for it.
making an extension that goes beyond exporting main method would allow to keep the current principle for jscad, and that principle serves well many users and many use cases.
I would go about it by requiring an interactive script like you would like to create to export a different method, for example:
export function interactive(){...}
. There we could experiment with script doing more that just generating models without braking existing scripts and without confusing users that do not need such interactivity. -
RE: Click to item for Callback/Event functionality
@DavidLyon66 said in Click to item for Callback/Event functionality:
I would have thought that a callback with an index for the item on selection might not have been that hard.
Said like that it is not too hard but it opens a pandora box and a can of worms.
- who receives the callback,
- do you need also moseover event
- how do you highlight the selected element ?
- what types of highlights would you need
- what would you do with the selected item afterwards
- index is fragile, objects should have a unique id for callback
- script is in the worker, renderer is on main thread
- how to send granular updates instead of re-render whole script (exponentional complication)
Other contributors might disagree with me here, but I think this is something a separate project should do by using jscad.
-
RE: Click to item for Callback/Event functionality
@DavidLyon66 said in Click to item for Callback/Event functionality:
be able to in code be able to do modifications to that selected object.
in my opinion, this sentence alone makes it much more complicated than blender or ultimaker cura.
If someone would implement what you are suggesting in jscad I would very happy and impressed at the same time.
I am one of few developers that are still active on the project (although little by little, and much less I would like). Even if were to work on this full time my guess is it would take me at least a year, and even then I am not sure to what extent it would match your expectations (or at least what I imagine your expectations are here).
btw, Blender has much more people smarter than me working there full time.
TLDR;
This looks huge to me and I would not dare to even start it, I would not mind if somebody would do it though. -
RE: Click to item for Callback/Event functionality
@DavidLyon66 That would be a huge undertaking.
Just the step to mark all entities during execution with code line numbers is difficult and requires code transformation. then taking cursor to that file location would be relatively easy to implement.
but intercepting editor changes to re-evaluate the script to only modify changed entity would be exponentionally more difficult. I would love to have time to develop something like that, but sadly I do not.
One thing that is doable is to perform faster render for parameter changes.. One thing that a developer writing the script can do is cache resulting objects baed on parameter values. and return the cached results for those objects that were not affected by parameter changes.
-
RE: How can I prevent my Cad design from
@Shunder0
i do not understand even slightest what you are asking here -
RE: How do I code directly in VSCode and preview the result on my web page?
@ucimo there are two plugins for vscode to preview jscad designs on the market.
Also you can edit your script in vscode and drag drop the file to https://openjscad.xyz after enabling auto-reload there. It will not work for typescript out of the box, but you can setup esbuild to bundle into js file and drag drop that file in openjscad for preview.
There is also https://jscad.app that is not yet official, it is a protoype for new jscad preview/edit . It supports typescript (transpiles it on the fly) and has some perf improvements too. If you feel chatty you can join the jscad discord channel also.
-
RE: Can "openjscad.xyz/?uri=..." support "data" protocol in addition to "http(s)"?
@Hermann-SW yes, the repo is better for bugs and features
-
RE: Can "openjscad.xyz/?uri=..." support "data" protocol in addition to "http(s)"?
@Hermann-SW do you have an github account ? This would be nicer as a github issue.
-
RE: Small "shift+enter" bug in openjscad.xyz?
@Hermann-SW do you have an github account ? This would be nicer as a github issue.
-
RE: can not import c:/jscad/whatever.stl on windows
@DBJDBJ did you try to drag and drop the folder onto the website instead ?
I tried the example from jscad repo: packages\examples\import\STLImport
https://github.com/jscad/OpenJSCAD.org/tree/master/packages/examples/import/STLImportI used the folder from the checked out code
and it worked with the button and with drag and drop.
Can you provide a link to zip file with the failing project?
-
RE: OpenJsCAD + physics engine?
@jumpjack2 you can export models from openscad or jscad to .obj or .stl meshes and then it is no more question of integrating with rapier, but a question of how you import meshes to rapier.
actual integration with jscad is much more complex problem.
-
RE: Embedding a design in a website
@cdub I have been slowly working on providing bits and pieces to create different apps/websites with jscad embeded in different ways here
https://github.com/hrgdavor/jscadui/ ... contributors are welcomeone of demos is about making a new version of jscad web https://jscad.app that was actually made by @platypii
Although my progress is slow there, that is also one place where you could find useful stuff.
-
RE: fetch() in a design
@Andreas-Plesch jscad.app is just a new prototype, not yet part of official jscad, I did not implement /remote ... it is meant for fetching remote scripts you can report issues on jscadui git or ask on discord.
-
RE: fetch() in a design
@Andreas-Plesch there is also this
https://github.com/hrgdavor/jscadui/tree/main/apps/model-pageI made this as an example for some users that asdek on discord and published sample here https://3d.hrg.hr/tmp/darvin/