Forums > Jitter

Mapping 3d Objects.

August 6, 2009 | 8:05 am


I’d like to create a simple installation based on a 3d real object (a church portal) "mapped" with Jitter.
The important thing to do is not what I’ll render in this surface, but how I’ll render shapes based on a real 3d object survey and mapping.
I made this with vvvv in the past. There is an how to do:
but we are interested to realize the same thing in Jitter.
How I can do this?

I’m on a Macbook Pro Intel.

Thank you.

August 7, 2009 | 12:47 am

I’ve seen several posts about keystone.
search for ‘keystone’

But I haven’t seen about fake shadow.
I’m very interested in achieving realtime fake shadow in jitter.

August 7, 2009 | 7:52 am

Yes, I’ve seen. A keystone shader can be useful for my goal but I would like to see how Jitter manages 3d object and then lets to see an output on these surfaces.

August 7, 2009 | 10:29 am

A good starting point may be to look at HC Gilje’s video projection tools

August 28, 2009 | 10:24 am

The HC Gilje’s video projection tools is a standalone patch that deny me to add further stuff into the patch.
However, i found the way of. I play with jit.aphablend and with jit.lcd which allow me to "draw" black at the same HC Gilje’s patch way. This black will be the non-projected part of the video on the complex 3d objects.

Thank you guys.

August 28, 2009 | 10:03 pm

With standalone patches, you should still be able to open the collective (mxf) in a text editor, then copy and paste the JSON code (starting after the header stuff) for the patch into a new patcher window. On Mac you need to do "Show Package Contents" from the application icon in order to get to the collective.

Don’t know if that matters in your case, but possibly for the future it may be helpful.

August 29, 2009 | 8:39 am

Thank you very much seejayjames for the suggestion! I don’t knew it until you had enlighten me. Now I’m find new solution also with seeing hcgiljie’s patch.
I only notice that my patch use the entire RAM when I play with it. Then I’ll post it for some helps from forum.

August 29, 2009 | 2:59 pm

hey seejayjames,

just tryed your JSON code copy trick.
it works perfectly for the main patch (mxf)!

but how i get the included bpatcher to work ?

do you also have a nice trick for that problem ?

all the best,

August 29, 2009 | 8:17 pm

if the bpatcher is embedded in the main patcher, it should work already. apparently it’s not, so I’m not totally sure… maybe somewhere in the collective / app folder there’s the patch that the bpatcher uses? if so, you could just copy that and use it, have it in the same folder as your newly pasted patch. I haven’t tried this particular combination though.

In the new patch you’ve made from pasting the code, do you see the empty boxes where the bpatchers should be? Their Inspectors should say what patch it’s looking for and any arguments they each take. So if you can find that patch somewhere in the application folder, that should be ok. Maybe make a new filepath (Options–File Preferences) and point it to your new patch folder just to be sure Max finds everything it needs.

August 29, 2009 | 11:18 pm

Opening standalone apps in max could also be achieved, if you open menubar help pache in standalone app or max runtime you gate the save as option in file drop menu.

August 30, 2009 | 7:28 am

thank you jazmatajz and seejayjames !
with your techniques, i am able to save
the .mxf as an editable .maxpat patcher.

but it does not include the bpatcher.

if i open the .mxf in max i can see the
bpatchers. but in my saved .maxpat version
i cant see them anymore ….

perhaps, i have to extract them first from
the .mxf file.

but i dont know how to find the right selection.

perhaps someone can help me out,


September 1, 2009 | 12:18 pm

I find it pretty lame to try to break my standalone before even asking me if I could share the relevant code.

VPT is mainly intended as a tool for non-max users, and contains very few secrets, but it is a very messy patch which I have been reluctant to share.

The most exciting part of the VPT, the cornerpin-keystoning, has been available on the forum since JKC demonstrated an elegant way of doing it:

The "secret" of the layers is then basically a combination of the cornerpin keystoning and using + instead of

– Pasted Max Patch, click to expand. –

If you combine this info with the example patch found in max5/examples/jitter/render called
you have everything you need to explore multiple opengl layers in max/msp/jitter on your own.

Optionally, it is quite easy to combine VPT with your own max patch: You can use VPT to only position,scale,mask the layers, and then send content from your own patch into the different layers, so you can add fx chains, mix sources etc.
The sourcenames that are accepted are listed in the dropdownmenu on each layer, but bascially they are 101source,102source, etc

So, by using your favourite videopatch and add a send 101source, it will end up in the layers of VPT set to 101source.

Hope this was useful.


July 25, 2011 | 5:24 am

I thought I would resurrect this. I had a look at VPT and its technique does seem to imply a flat surface as it is based on keystoning (please correct me if I am wrong).

But what about projecting of a complex (perhaps even curvilinear surface? Can Jitter replicate (or improve upon) the vvvv technique? See, "Projection on an arbitrary surface" here:

The concept of a projector seems to be the only thing needed.

Thank you for the help.

May 23, 2012 | 7:40 pm

Even if most of you posters have lost interest in this topic by now or have found suitable solutions elsewhere: my petproject should solve the problem described above. and it is opensource. and of course a max-patch, eventhough it can be downloaded as a standalone app.

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