WebGL and require('gl-matrix');
All  1-2  3-4

Previous
Next
 From:  Michael Gibson
7593.3 In reply to 7593.1 
Hi Brian, yes like Max says if it's just a pure javascript library and does not actually require WebGL then you should be able to use it - but the browser that MoI's UI is based on does not support WebGL itself I don't think.

You also posted code like this:

code:
var glMatrix = require('gl-matrix');
var assert = require('assert');


This is not likely to work as-is because Javascript does not have a built in "require" function (which is like an #include), were those examples from using it within a Node.js environment probably? I think Node.js adds that function into its global script environment, it's not part of the stock default script environment at least I don't think so.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  bemfarmer
7593.4 In reply to 7593.3 
Thank you Max and Michael.
So there is a possible source of some functions, to be converted to Moi compatible things.

- Brian
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages: All  1-2  3-4