how to make jit.gl.text3d text face a certain way?

Robin Price's icon

Hi,

I'm using jit.gl.text3d to label some blobs, I can make the text appear next to the blobs but when I use jit.gl.handle to give them a spin the text spins too and I can't read it. I want the text to always remain next to the blob but always face the camera and remain horizontal. The jit.gl.text3d's are a all hidden in an mxj which is basically wrapping around jit.gl.sketch.

Any ideas?

Robin

Zachary Seldess's icon

I think this might be what you're looking for.

Also, Wesley posted a billboarding shader a few months ago that I can't seem to find on the forums at the moment. I've attached the shader and patch though.

best,
Zachary

Robin Price's icon

Cheers Zachary this looks pretty useful.