texture on jit.phys.world?

May 4, 2012 at 10:53pm

texture on jit.phys.world?


Im using jit.phys.world for creating a room where a ball is bouncing. I want to apply textures on the walls.

How do I apply textures on the walls on the room that is built by jit.phys.world??


May 5, 2012 at 6:49am

Use jit.gl.gridshape or jit.gl.videoplane or jit.gl.cornerstone, make 5 of them and set their positions and rotations to that of the jit.phys.world walls (or write a little routine which uses [getattr] to get the values of the worldbox).

May 5, 2012 at 9:31am


so its not possible put it straight on the jit.phys. I have to use its parameters. but how do I get the points for where the corners are in the room. so I can put for example the jit.gl.cornerstone over the exact position?

May 6, 2012 at 4:00pm

I meant jit.gl.cornerpin. I looked at the helpfile, and see that cornerpin does not use gl coordinates, so here is a more elegant solution using jit.gl.videoplane:

– Pasted Max Patch, click to expand. –

You will have to repeat the process 4 more times to have all the walls. You could also do something similar with jit.gl.gridshape @shape opencube, which would take care of 4 walls.

May 6, 2012 at 4:31pm



You must be logged in to reply to this topic.