Square projection with a Matrox DualHead (with overlapping)


    May 10 2016 | 8:25 am
    Hello guys, I'm having some troubles to create the perfect patch for an installation. It's a 2m*2m*2m cube with a tulle on one of its face. I bought two 4000lu beamers that I want to use together to have a maximum of light. I want to make it work with a MacBookPro (mid 2012) under Bootcamp/Win7 (Max 6 32bit). So I've bought a DualHead and now I have a 2048x768 screen.
    Ok ? two 4:3 beamers one above the other to make a 2m/2m picture...
    I've tried this great patch https://cycling74.com/tools/texture-splitter-for-matroxdualhead2go/ to have my square but with this solution I cannot overlap the edge. And it's important to me.
    So do you think I'm on the right way or do you think I must reconsider the all thing ? Do you have any ideas ? Thx

    • May 10 2016 | 12:16 pm
      Hey Toorop
      I think the patch you are using is a great starting point (especially if your projectors can do lensshift and you don´t have to handle the fine positioning within jitter). I just added a softblend-gradient to your patch. For that to be in the right place, one of your pictures needed to be flipped inside your jit.gl.pix Now you might need to re-flip the output of one of your projectors to overlap the images..
      best, j
    • May 11 2016 | 9:10 am
      Thank you very much ! I like your way to dissolve borbers ! But your patch has a problem : it dissolves the picture too... : Take an image with 500 pixels verticaly, split it in two : 250px, with 20 pixels for the overlapping, and the image height is now 480 pix ! Am I clear ?
    • May 11 2016 | 9:50 pm
      Yes, you are right. In the overlapping range pixels are lost. But there are enough horizontal pixels in your setup anyways, if i got that correctly. If using two 1024x768 projectors for your square projection you´ll end up with a screen of 1024x1024. Scale your content to fit the horizontal 1024 and move it to the bottom/top. Overlay and blend the duplicates.
      Try this:
    • May 12 2016 | 11:24 am
      You're great ! Why gen is so poorly documented... I don't get your [* 2. 0.6] : I don't want any change of the scale. Can you explain this ? But the [- 0. 0.6] alone is perfect to lens shift the upper beamer !
      Thanks again, I'm in the right way now...
    • May 12 2016 | 12:19 pm
      Honestly, I don´t really get the gen-stuff as well. There definately could be a better documentation. But there are so many amazing patches and examples floating around, that can be investigated to learn - I just need to invest some more time, I guess.
      From OSCII´s original patch I learned that [* ] and [+]/[- ] accept to numers as argument. In this case the first will affect the X- the second the Y-coordinates. The [* ] will scale the image, the [+ ]/[- ] results in offset. We need to scale down the image, since we can´t just split it in the middle if we wan´t some overlap. I can´t really explain the underlaying vector-maths, but eventually someone might drop in to bring some light into this...
      I just fiddeled around with those numers to get the desired results. I kind of knew what I wanted, since I´m working on a similar project using two projectors for a floor-projection setup. But I´m currently talking a different approach using two gl.cameras and two gl.cornerpins. You´ll find patches demonstrating that technique in this here: https://cycling74.com/forums/sharing-triplehead2go-rendering-setup-updated-for-max6-and-jit-gl-node
      good luck, j
      Oh, and I just realized in my patch there was a missing connection to feed the gl.node´s output into the texture:
    • May 13 2016 | 4:16 pm
      Is there maybe someone out there, who can hint me to a way how to implement the jit.gl.cornerpin´s functionality within jit.gl.pix? - So the use of multiple gl.cameras and the capture procedure using jit.gl.node (as it is done in DTR´s patch) would become obsolete, hopefully resulting in a severe performance boost. That would be the perfect addition to the patch above...
      It feels like that should be easily possible. But I don´t really find a way how to set the corner´s coordinates individually..
    • May 15 2016 | 5:21 pm
      Hi COBTOB, this is my flavour to your patch. It crops a webcam to a perfect square texture. It does overlapping in the second screen with a new mask. Thanks again. This forum rocks !