1

Are there any good open source SceneJS examples that can graph functions similar to those demonstrated in http://www.graphycalc.com/?

Joris
  • 363
  • 5
  • 13

2 Answers2

1

I haven't seen any but it should be relatively easy to simply use a custom vertex shader that transforms the vertices of a grid into your desired function: https://github.com/xeolabs/scenejs/wiki/shader

Rehno Lindeque
  • 4,236
  • 2
  • 23
  • 31
0

You can also use a data source plugin with a geometry node, to continually update it's mesh: http://scenejs.org/examples.html?page=geometryPluginPullStream http://scenejs.org/examples.html?page=geometryPluginPushStream

And here's the available vertex deformation examples (selected by tag, see left column, click one to load it): http://scenejs.org/examples.html?tags=vertexDisplacement

xeolabs
  • 1,369
  • 1
  • 9
  • 16