Zoom Displacement Object?

Mar 31, 2008 at 4:12am

Zoom Displacement Object?

Hi. Is there an object that uses a grayscale map to do a zoom displacement? Something similar to jit.repos or jit.plume, but for a zoom effect? Something like white is highest level of zoom, black is no zoom, and gray the range in between?

Thanks.

Adam

#36633
Apr 1, 2008 at 5:06am

not quite. it’s a displacement method using jit.gl.mesh. time for
you to learn openGL, adam!

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 204 348 48 196617 loadbang;
#P newex 168 84 188 196617 jit.gl.handle bork @inherit_transform 1;
#P flonum 335 549 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 270 577 102 196617 jit.op @op * @val 1.;
#P message 462 280 30 196617 open;
#P newex 121 670 146 196617 jit.gl.mesh bork @texture live;
#P newex 122 616 66 196617 jit.pack 5;
#P newex 107 502 114 196617 jit.op @op – @val 0.5;
#P newex 23 466 106 196617 jit.op @op – @val 0.5;
#P newex 171 424 63 196617 jit.unpack 2;
#P newex 202 375 151 196617 jit.gencoord 2 float32 320 240;
#P newex 425 460 142 196617 jit.matrix 1 float32 320 240;
#P newex 425 436 115 196617 jit.dimmap @invert 0 1;
#P newex 425 414 74 196617 jit.uyvy2luma;
#P newex 442 393 229 196617 jit.gl.texture bork @name live @colormode
uyvy;
#P newex 425 368 27 196617 t l l;
#P newex 427 312 181 196617 jit.qt.grab 320 240 @colormode uyvy;
#P message 375 135 70 196617 fullscreen $1;
#P toggle 375 115 15 0;
#P newex 375 92 38 196617 sel 27;
#P newex 375 70 40 196617 key;
#P number 91 41 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P user jit.fpsgui 31 178 60 196617 0;
#P newex 34 269 416 196617 t b b b b b b b b b b b b b b b b b b b;
#P newex 34 245 40 196617 r stuff;
#P toggle 31 47 15 0;
#P newex 128 127 40 196617 s stuff;
#P newex 31 155 198 196617 jit.gl.render bork @erase_color 0. 0. 0. 1;
#P newex 31 98 58 196617 t b b erase;
#P newex 31 73 51 196617 qmetro 1;
#P newex 375 156 274 196617 jit.window bork @floating 1 @depthbuffer 1
@fsmenubar 0;
#P comment 374 549 100 196617 displacement factor;
#P connect 10 0 2 1;
#P connect 2 0 3 0;
#P connect 6 0 2 0;
#P connect 31 0 21 0;
#P connect 8 4 22 0;
#P connect 22 0 23 0;
#P connect 22 0 25 3;
#P connect 22 1 24 0;
#P connect 22 1 25 4;
#P connect 25 0 26 0;
#P connect 30 0 4 0;
#P connect 3 0 4 0;
#P connect 3 2 4 0;
#P connect 4 0 9 0;
#P connect 7 0 8 0;
#P connect 23 0 25 0;
#P connect 3 1 5 0;
#P connect 24 0 25 1;
#P connect 28 0 25 2;
#P connect 21 0 22 0;
#P connect 20 0 28 0;
#P connect 29 0 28 1;
#P connect 11 0 12 0;
#P connect 12 0 13 0;
#P connect 13 0 14 0;
#P connect 14 0 1 0;
#P connect 15 0 16 0;
#P connect 16 0 18 0;
#P connect 18 0 19 0;
#P connect 19 0 20 0;
#P connect 8 18 15 0;
#P connect 27 0 15 0;
#P connect 16 1 17 0;
#P window clipboard copycount 32;

On Mar 31, 2008, at 12:12 AM, Adam Kendall wrote:
>
> Hi. Is there an object that uses a grayscale map to do a zoom
> displacement? Something similar to jit.repos or jit.plume, but for
> a zoom effect? Something like white is highest level of zoom, black
> is no zoom, and gray the range in between?
>
> Thanks.
>
> Adam

#125821
Apr 5, 2008 at 12:20am

If you knew how many hours of my life I put into OpenGL over the past few months, you’d weep both for and with me.

Thanks for the patch. I’ll see how it fits into the larger idea I’m working on…

Adam

#125822

You must be logged in to reply to this topic.