Position two jit.phys.worlds in one render context

Dec 26, 2012 at 7:24pm

Position two jit.phys.worlds in one render context

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
#65824
Dec 26, 2012 at 9:06pm

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.

#237045
Dec 26, 2012 at 11:15pm

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

#237046
Dec 30, 2012 at 10:16pm

something like this:

– Pasted Max Patch, click to expand. –
#237047
Jan 1, 2013 at 5:20pm

thanks-this will be useful!

#237048

You must be logged in to reply to this topic.