Forums > Jitter

jit.gl.text2d RECIPE 28 "Subtitles" BROKEN in Max 6 — WHY?

March 16, 2012 | 10:35 pm

I am trying to do subtitles as in Recipe #28, but this seems broken in Max 6.

If one reverses the rendering order, banging the jit.gl.text2d object before the video plane, the text will appear over the video BUT every letter of text has a strange non transparent background bounding box which is impossible to remove regardless of blend mode settings etc.

Any tips or workarounds appreciated – seems like a bug in the the object itself?

Attachments:
  1. 28.SubTitle.maxpat

March 16, 2012 | 11:14 pm

When that patch was written, depthbuffering off used to be default on Mac, so it was naively assumed when the patch was written that depth-testing wouldn’t happen. To fix it, you can do @depth_enable 0 on the jit.gl.text2d and use the @layer attribute to manage draw order. Let me know if that makes sense.


March 17, 2012 | 1:43 am

Thanks Andrew — that was truly righteous.


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