[Node Editor] Script Error
All  1-11  12-16

Previous
Next
 From:  wayne hill (WAYNEHILL5202)
9810.12 In reply to 9810.10 
James,

Take a look at the Node Editor source - core - main.js code at lines 2709 - 2735:

code:

// this file allows to render the canvas using WebGL instead of Canvas2D
// this is useful if you plant to render 3D objects inside your nodes

LGraphCanvas.prototype.enableWebGL = function()
{
	// TODO

	// if (typeof(GL) === undefined) throw("litegl.js must be included to use a WebGL canvas");
	// if (typeof(enableWebGLCanvas) === undefined) throw("webglCanvas.js must be included to use this feature");
	// this.gl = this.ctx = enableWebGLCanvas(this.canvas);
	// this.ctx.webgl = true;
	// this.bgcanvas = this.canvas;
	// this.bgctx = this.gl;
	// GL.create({ canvas: this.bgcanvas });
	// this.bgctx = enableWebGLCanvas( this.bgcanvas );
	// window.gl = this.gl;
}

/**
* marks as dirty the canvas, this way it will be rendered again
*
* @class LGraphCanvas
* @method setDirty
* @param {bool} fgcanvas if the foreground canvas is dirty (the one containing the nodes)
* @param {bool} bgcanvas if the background canvas is dirty (the one containing the wires)
*/



That is why I think it was removed because of increased complexity involved with WebGL drivers.

It would be great to have a 3D rendering node in the node editor, but it is well beyond my skill set to even consider the challenge. Tie it in with, say the https://threejs.org/ library, it could be fantastic.


Edit: Michael - "WebGL is disabled in the WebKit engine that is included with MoI, because of the added size." -- My Moment of Inspiration has faded.

Maybe MoI 5.0? :-)

Wayne

EDITED: 20 May 2020 by WAYNEHILL5202

  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
Next
 From:  James (JFH)
9810.13 In reply to 9810.11 
Michael,

"WebGL is disabled in the WebKit engine that is included with MoI, because of the added size."

Thank you for the information.
Could WebGl be an add-on for user who choose to download as a separate package?
Again, I may be exposing my ignorance here.

James
https://www.instagram.com/nodeology/
  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
Next
 From:  Michael Gibson
9810.14 In reply to 9810.13 
Hi James,

re:
> Thank you for the information.
> Could WebGl be an add-on for user who choose to download as a separate package?

I guess theoretically, but it would be something like a customized whole version of MoI, not really just an add-on module.

- 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
Next
 From:  wayne hill (WAYNEHILL5202)
9810.15 In reply to 9810.11 
Hi Michael,

Just curious. Is SVG also disabled in the WebKit? Trying to use SVG in the Node Editor with no success so far.

Thank you,
Wayne
  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:  Michael Gibson
9810.16 In reply to 9810.15 
Hi Wayne, yes that's correct the version of WebKit bundled with MoI has SVG disabled because of its large footprint.

- 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
 

Reply to All Reply to All

 

 
 
Show messages: All  1-11  12-16