max projection mapping to mesh

Leila Gillespie's icon

I know you can use the cornerpin object to do projection mapping on max but I was hoping there is a way to do some mapping with the mesh object ( I want to map on a sphere). I tried a couple of thing but cant seem to figure out how to map on a sphere. I have to use max and not a different software because its for a uni class. Any tips or ideas?

Leila Gillespie's icon
Martin Beck's icon
Leila Gillespie's icon

hello so I'm still struggling to find a way to map on a sphere and I read you can use spout to export a video into madmapper. I dowloader the 2 but they dont seem to connect to one another even with the jit.gl.spoutsender object. https://1024d.wordpress.com/2011/06/10/maxmspjitter-to-madmapper-tutorial/

I can't seem to get it working. The 2 links mentioned earlier dont seem to allow the user to project on a sphere.

Max Patch
Copy patch and select New From Clipboard in Max.

Max Patch
Copy patch and select New From Clipboard in Max.

Rob Ramirez's icon

to map to a sphere you can simply use @tex_map 2 (sphere map)

Max Patch
Copy patch and select New From Clipboard in Max.

make sure you've gone through the video and graphics tutorials for some jitter basics : https://docs.cycling74.com/max8/tutorials/00-VGindex

Leila Gillespie's icon

thx :) but once the video is on the sphere I want to do some projection mapping so could need a way to apply the cornerpin object to the sphere and thats what i dont know how to do

Martin Beck's icon

You could capture the sphere to a texture with jit.gl.node.

Max Patch
Copy patch and select New From Clipboard in Max.

Leila Gillespie's icon
Kenneth Newby's icon

Curious... on my machine—MacBook Air 2017, OSX 10.16.6, Max 8.1.1—the mapping appears to not be on a sphere but a 2D circle, i.e. there's no distortion toward the edges of the sphere. ???

Leila Gillespie's icon

yeah... you are right! for some strange reason it's definitely not a sphere more like a circle with a slight slight 3d. I don't know how to make it a real sphere

Martin Beck's icon

Hi, let's bump this thread as the involved questions are a little beyond my knowledge and may also require more precise wording of requirements.

a) Rob has proposed to use @tex_map 2 (sphere map). In the following links it is explained what a sphere map is supposed to do. A sphere map is a 2D representation of the full 360-degree view of the scene surrounding of an object, as if taken through a fish-eye lens. So I think the behaviour that you report is no bug, but it seems not to meet your expectations, so you have to specify more precisely what you mean with "map on sphere" (e.g. What distortion is expected? Number of projectors?).
https://www.opengl.org/archives/resources/code/samples/advanced/advanced97/notes/node95.html
https://www.opengl.org/archives/resources/code/samples/advanced/advanced97/notes/node94.html

b) There is plenty of mapping software e.g.

that allows for sophisticated mapping. Maybe you find more information or a more convenient solution there.

Kenneth Newby's icon

With regards to a), whatever expectations I might have had were based on a posted code fragment that suggested a solution to achieving sphere mapping. The example is incomplete in that it loads a file that is not a sphere map. It's an incomplete example and fails to demonstrate the technique that Leila was enquiring about but rather leads to further confusion.