Simple 3d Eyeballs

Artur Sandulyak's icon

I've wanted to make a simple set of eyeballs that I can control and eventually track things.

I've tried a simple jit.gridshape from the tutorial but I can't figure out how to adjust the texture on the sphere. The texture gets stretched in a weird way, I've tried text plane but it didn't work.

I've also tried using jit.gl.object but that is creating other issues.

If somebody could help point me in the right direction it would be appreciated. The eventual goal is to have the eyeballs be responsive and move depending on inputs.

TFL's icon

There's already a few topics on the forum about mapping a square texture to a sphere (like here, here or here), and they almost all lead to the same old solution: the TexCoordMagic patcher.

Max Patch
Copy patch and select New From Clipboard in Max.

Fun bonus, I converted this shadertoy into jit.gl.pix genexpr to get a procedurally generated eyeball texture.

What are the issues you got with jit.gl.model (I guess you meant that instead of jit.gl.object)?

TFL's icon

Sorry, I couldn't resist.

Max Patch
Copy patch and select New From Clipboard in Max.