KNM. GL Polygon Mode / Square mode

Hi, it would be really handy if the Kineme GL Polygon mode had a "Square dots" mode extra - a nice addition to the already present rounded dots mode. "Textured squares" would be overkill. thankss

cwright's picture
point?

do you mean GL Point? GL Polygon is any quadrilateral shape you want... :)

As a workaround, you can texture GL Points with a cropped constant color image (8x8 will do), and they'll become square.

franz's picture
no, polymode

i meant the "Kineme GL Polygon Mode" macro that renders any of its 3D objects contained in sub-patches into: 1 Textured polygons 2 Wireframe (with stipple pattern) 3 Points (rounded dots) with front and back facing options

i'm asking for 4 Square

i would like to be able to render each vertex of some arbitrary mesh (multiple ones morphed via KnM object blender in this specific project) into squares (and not dots as presently).

but maybe i don't have the latest version, i'll double check. GL points won't do.

cwright's picture
ahh, ok

Ok, that makes sense.. must have misread it :)

Anyway, the latest beta might have controls for smoothing points into circles, but I'm not sure. It's actually card and driver dependent if you get smooth points at all (on Intel X3100's, they're never circles, for example).

If the latest beta doesn't do this for you, let me know and I'll do some tweaks to get this working for you (antialiasing should be controllable on each primitive, etc).

chiara's picture
Re: ahh, ok

Where can I donwload the p. glPolygonMode for lion (10.7)? I try with: GLTools.plugin but won't appear into the library in Q.C. even if it'd be compatible also with osx lion. thanks, Chiara

gtoledo3's picture
Re: ahh, ok

Did you get a prompt to authenticate with your password? That seems to be necessary, but I haven't looked since the lion initial release.

cybero's picture
Re: ahh, ok

If installed to the Users Quartz Composer Patches folder, no such authentication required any longer in Lion . Did used to be the case during the NDA testing period. So was a long string of Macro>Macro>Macro, etc ad infinitum within RIIs especially :-) - not very useful information in QC for a while in the editor window as one drilled down into one's compositions.

Thankfully, that's gone too.

I think that QC 4.5 in 10.7.2 is really a great improvement in many terms compared with QC 4.0.

Just wish the Movie Importer and the video input patch would work and that input port orders were really sensible as per original design intentions.

cybero's picture
Re: ahh, ok

Download GL Tools plugin from http://kineme.net/release/GLTools/16

Install to

/Users/[you]/Library/Graphics/Quartz Composer Patches/

(Create the folder if it doesn't already exist.)

GL Polygon Mode should be in your Patch Library, try using the Patch Library's drop down menu to select Kineme GL and just scroll to find the seemingly errant patch, or enter polygon mode in the Patch Library search bar.

Hope that helps you out.

gtoledo3's picture
Re: ahh, ok

There's always that stop/restart qc thing as well :-) they won't appear until after restart of the app.

chiara's picture
Re: ahh, ok

yes, i know ;-) but i still can't see it under the library in q.c. very strange!

PreviewAttachmentSize
Schermata 10-2455861 alle 14.53.37.png
Schermata 10-2455861 alle 14.53.37.png141.86 KB

chiara's picture
Re: ahh, ok

... but, glPolygonMode works 64 b. also? Someone has the xcode p.? If yes, could you pass it to me? I'm re-editing and updating many patches that no longer work with lion. thx.

gtoledo3's picture
Re: KNM. GL Polygon Mode / Square mode

Your Finder has also lost association with the plugin icon...that's sort of weird. I had an install that did that for some reason (SL), and it was problematic.

Are you saying that you're rebuilding "qtz's" to work in Lion, or actually trying to recompile plugins? AFAIK, there is nothing in the GL Tools project that would keep it from working in Lion, but maybe it's machine/install specific issue.

There's an older version of GL Tools code around from when Leopard was the OS, but it's not current.

chiara's picture
Re: KNM. GL Polygon Mode / Square mode

