WebGL export

Info about new community or project announcements, implemented features, classes, modules or APIs. Might get technical!
PLEASE DO NOT POST HELP REQUESTS OR OTHER DISCUSSIONS HERE!
User avatar
bernd
Posts: 6882
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: WebGL export

Postby bernd » Wed Jan 04, 2017 7:50 pm

Attached an webgl building export I'm dreaming to do with FreeCAD one day. http://www.b75.ch/webgl/biberstein/
User avatar
yorik
Site Admin
Posts: 10609
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: WebGL export

Postby yorik » Thu Jan 05, 2017 12:21 am

intersting... this seems to be produced with ifc++?
User avatar
bernd
Posts: 6882
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: WebGL export

Postby bernd » Thu Jan 05, 2017 5:53 am

yorik wrote:intersting... this seems to be produced with ifc++?
Yes with closed source free Windows version of ifc++

But may be BIM Surfer and BIM Server will do the job too. There has been lots of development in BIM Surfer lately. https://github.com/opensourceBIM/BIMsurfer
User avatar
microartisan
Posts: 12
Joined: Fri Mar 23, 2018 11:52 am
Location: beijing
Contact:

Re: WebGL export

Postby microartisan » Sun Apr 01, 2018 7:52 pm

I find a bug also :)

https://www.freecadweb.org/tracker/view.php?id=3418

I build a simple box ant export to html , it can not open by browser.

Code: Select all

geom.faces.push( new THREE.Face3(0L, 1L, 2L) );
                geom.faces.push( new THREE.Face3(3L, 1L, 0L) );
                geom.faces.push( new THREE.Face3(4L, 5L, 6L) );
                geom.faces.push( new THREE.Face3(4L, 7L, 5L) );
                geom.faces.push( new THREE.Face3(7L, 4L, 3L) );
                geom.faces.push( new THREE.Face3(3L, 4L, 1L) );
                geom.faces.push( new THREE.Face3(6L, 5L, 0L) );
                geom.faces.push( new THREE.Face3(6L, 0L, 2L) );
                geom.faces.push( new THREE.Face3(0L, 5L, 3L) );
                geom.faces.push( new THREE.Face3(3L, 5L, 7L) );
                geom.faces.push( new THREE.Face3(6L, 2L, 1L) );
                geom.faces.push( new THREE.Face3(6L, 1L, 4L) );
then I change to

Code: Select all

THREE.Face3(3, 5, 7)
it works.
Last edited by microartisan on Mon Apr 02, 2018 5:04 am, edited 1 time in total.
User avatar
Kunda1
Posts: 3672
Joined: Thu Jan 05, 2017 9:03 pm

Re: WebGL export

Postby Kunda1 » Mon Apr 02, 2018 12:33 am

microartisan wrote:
Sun Apr 01, 2018 7:52 pm
I find a bug also :)
Please add the ticket number that you opened in the tracker for this here in the forum and add the link to this thread in the ticket. Thanks
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
Kunda1
Posts: 3672
Joined: Thu Jan 05, 2017 9:03 pm

Re: WebGL export

Postby Kunda1 » Mon Apr 02, 2018 10:42 am

microartisan wrote:
Sun Apr 01, 2018 7:52 pm
yorik wrote:
@microartisan aka mahaidong (on the tracker) has offered a proposed fix in issue #3418
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
yorik
Site Admin
Posts: 10609
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: WebGL export

Postby yorik » Mon Apr 02, 2018 4:46 pm

Kunda1 wrote:
Mon Apr 02, 2018 10:42 am
@microartisan aka mahaidong (on the tracker) has offered a proposed fix in issue #3418
Added, thanks for the fix!
paullee
Posts: 1233
Joined: Wed May 04, 2016 3:58 pm

Re: WebGL export

Postby paullee » Mon Dec 03, 2018 3:21 pm

There is a discussion about Collaborative CAD Platform not sure is there something related
- supported by Three.js, show model by uploading FC file.

https://forum.freecadweb.org/viewtopic.php?f=8&t=32521