[Help wanted] FreeCAD in web browser project. Its not Onshape! And its working.

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
User avatar
bitacovir
Veteran
Posts: 1570
Joined: Sat Apr 19, 2014 6:23 am
Contact:

Re: [Help wanted] FreeCAD in web browser project. Its not Onshape! And its working.

Post by bitacovir »

mmiscool wrote: Thu Feb 06, 2020 6:48 pm It is back up.
Thanks. It is very cool.
::bitacovir::
==================
One must be absolutely modern.
Arthur Rimbaud (A Season in Hell -1873)

Canal Youtube Grupo Telegram de FreeCAD Español

My personal web site
My GitHub repository
Mini Airflow Tunnel Project
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: [Help wanted] FreeCAD in web browser project. Its not Onshape! And its working.

Post by looo »

Wow, this works suprisingly nice.

Would it be possible to render only the 3d scene in a jupyter notebook using the same technics?
User avatar
mmiscool
Posts: 73
Joined: Sun Dec 18, 2016 9:07 pm
Location: Connecticut
Contact:

Re: [Help wanted] FreeCAD in web browser project. Its not Onshape! And its working.

Post by mmiscool »

looo wrote: Fri Feb 07, 2020 5:57 am Wow, this works suprisingly nice.

Would it be possible to render only the 3d scene in a jupyter notebook using the same technics?
I am not familiar with jupyter notebook. Dose it have any interface for running dockerized applications?
My main project is https://autodrop3d.com
Effort on https://github.com/mmiscool/FC-Docker FreeCAD for cloud with browser based access has been discontinued in favor of focused development on https://github.com/xibyte/jsketcher
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: [Help wanted] FreeCAD in web browser project. Its not Onshape! And its working.

Post by looo »

mmiscool wrote: Fri Feb 07, 2020 6:46 am I am not familiar with jupyter notebook. Dose it have any interface for running dockerized applications?
It's possible to run a jupyter-notebook-server from docker. The notebook (gui in browser) allows to send python code to the server which gets evaluated with the python-interpreter and sends back the output to the browser. This way it's possible to import FreeCAD via python and also to start the GUI (qt).

The notebook (gui in browser) allows rendering evaluated output in different ways. It's possible to directly show svg's, plot matplotlib figures and so on. For FreeCAD it would be great to have FreeCAD-objects rendered like it is done for the FreeCAD-gui (qt). We already thought about adding a web-gl viewer to allow this, but this is also difficult as all the scene-graph stuff has to be rewritten.
Rendering OpenGL directly in the browser always seemed to be impossible. But I guess this is exactly what happens in the application you are showing us here.
User avatar
mmiscool
Posts: 73
Joined: Sun Dec 18, 2016 9:07 pm
Location: Connecticut
Contact:

Re: [Help wanted] FreeCAD in web browser project. Its not Onshape! And its working.

Post by mmiscool »

In this package rendering happens server side and is streamed to the client over web sockets. It seems that the output you are looking for is more static where you evaluate some code and show a result.

Might this be more what you are looking for?
https://github.com/danielfalck/freecadw ... /drawit.py
My main project is https://autodrop3d.com
Effort on https://github.com/mmiscool/FC-Docker FreeCAD for cloud with browser based access has been discontinued in favor of focused development on https://github.com/xibyte/jsketcher
User avatar
mmiscool
Posts: 73
Joined: Sun Dec 18, 2016 9:07 pm
Location: Connecticut
Contact:

Re: [Help wanted] FreeCAD in web browser project. Its not Onshape! And its working.

Post by mmiscool »

As to openGL in the browser there is a path for this when compiling to web assembly.
https://emscripten.org/docs/porting/mul ... pport.html
My main project is https://autodrop3d.com
Effort on https://github.com/mmiscool/FC-Docker FreeCAD for cloud with browser based access has been discontinued in favor of focused development on https://github.com/xibyte/jsketcher
User avatar
dcapeletti
Posts: 504
Joined: Wed Jul 23, 2014 2:27 pm

Re: [Help wanted] FreeCAD in web browser project. Its not Onshape! And its working.

Post by dcapeletti »

Hi, you know RollApp? allows you to launch freecad or any free application on your web browser. See https://www.rollapp.com/apps
User avatar
ebrahim raeyat
Posts: 625
Joined: Sun Sep 09, 2018 7:00 pm
Location: Iran
Contact:

Re: [Help wanted] FreeCAD in web browser project. Its not Onshape! And its working.

Post by ebrahim raeyat »

dcapeletti wrote: Sat Feb 08, 2020 11:20 am Hi, you know RollApp? allows you to launch freecad or any free application on your web browser. See https://www.rollapp.com/apps
it is very interesting, it works!!
User avatar
mmiscool
Posts: 73
Joined: Sun Dec 18, 2016 9:07 pm
Location: Connecticut
Contact:

Re: [Help wanted] FreeCAD in web browser project. Its not Onshape! And its working.

Post by mmiscool »

I played with roll app. I feel that separating the toolbars from the main window will make it easier to do a mobile friendly version of FreeCAD. But yes. Rollapp works. Don't know what the cost of self hosting they is thoug.
My main project is https://autodrop3d.com
Effort on https://github.com/mmiscool/FC-Docker FreeCAD for cloud with browser based access has been discontinued in favor of focused development on https://github.com/xibyte/jsketcher
User avatar
mmiscool
Posts: 73
Joined: Sun Dec 18, 2016 9:07 pm
Location: Connecticut
Contact:

Re: [Help wanted] FreeCAD in web browser project. Its not Onshape! And its working.

Post by mmiscool »

Got a new server. Going to leave it on line for a while.
Have fun and play.
http://playground.freecadcloud.com/

Nothing is secure or private at all about this so really only to get an idea of what the project is about.
My main project is https://autodrop3d.com
Effort on https://github.com/mmiscool/FC-Docker FreeCAD for cloud with browser based access has been discontinued in favor of focused development on https://github.com/xibyte/jsketcher
Post Reply