recompiling plugins (updating and bilding again at 64 bit through xcode) as i've done for the video input v002, and others like matrixtoparam mqo, etc. I've also a big problem with the kineme core, if i install it, I can't no more launch q.c. because crashes. awwwww! Geo, so I can't use the GL Tools?! My issue... is, i would obtain a marble effect! I'm using the video input (and some other patches) for some figures I would cover with some kind of marble e. don't know how is the best way to do... thx

chiara's picture
Re: KNM. GL Polygon Mode / Square mode

i've seen also mappit http://www.communetohumanity.com/#1565327/How-To-with-Quartz-Composer, but if i can't have the plugins, doesn't makes sense...

gtoledo3's picture
Re: KNM. GL Polygon Mode / Square mode

I feel like something odd is going on with your install, or you may be needlessly trying to workaround stuff, because stuff like v002 is already 64/32 bit compatible.

What you want to do is something like is shown in the attached picture.

You likely wish to set 10.5 as your base SDK, if it's supposed to be able to open in Leopard. Basically, if you use anything that's a 10.6 framework, then 10.6 must be your base, and the same with 10.7. You can't use a 10.7 framework, set 10.5 as a base, and have things be happy.

If you're using frameworks that are ok working in 32 and 64 bit, you should probably choose "Standard (32/64 bit Intel). That said, you can actually have stuff that "doesn't work" correctly in 64bit, and nothing in the compiler is necessarily going to flag anything in your code to let you know.

For Valid Architectures, you can choose i386, and x86_64... and if you wish, ppc. The others are really unneeded, as is PPC at this point for the most part. I didn't delete them because it's not hurting anything.

The things like ARToolkit, the MQO loader, etc., came out when Leopard was the OS, and QC was a 32 bit app only. So, these plugins were compiled for 32 bit out of the box.

I'd advice you to do the 32/64 bit builds, because it will really come in handy if you need to boot QC 32 bit to do any bug workarounds; I'm more convinced with QC's solidity in 32 bit mode, but I haven't done a ton of work in Lion yet. In SL, I feel like 32 bit mode always caused less troubles.

PreviewAttachmentSize
BuildSettings-QC.jpg
BuildSettings-QC.jpg439.05 KB

chiara's picture
Re: KNM. GL Polygon Mode / Square mode

yes, it's what i've done in xcode and i've solved for the v002, matrixtoparam and few others i needed. Anyway i've also saved the image you've attached with the xcode parameters. But for the gl tools i can't see the solution... this is why i've ask to you if you have the xcode p. of the gl tools plugin. thanks.

ps. i've also wrote to you an email through your g+ :-)

gtoledo3's picture
Re: KNM. GL Polygon Mode / Square mode

Do you mean "marble" like marble stone? There are really some great resources on that on the net, and most of it revolves around generating noise, or perlin noise texture, usually using GLSL shaders. I think Lighthouse3D might have an article.

Here's a marble texture GLSL from apple, edited a little bit to work in QC. Since it's basically an Apple example, you should be able to use it willy nilly.

PreviewAttachmentSize
marble shader GLSL.qtz9.25 KB

chiara's picture
Re: KNM. GL Polygon Mode / Square mode

No, I mean like "Marmo bianco di carrara" (see the image i've attached http://turbulence.org/blog/2011/05/07/the-virtual-prigione-iphone-app/). Don't like the marble GLSL from apple, i don't like any results I figure out until now :-(

PreviewAttachmentSize
marmo_bianco_di_carrara.jpg
marmo_bianco_di_carrara.jpg131.13 KB

chiara's picture
Re: KNM. GL Polygon Mode / Square mode

I've seen also mappit (of franz), but works with a digital projectors and surfaces. Also madmapper is very cool and works with qc! but don't need now, not for the simple texture (complicate effect:-) i'd make to connect to the video input in q.c.

chiara's picture
Re: KNM. GL Polygon Mode / Square mode

I've seen also mappit (of franz), but works with a digital projectors and surfaces. Also madmapper is very cool and works with qc! but don't need now, not for the simple texture (complicate effect:-) i'd make to connect to the video input in q.c.