GL Tools v1.4

leegrosbauer's picture

Excellent release of GL Tools v1.4! Thanks so very much!

Regarding the example compositions; I suspect there may be a minor issue with the Key "s" to change shade models in the Shade Polygon Mode example composition. For me, it gets hung in Flat Model after the first keying change and I'm unable to revert to Smooth Model. How might I adjust that patch to revert back to Smooth Model?

I'm also not clear how to work the Spline Feedback example. I can get some imagery by adjusting the Power on the Gamma Adjust, but I'm not sure what I'm supposed to be looking for here. The Vignette is also confusing me a bit. Clarifications?

Thanks again! Very nice release!

Comment viewing options

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

cwright's picture
Re: GL Tools v1.4

Are you sure s doesn't revert back? for me it works perfectly (we've had this sample composition around for quite a while -- I don't think smokris or I have touched it in a year or more?)

Spline Feedback is pretty dim, and artistic (it was a screensaver on smokris' laptop long ago) -- on some gpus it doesn't work so well (it didn't do much on my GMA950 for the longest time, might have been tweaked for that though?) Try setting the gamma lower (0.5, for example) to see more.

gtoledo3's picture
Re: GL Tools v1.4

The only issue I've ever had with smooth/facet environment is with SL, in combo with using shadows, where it doesn't want to reset right sometimes (but not all the time).

The vignette on spline feedback smoothes the edges and corners of the viewer window.

cybero's picture
Re: GL Tools v1.4

Regards the shade model - the source index is not resetting to zero, consequently the index did not get set to load in all the source numbers.

Count also looks like it needed resetting to allow for the number of options available in the multiplex banks.

My workaround is set another source entry, replicate source 0 as source 4 and keep pressing away :-)

cwright's picture
Re: GL Tools v1.4

ahh, interesting -- guess it's a 10.6 thing? (cybero, are you on SL?)

if so, please describe this in a bit more detail -- it could be a state restoration bug in 10.6 (I'll try to check it out tonight or tomorrow, but having some idea of what to look for would be helpful)

cybero's picture
Re: GL Tools v1.4

cwright wrote:

Spline Feedback is pretty dim, and artistic (it was a screensaver on smokris' laptop long ago) --

~ actually it's pretty brilliant - makes for a really good Core Image study with the Bayer Dither.

I find that some graphic becomes visible at Gamma 3 and just getting more visible as the setting gets lower, indeed , set too low and the screen is just flooded with white - still not all bits of kit are the same.

gtoledo3's picture
Re: GL Tools v1.4

FWIW, If you put an insert splitter off of a gamma patch, you can make the value go higher than 3, for taming really bright stuff :-)

cybero's picture
Re: GL Tools v1.4

Yes - this was noticed by me on 10.6 not checked it in 10.5 - but the rigmarole is that one tries to connect a keystroke to a Counter then send that to a Conditional and from there through to reset the signal on the aforementioned Counter that sends it data to the JS patch that updates the source index.

If you look at the example utility composition importer I uploaded recently GL Reel [4 in 1] you'll find a pretty simple example of the never to zero situation and the workaround used.

gtoledo3's picture
Re: GL Tools v1.4

It's not with the shade mode, it's with the counter/key/conditional.

leegrosbauer's picture
Re: GL Tools v1.4

Great input folks. Thanks for the clarifications.

I'm modifying the compositions to function as effects in CamTwist so I can stream them cleanly. I tried broadcasting the Kineme3D examples via screen captures, but I wasn't satisfied with the many QC viewer window changes and window relocations that were necessary. Of interest perhaps, I'm reformatting all the GL Tools example compositions that contain trackballs to instead have smokris' Multitouch Navigator patch control the rotations. It's working well, but it's a lot of messing around. heh. I'll get the compositions streamed someplace or other as soon as I can get all the examples worked up properly. Maybe tonight, maybe tomorrow.

Edit: OK! I think I got the Shade Polygon Mode composition working! Thanks cybero! it took dual multiplexers, one string type and one index type, on two of the counters to pull it off, but it seems to be functioning correctly now with your work-around for the never-zero issue. phew! lol. Thanks! :-)

Edit again. Actually, it's better now but still not 100% correct, I don't think. errr ... I'll just make the best of it and await some kind of official fix for this never-zero counter issue on 10.6

cybero's picture
Re: GL Tools v1.4

Actually it [the problem] is with the shade mode, and also the shade models and the shapes shaded according to mode, it affects and limits the full range of choices that are meant to be available.

It is created in part by the count upon the Reset signal. However, unless we are speaking at OS variants 10.6 to 10.5 then I can only say that the failure is only resolvable for me at present by means of adding an additional source onto the Multiplexer and replicating entry 0 to entry 4 and in addition an additional enabling demultiplexer output to enable the Teapot in the Shapes macro patch.

Straight out of the box I get Points & Wireframe mode , nil texture -

Model Smooth by default - sets to to Flat - then goes no further than Flat,

Shapes , I get Teapot by default, Cube, Sphere, Torus, then back to Cube, skipping Teapot entirely.

Is it just 10.6 [again :-)] - Having just checked out my GLReel comp in 10.5 , the answer really is yes , it is an index resetting problem in 10.6 - someone got their maths / code / logic / summat wrong & in addition, just to confuse the issue somewhat further, their is the slight problem of resetting the count to be > 3 all the way through and on 10.5, one's done . I can see now just how much this would have seemed entirely different to one on 10.5.x :-)

