Resizing QC Output with DIPS

kodamapixel's picture

I'm just starting out with QC and Max/MSP and am having some trouble with what is (hopefully!) a pretty simple problem...

Basically, I'd like to run multiple instances of a QC patch with the DIPSQCRenderer object in Max/MSP, but can't figure out how to resize QC patches and place multiple QC patches in the same Max/MSP output window.

If it helps to have some more info: I would like to light multiple copies of a mesh in QC to output from Max/MSP. Because of the change in perspective in QC when moving 3D shapes, I can't have several 3D objects in the same QC patch (they need to be in the centre of the QC patch).

Aside from trying to get the DIPSQCRender object to run and resize multiple QC patches, I also tried using Memo's Quad Warping patch to change the size and position of the mesh renderer, without changing perspective, but I'm not sure that the output will go into the GLSL shader.

Like I said, I'm a total beginner, so I hope the above isn't too much babble and makes sense!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

vade's picture
Re: Resizing QC Output with DIPS

Oh man are you going to be happy soon. Thats all I'm going to say.

kodamapixel's picture
Re: Resizing QC Output with DIPS

You're obviously up to something very cool vade, so I'm looking forward to finding out what that is. In the meantime though, is what I'm trying to do actually possible, or should I just hold tight until you let the cat out of the bag?

vade's picture
Re: Resizing QC Output with DIPS

