scaling of textures for syphon and or jit.gl.texture

Jan 22, 2012 at 3:43am

scaling of textures for syphon and or jit.gl.texture

Hey,

I have just jumped back into Jitter after a few years away! I have tried to search the forums for answers, but I don’t think I’m asking the right questions.

Basically Im using a small 4 jit matrix 16 x 16, as the input for a jit.gl.texture

When the texture is rendered on a plane, the divisions of the 16×16 matrix become soft, a sort of interpolation between each matrix cell.

I’m pretty sure this has something to do with the auto scaling of the texture object?

I’m fairly sure the jit.gl.gridshape doesn’t have a specific pixel by pixel size – so how am I to determine the size of a mesh to create if i want to map a 16 x 16 matrix to it in a ratio of 1:1.

I realise I can render this without resorting to GL, but in order to send this image to SYPHON for use in VDMX, I need to render my graphic as a texture.

Thanks so much for any help

Cheers
Tim

#61383
Jan 22, 2012 at 3:45am

here is an image of as far as I have got!!

[attachment=182876,3236]

Attachments:
  1. maxTextureIssue.png
#221362
Jan 22, 2012 at 1:25pm

After a few hours I managed to sort it all out!

it came down to the size of the texture, and the interpolation method – both on the jit.render object.

#221363
Jan 22, 2012 at 2:38pm

which messages? You can’t set texture size on the jit.gl.render, as far as I know? Would you mind posting what you ended up with as CopyCompressed, so I may take a look?

#221364
Jan 22, 2012 at 7:17pm

you can set a gl.textures dimensions by setting the @dim attribute and setting @adapt 0 (by default this is 1, causing the texture to automatically set it’s dimensions to that of the render context window).

you can turn off interpolation by setting the gl.texture attribute @filter to “none”

#221365

You must be logged in to reply to this topic.