gtoledo3's picture
Re: GL Tools v1.4

Ok, here's why the problem isn't with the GL Shade Model patch itself.

Disconnect the counter stuff from the lighting macro.

Just use the macro. Flip back and forth between flat and shade manually. It works (on my system). 10.6. Changing indexes for the models works fine too, manually.

Now, in 10.5, the whole qtz works (and traditionally has), counter setup and all.

So, what is the failure point (?)... in this case, the keyboard/counter/javscript outside of that initial lighting macro, in particular, the loop that doesn't evaluate the same anymore.

cybero's picture
Re: GL Tools v1.4

Well that's pinned that down and then there's the all to easy to miss confusable in the Structure Multiplexer , a Mode mentioned when no other Model is available - only just realised how I'd been getting confused by that. Had already tried this out in 10.5 when trying out the GLReel composition, and yes it does work as expected.

cybero's picture
Re: GL Tools v1.4

What about the Stereo Spheres ? I thought at first it was going to be really flakey as it didn't seem to transport well, but actually it seems pretty robust and offers up a lot of interesting results, although it doesn't like to be too deeply nested within any iterations, it will wrap a whole bundle of Iterative macros.

See attached example.

Camera Stereo Spheres. [Music Visualizer protocol]

This one is quite well stuffed , but still gets 30 fps or thereabouts.

PreviewAttachmentSize
CameraStereoSpheres213.96 KB

pixelnoizz's picture
Re: GL Tools v1.4

what i want for christmas is only a GL spline structure. nothing else:)

cybero's picture
Re: GL Tools v1.4

Here, here :-) - a nice idea.

In the meantime here's some Splines in a structured presentation [ music visualizer protocol] .

PreviewAttachmentSize
StructuredSplines192.72 KB

smokris's picture
Re: GL Tools v1.4

Ah, please don't use the Stereo Environment patch just yet --- it's slightly broken on 10.5, and definitely doesn't work on 10.6. It's marked "private" for a good reason :^).

(Including the GLTools-stereo-spheres.qtz was an oversight.. Sorry about the crushed expectations, hopes and dreams.)

cybero's picture
Re: GL Tools v1.4

Thanks for the heads up - interesting patch though.

markus.helminen's picture
Re: GL Tools v1.4

Good to get the new version of GLtools with the spline working an other new goodies. Thank you verry much! Finally got my weird spline fantasies working. :) I´m still having trouble implementing some screenspace postprocessing stuff with the depth images.. the depth map from readpixel seems to lack something. I think it might be the linearization. If it is that, is it possible for someone to write a CIfilter or maybe get a linearization option in the plugin itself? I think I can make this work in a shader but the filterpatch would be nice too. I have no experience with core image.. yet.. here is a link with some code concerning the z-buffer and linearization + some more good links on the subject. http://www.geeks3d.com/20091216/geexlab-how-to-visualize-the-depth-buffe... There is the new render in image with depth, but it doesnt work properly with my setup. Maybe it is already better with some color correction options changed in the patch?