Forums > Jitter

Multiple independend moving textlines


joa
October 23, 2012 | 7:54 am

Hello,
i am working on a jitter patch (MAX 5, still) with many sentences that should move independently .
I looked at the jit.gl.text2d help file but did not find a way to generate more than one textblocks at the same time.

Is the right way to draw them in different windows and mix them together afterwards?
regards,
Joa


October 24, 2012 | 1:30 pm

Hi,

Unfortunately the jit.gl.text2d and jit.gl.text3d objects can only draw one block of text at a time.

The solution to your problem lies in either using poly (have a look: Max5/examples/jitter-examples/video/quicktime/PolyMovie)
Or you could use one jit.gl.text2d and draw it several times with different settings (eg. text, position) before banging the jit.gl.render.
Two of X possible solutions.

If you want to use different fonts for the textblocks I’d suggest a jit.gl.text2d for every font used, as rapid font-switching costs you fps.

Grt.

– Pasted Max Patch, click to expand. –

Viewing 2 posts - 1 through 2 (of 2 total)