Box2D plug-in

benoitlahoz's picture

Happy to share these 3 Quartz Composer plug-ins bundles:

  • oz.Box2D (11 patches): a "port" of some of the functions of the Box2D physics library, that let the complex polygons limitation be transparent, amongst other things;
  • oz.Geometry (21 patches): some custom geometric functions.
  • oz.Strings (5 patches): a new version (0.33) of my previously released plug-in, aimed to output easily configured text.

Download at: http://www.benoitlahoz.net (under construction like ever)

PreviewAttachmentSize
Box2D_01.jpg
Box2D_01.jpg576.63 KB

Comment viewing options

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

jersmi's picture
Re: Box2D plug-in

Exciting work!

So far I have tried only box2D with no luck. The included 02_slider.qtz had restoration issues (see below), and it crashed in about 15 seconds (crash report attached).

> (null)
<QCNodeManager | namespace = "com.apple.QuartzComposer" | 1262 nodes>: Patch with name "QCPlugInPatch:QuadPlugIn" is missing
 
> Slider
Cannot create node of class "QCPlugInPatch" and identifier "QuadPlugIn"
 
> Slider
Cannot create connection from ["output" @ "Splitter_2"] to ["inputHeight" @ "PlugInPatch_QuadPlugIn_1"]
 
> Slider
Cannot create connection from ["output" @ "Splitter_4"] to ["inputWidth" @ "PlugInPatch_QuadPlugIn_1"]
 
> Slider
Cannot create connection from ["output" @ "Splitter_1"] to ["inputX" @ "PlugInPatch_QuadPlugIn_1"]
 
> Slider
Cannot create connection from ["outputLines" @ "PlugInPatch_QuadPlugIn_1"] to ["inputVertices" @ "PlugInPatch_OZBox2DBodyWithLineStructurePlugIn_1"]
 
> Slider
Cannot create connection from ["output" @ "Splitter_3"] to ["inputY" @ "PlugInPatch_QuadPlugIn_1"]
 
> Macro Patch
State restoration failed on node "Patch_2" <QCPatch 0x7fc3a0537f40 "Slider" in "Slider">
 
> (null)
<QCNodeManager | namespace = "com.apple.QuartzComposer" | 1262 nodes>: Patch with name "QCPlugInPatch:QuadPlugIn" is missing
 
> Slider
Cannot create node of class "QCPlugInPatch" and identifier "QuadPlugIn"
 
> Slider
Cannot create connection from ["output" @ "Splitter_2"] to ["inputHeight" @ "PlugInPatch_QuadPlugIn_1"]
 
> Slider
Cannot create connection from ["output" @ "Splitter_4"] to ["inputWidth" @ "PlugInPatch_QuadPlugIn_1"]
 
> Slider
Cannot create connection from ["output" @ "Splitter_1"] to ["inputX" @ "PlugInPatch_QuadPlugIn_1"]
 
> Slider
Cannot create connection from ["outputLines" @ "PlugInPatch_QuadPlugIn_1"] to ["inputVertices" @ "PlugInPatch_OZBox2DBodyWithLineStructurePlugIn_1"]
 
> Slider
Cannot create connection from ["output" @ "Splitter_3"] to ["inputY" @ "PlugInPatch_QuadPlugIn_1"]
 
> Macro Patch
State restoration failed on node "Patch_3" <QCPatch 0x7fc3a0569450 "Slider" in "Slider">
 
> (null)
State restoration failed on <QCPatch 0x7fc3a052e240 "Macro Patch" in "(null)">

benoitlahoz's picture
Re: Box2D plug-in

Hi ! Thanks for your feedback.

The provided example use ozGeom plug-in, you can find on my page too. Did you install it ? Or may be did you remove it between your 2 tests ?

jersmi's picture
Re: Box2D plug-in

Ok, yes, I installed the ozGeom plug-in and the 02_slider.qtz is working. Impressive! Problems you probably know about -- crashes with mouse drag, and the emitter seems to not like real time changes for X/Y position. (I think your website mentioned mouse drag issues?) Do you want crash reports or anything? Also, QC just crashed after letting the patch run for about ten minutes.

Trying to remember -- is there any kind of real time camera data that could generate objects for ozBox2D to interact with?

benoitlahoz's picture
Re: Box2D plug-in

About crashes with mouse drag : yes, I'm working on a way to check of the concerned body is existing before destroying the joint (each drag creates and destroy the joint). For the x, y, I didn't have this. Yes, it would be really great to have your crash logs ! Thank you !

:-) For the camera data, I had line structures output from my old OpenCV plugin but I'm reworking it to make it stable. I'm in Vietnam right now and for 3 weeks, so it might take a little time but I'll release it too as the ancient one. :-/

jersmi's picture
Re: Box2D plug-in

Great! Have a great time in Vietnam!