Splitting in GL land?

Sep 16, 2011 at 3:29pm

Splitting in GL land?

Hi there,

I’m looking for a simple way to split an image (say 2048×768) into two images (1024×768) to be rotated independently.
The image is already in GL land and I’d like to stay there, also the subsequent rotation is achieved via a slab.
I’ve searched the forum and found a similar question, the answer was to render the image to texture, then split via jit.scissors and go back to GL; while I’m ok with that I was wondering if it is possible to split while remaining in GL land.

Any input will be of great help

thanks a lot

niccolo

#58902
Sep 16, 2011 at 6:12pm

i would just send the texture to two slabs with the td.rota.jxs shader.
that should work.

#211664
Sep 17, 2011 at 2:20pm

Hi,
I’ve been trying to to something similar, where I draw a scene into a gl.sketch, capture it to texture and than do some slabs, finally it would need to end up on several keystoned videoplanes.

There is something that I don’t seem to understand, if I take the videoplane that I use for my testing with a JPG picture loaded in and draw this (using drawobject VPtest) on the sketch and just enable that I see the whole texture.
when I capture the sketch using @dest_dim 2048 1536 only a part of the texture is displayed. And no matter how I set my rota slab parts aren’t getting captured.

Could anyone explain what I’m doing wrong, I simply can’t seem to get this right? I’ve attached a gridlike picture, so you could see it clearly

Best

Pieter

– Pasted Max Patch, click to expand. –

[attachment=171013,2635]

Attachments:
  1. TextUre2.jpg
#211665
Sep 18, 2011 at 11:15pm

This is how I would do it:

– Pasted Max Patch, click to expand. –

Hope that helps :)

DiGiTaLFX

#211666
Sep 19, 2011 at 6:12pm

Thanks all, I’ve been out of town so I didn’t have the chance to check back here.
I’ll give a shot to your kind suggestions.

Thanks a lot again

nicco

#211667

You must be logged in to reply to this topic.