unconed / MathBox.js

MathBox is a (work in progress) library for making presentation-quality math diagrams in WebGL.
MIT License
1.94k stars 127 forks source link

Notches in graphs #7

Closed maacl closed 10 years ago

maacl commented 10 years ago

If I try to do for instance:

mathbox.grid();
mathbox.curve({
  id: 'my-curve-2',
  domain: [-2, 2],
  expression: function (x) { return Math.abs(2*x + 1); }, color: 0x20c050,})

the resulting graph has a "notch" at x = -1.

I am using Chrome Version 29.0.1547.32 beta.

unconed commented 10 years ago

This is probably due to crappy line drawing in GL when there's no anti-aliasing. Will be fixed in MathBox 2 with custom line geometry.