texture on jit.phys.world?
Hi!
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??
thanks
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).
thanks!
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?
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: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.
Thanks!