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!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
triplus wrote:
Few days back i found this project: http://www.babylonjs.com/ http://www.babylonjs-playground.com/
And it looks good. Produced models are of good quality and the performance is great. Maybe we could use it in FreeCAD in the future to get better results.
Nice find triplus, thanks for sharing.
Bookmarked (study material for rainy sunday afternoons ... )
And it looks good. Produced models are of good quality and the performance is great. Maybe we could use it in FreeCAD in the future to get better results.
r-frank wrote:Nice find triplus, thanks for sharing.
You're welcome.
paullee wrote:Thanks for sharing. There are quite a few similar projects but haven't tried to work with FreeCAD.
Do you export to obj or otherwise to this project?
It would be great if FreeCAD can export webgl with good setting to show the models in sharp images (FreeCAD export issues afterall?)
Note that it looks like Microsoft is behind this library. I don't see any issues due to the licence it uses but still i decided to mentioned this.
There is OBJ and STL "loader" available. But i read better results are achieved when using Blender exporter. I didn't do much tests but it does look like something that has potential and can be useful in its current form!
In light of the "3D in browser thing" I'd like to mention http://www.x3dom.org, hope it's not too off-topic.
What's nice about it is that you can access the elements in a X3D file (XML 3D) via your regular HTML DOM. So changing the attributes of a 3D object becomes as easy as anything else you'd do with JS.
A fun introduction to X3DOM (in this case, combined with jQuery) can be found here: http://math.nist.gov/~SRessler/x3dom/re ... ryTut.html
I found the learning curve quite lower than with WebGL, however, it's been a couple years...
I'd love direct X3D export in FreeCAD though, as to not have to go via VRML first.
Got the model on webgl, but found some patches of colour and lines not rendered exactly match the shapes.
Screenshot from 2016-06-29 02-14-51 _crop.jpg (214.99 KiB) Viewed 4761 times
triplus wrote:
r-frank wrote:Nice find triplus, thanks for sharing.
You're welcome.
paullee wrote:Thanks for sharing. There are quite a few similar projects but haven't tried to work with FreeCAD.
Do you export to obj or otherwise to this project?
It would be great if FreeCAD can export webgl with good setting to show the models in sharp images (FreeCAD export issues afterall?)
Note that it looks like Microsoft is behind this library. I don't see any issues due to the licence it uses but still i decided to mentioned this.
There is OBJ and STL "loader" available. But i read better results are achieved when using Blender exporter. I didn't do much tests but it does look like something that has potential and can be useful in its current form!
Still unable to fix the rendering problems - the part of model further away from the camera, the worse is the rendering. You can see there are 'bleeding' through lines, many tiny patches of colour not supposedly on that faces etc.
Seems three.js or webgl issues? Anybody have similar problems?
paullee wrote:Got the model on webgl, but found some patches of colour and lines not rendered exactly match the shapes.
Screenshot from 2016-06-29 02-14-51 _crop.jpg
triplus wrote:
r-frank wrote:Nice find triplus, thanks for sharing.
You're welcome.
paullee wrote:Thanks for sharing. There are quite a few similar projects but haven't tried to work with FreeCAD.
Do you export to obj or otherwise to this project?
It would be great if FreeCAD can export webgl with good setting to show the models in sharp images (FreeCAD export issues afterall?)
Note that it looks like Microsoft is behind this library. I don't see any issues due to the licence it uses but still i decided to mentioned this.
There is OBJ and STL "loader" available. But i read better results are achieved when using Blender exporter. I didn't do much tests but it does look like something that has potential and can be useful in its current form!
I will try to improve WebGL exporter a bit. Things like better camera and interaction support. Maybe to offer some possibility what geometry to export. As exporting lines/edges substantially inflates the file: