Forums > Jitter

Position two jit.phys.worlds in one render context

December 26, 2012 | 7:24 pm

Is it possible to set up two independent jit.phys.worlds in a context to be split between two projectors (as in attached jpeg)? There doesn't seem to be a 'position' attribute for jit.phys.world. I guess a workaround would be to have two named jit.phys.worlds, capture each to a texture and display them on positioned videoplanes.

[attachment=211222,4798]

Attachments:
  1. worldboxes.jpg

December 26, 2012 | 9:06 pm

this can be accomplished if you disable the worldbox attribute of the phys.world objects, and create your own boundaries using static (@mass 0) jit.phys.body @shape cube with one of the dimensions scaled close to 0.

otherwise, the default worldbox will always be centered on the world origin.

you could also possibly achieve your desired result simply by using a single physics context, scaling the worldbox up by two on the X dimension, and creating a "divider wall" static rigid body at the origin.


December 26, 2012 | 11:15 pm

thanks Robert–could you post a simple example of each of those techniques?


December 30, 2012 | 10:16 pm

something like this:

– Pasted Max Patch, click to expand. –

January 1, 2013 | 5:20 pm

thanks-this will be useful!


Viewing 5 posts - 1 through 5 (of 5 total)