You might have better luck at the Jitter/Max forum on Cycling 74, but to be honest I have little experience with DIPs, sorry :(

Maybe someone else will step up?

dust's picture
Re: Resizing QC Output with DIPS

to resize use the DlibWindow object

DlibWindow QCRendererWin 640 480

can you rephrase the question regarding multiple qc render objects. i'm not really clear what you are trying to accomplish.

kodamapixel's picture
Re: Resizing QC Output with DIPS

@vade - thanks for the suggestion. I think those people over at the Cycling forums are almost as friendly as the ones here - I'll see what I can find out.

@dust - I'm a bit confused about how much functionality the DlibWindow object has. From my limited experience and what I can see in the code you've posted, you're passing the QC patch and outputting it (and the window size) at 640x480. Is it possible to resize the QC patch within this window? Eg, QCRendererWin is 640x480, but the QC patch being displayed is only 320x240.

This is the crux of what I'm trying to figure out: shrinking the output dimensions of the QC patch within the output window. Whether this happens within the DIPS objects, or in QC itself doesn't really matter (although maybe doing it in QC would look a little cleaner).

What I've attempted in QC is trying to pass the mesh renderer to Memo's Quad Warping GLSL shader, so that I can simply adjust the corners of the quad to both resize and position several mesh renderers in the same window.

Sorry if I'm rambling a bit and getting terminology all mixed up. I definitely appreciate the help!

dust's picture
Re: Resizing QC Output with DIPS

set the dlibwindows dimensions in the dipsqcrender that way they are the same size. remember to convert the window dimensions (pixels) to qc (units). i think a dips window is limited in comparison to a jit window. i have built a few things using dips. im sure there are all kinds of ways but i send data from dipsqcrender to max via udp. im trying to figure out how to go fullscreen with dips

kodamapixel's picture
Re: Resizing QC Output with DIPS

I'm still struggling to change the dimensions of QC in Max/MSP. The DIPSQCRenderer object doesn't seem to respond to dimensions like the DlibWindow does.

This is the Max/MSP patch I'm working with at the moment...

----------begin_max5_patcher----------
1483.3oc0at0ahaDE.9Y3WgkUeLMctZa5acSeoRUZSadnWVEEYBSHtxXSsGT
HY09eu1yLtvtAiOfsGaTj.wDXly7Mm6C74oSbmmtUj657iNexYxjOOcxD0Pk
CLw75ItqB29XbXt5s49X5pUhDo6U5+mTrUpF+VQV95pQS1rJJIVHUeDrYvmR
Sj4QuITigtFYFNZg5ymN+e9dFqZBVmIxKVkPYTZxCYhGkZQjET7wbvX+xmXy
TunXHm62stoajUKb0JrNT93yQIK2ah7l4U9goyH0LS6K.e6lHIbkZS39SYQg
wNeHMdga4+8KSmV9vUsjjeLS9bZaIIpAR1YfzWQPR.Z3.Yh3kh87633O+K2d
2ucyuKRVHxDYNDDFg7QzGVWpodS1q4xv3eMZ4yxhcz0+q7MmOtQtdi7OhRVj
9xA4OAL+IybOHIqlA8PxWWKzXzcdXxR2qbbiixKj96qG3bFSQZM2oT+2Q79m
r+PwtFgttkLhROLiv0wnmhSCONb73JyZFSqMhG.1HiVIxZKY3mn1ilLEpOfn
CV66iO.zoPNWnU0ak6Mp2Ip5nVSHlUZ1vGB1Hcl6Lusfw+L86.EPlHlXl20b
1LtuW+gok4uDUHFjiZLsuOWRCw7HpcP.WuOTORpMlWsDqQyLNQ48gncBcfEp
tPhQI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sXgHY+c0pnEqSKJGxHCN2evyFnhDa7IR
AiOQxa7IRjwmHgGehDcDdxU9iAClLgs2QGHNYWsIe.hD1tmb.jn.qJQb.RDy
pRDjSMK6VBRLNO6JRfhwgra.EDDYxtFbDPgTn1WlvMIS10ni.wO.wttlnPzm
nX6yolN6TBt8B8xfb1gs7YmODNwsJmnP3DkZeN0nLY2XKDPkzQr5YGAT0Jb6
xIBDcbe6pOAIdG0tmcfEowUsuVVj7FehTv3SjXiOQZ1HT8t2O4JdwWl9enVV
dHC
-----------end_max5_patcher-----------

...and QC patches are attached.

I may be on the wrong track with treating the DIPSQCRenderer in the same way as the DlibWindow - does conversion from pixels to units happen within the Max/MSP patch, or the QC patch?

PreviewAttachmentSize
Archive.zip8.97 KB

tmorvant's picture
Re: Resizing QC Output with DIPS

Check the DIPSWindowMixer help. You can pass "scale" "alpha" and "center" Is there a reference document for DiPS? It would be nice to find out all the valid arguments that can be passed to these objects in one place rather than having to discover it via folklore.

I'm trying to render two different QC's as well, and I can do it with the Mixer object, but I am having a number of issues. Is there a resolution limit for the QCRenderer? I can't seem to get any QC comp to render higher than 640 480.

kodamapixel's picture
Re: Resizing QC Output with DIPS

Thanks for the tip! This is definitely heading in the right direction now.

As far as I can tell, the DIPS documentation is pretty sparse: just the 'tutorial' patches that come with the objects.

I might have a solution for the size limit you've got: instead of using a DlibWindow as is shown in the DIPSWindowMixer help, I'm outputting through the DIPSWindow. I don't know if there's a reason they're using the former in the help patch, but here's what I've done (same QC patches that I uploaded above)...

----------begin_max5_patcher----------
2522.3oc4c00aaaCE84jeEBF8w1L9sj1aqsuLfMzt1G1GEEENwpoZy1xSRYM
sE8+9jDoRjSrnnjHugsFnvtR1Q5xit7bO7xKo+xomr37rqSJVD7iAuI3jS9x
ombRyopOwIpiOYwlkWew5kEMesEaRJJVdYxhGK+rxjqKaNOFQXAghn1O38Ya
KKR+bR8GhQmgTmdWdRQx1xkkoYaeWdxEkx6MVT8MBvjn523jlCpNUvaU+Yau
Z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IpMNfJVlXFVZy5uayvBlNCgeLp+ODjVXzsCAYdvHw+G
ChBFc5XPlGHB4.4ZKskIOHDUAu5zQgztQcMoggPi8rggzVhvtM8osCGYRtfg
eiNNjVn0sCwaVPK+aan0oiwaV.K8ADX2sbax5AlJSoJE0p.GeSsuaKQPcxBK
qUh9X0RFuvUs8aZ5gTa2x2aVbCU6v0iz0g4pFNQFWT9TGY8m5wpcU.UAiFoB
PRGIaejqZ9TQGm91Ufr0a9z10E3Da964127WtXc516969Ry8u976iIEYWkeQ
KUR6uDJA2Z.qRJpzWcy8+M2tmz24K8gzUqR11s0tIc0trzskJinGVISso556
XPah.qMcma2gso5E9Cf1zctc8XSgfZSQlfSQ.aSB+yGu9WZDuylH9mMEFZZ+
NLb1jvTah.mMQMvlBIv9ryDe76X3N2l3lXSLPsItI9SBXisDaBNwfkKfYRrE
Nr3T8ZJuC0SO3TDrZULoeGgCqlNS7wgkdBaRnELnljIj3v5KYDM.rL3FXQwv
5HYR+MXokpW6ECRKQf8AGwDeIBrt2TSBoPwviSC8rih.UxKyjmcXfe1EZBNw
AEmnlfSTJ73zf1DvxlLIRGGVIJblo1Db9SbS7m3.mNESRYHmBuMMDW.G13c0
aVxCZSBB71zfRUf8YmvD+IArC0TXRpvDXP4BDTSsI.4LMI1BGVcABiRS.rCQ
fXxTZPgkKH1AlDgEWujvoT41co.eyQyU.pCLVLi6Fi0EOrYX2XqB24EfIT4b
cKmoy8Nx9MDhy8PXQcM88OxhMDry7djK7A41OT2+u8aCTiaD.N1LSheVugCB
oMIL0l.LcVNvjz6+w4zN9eMGA.YvXaCJx.EOV8Qn6dj8aHtv+v.5Y62PhblW
k8sUl67druwF6NOD6arbiJiFX463lPVv8vRfhORQ.bLsgEFKq8vFFq8NfFE1
dDWcjMlGhA8NgMeCbirIrG97FOym2pClaHoP+q7WDb+qLgXFMLv4j61pC95o
+O723KoF
-----------end_max5_patcher-----------

tmorvant's picture
Re: Resizing QC Output with DIPS

yea it appears that I really didn't need that since making it full screen essentially does the same thing. Have you figured out how to get rid of the top bar? Or are you just setting the window position so that it doesn't show?

kodamapixel's picture
Re: Resizing QC Output with DIPS

Just setting the window position so the bar doesn't show seems to be the best solution I can find. I know there's a property that can change the style of the title bar, but not to make it disappear entirely.