Alternatives to jit.lcs/lcd

youcloudsofdoom's icon

Hi all,
I'm trying to build something that allows me to draw layers of live data from different datasets on screen with Max. Right now I'm trying to do this with jit.lcd, by drawing all the multiple points from each set as ovals, then sending (clear) and re-drawing them as the data updates.

My issue is that different data sets are updating at different times, so each (clear) message is deleting everything visible at that point. I got around this by running multiple jit.lcd objects into the same jit.pwindow and having each data set draw to a different jit.lcd. However, after doing this three times the slow down of the patch is reall noticeable.

What I really need is something like an 'undo' command for jit.lcd, which will remove the last thing drawn without having to send the (clear) message. Does such a thing exist, or should I try doing this with another visualising method for Max?

Andrew Benson's icon

Depending on what you are trying to accomplish, you might be better served working with multiple jit.gl.sketch, jit.gl.mesh, or jit.gl.gridshape objects and possibly working in jit.gl.multiple as well. OpenGL drawing will be easier to expand out from later as well.

Alternately, jit.mgraphics is a pretty snappy alternative to jit.lcd.

youcloudsofdoom's icon

Hey thanks for the reply Andrew - haven't really played with any of those objects, so I've got some learning to do! OpenGL has always seemed a bit daunting, are there any particular tutorials you'd recommend?

Andrew Benson's icon

Look in the Max documentation browser for Video and Graphics tutorials. That should get you going.