Multiple independend moving textlines

Oct 23, 2012 at 7:54am

Multiple independend moving textlines

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

#64889
Oct 24, 2012 at 1:30pm

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. –
#233967

You must be logged in to reply to this topic.