WebGL: Difference between revisions

From Open Source Ecology
Jump to navigation Jump to search
Line 1: Line 1:
=Intro=
=Intro=


WebGL (Web Graphics Library) is a JavaScript API for rendering interactive 3D and 2D graphics within any compatible web browser without the use of plug-ins.  
WebGL (Web Graphics Library) is a JavaScript API for rendering interactive 3D and 2D graphics within any compatible web browser without the use of plug-ins.
 
=Update=
First explosion view model on gitlab and embedded.
 
*The code https://gitlab.com/mi_shell/models_online/tree/master/ose_webgl
*The model https://mi_shell.gitlab.io/models_online/ose_webgl/d3d_explosion.html
*Embedded https://wiki.opensourceecology.org/wiki/Michel_Log


=Example=
=Example=

Revision as of 00:38, 21 August 2019

Intro

WebGL (Web Graphics Library) is a JavaScript API for rendering interactive 3D and 2D graphics within any compatible web browser without the use of plug-ins.

Update

First explosion view model on gitlab and embedded.

Example

Webglexample.jpg

Links

Communications

Sun Jul 28, 2019

  • Michel,

Do we have any documentation anywhere that describes how to go from a FreeCAD file -> WebGL model like the one on the OBI website:

*

https://www.openbuildinginstitute.org/wp-content/3Dmodels/hydronics_panel/

Your work looks really amazing! We're launching an Open Source Everything e-commerce store for selling our products, such as the D3D -- Open Source Ecology's 3D Printer. We would love to add corresponding WebGL models on the product pages so customers know exactly what items we'll be shipping them and how it will be assembled.

Is there some automated process for generating these files like dat.gui.min.js?

*

https://www.openbuildinginstitute.org/wp-content/3Dmodels/hydronics_panel/js/dat.gui.min.js

Or does it necessarily involve lots of iterating & expertise with FreeCAD, Blender, Gimp, and coding in JS?


Aug 30, 2017

Hi, it's taking a bit longer than anticipated but one of these days the webGL template will be ready. I had to get used to the new setup and test the new features of the exporter.

A little preview in attachment. Cheers,

Michel.

Exlosion.png


Process:

I already added some things to software list. Brackets which is a pretty good open source web code editor and the ThreeJS exporter for Blender. To make it easy...

  1. Start Blender
  2. go to File>User Preferences...>Add-ons
  3. click the button on the bottom "Install from file..."
  4. install the zip-file in attachment
  5. click the selection box next to "Import-Export: Three.js Format"
  6. click the button on the bottom "Save User Settings"
  7. done...
  8. Install brackets in Linux.

File:Io three.zip