qc

Tossing A Frisbee

dust's picture

so i posted a vertex hit tester a few days ago. it was my intent to build something like this game i'm building in unity 3d for the iPad...

http://pelican.asap.um.maine.edu/~oconnordw/discStream.html

....in qc and the vertex hit tester was my first step. i think all the components are in qc all ready like forces, mouse, track ball etc...

so i decided on going with a frisbee golf type of game instead of a tower defense sort of thing.

was wondering if i could get any feedback as to how intuitive steering the disc is etc...

the first shot is a mid range.... you need to steer the disc into diamond inside the basket to load a new level.....

the second basket is a long range shot...

both shots are make-able....

you aim the disc with your mouse xy and can pump the disc up for extra loft until gravity brings you down.

there are a few basic components. power, hook, range, and loft. all of which are derived from quaternion rotational attributes of the frisbee object.

eventually i will get around to designing 18 levels with a regular golf type of logic. right now its just a hole in one challenge until i get the physics worked out.

Opencv

henryj's picture

Hi guys,

I'm having a problem when i'm running a QC composition. I'm using the CVTools.plugin and placed it in the correct QC Patches folder. When is run my QC composition is giving me errors like described underneath. The plugin is working cause it's making use of some nodes within the plugin like OpenCVBGR2Gray patch. I'm surfing the web for a few hours now and I can't seem to fix it. Has anyone got an idea or a post for me with a solution. I'd tried running QC in 32-bit mode already an moving around the plugins.

these are my specs. MacBook MacBook5,2 Intel Core 2 Duo 2 GHz Mem: 2 GB Currently I'm running SL 10.6.2

these are the errors

(null) : Patch with name "OpenCVFindCornerSubPix" is missing

Macro Patch Cannot create node of class "OpenCVFindCornerSubPix" and identifier "(null)"

(null) : Patch with name "StructureMaker:KinemeNamedStructureMaker" is missing

Macro Patch Cannot create node of class "StructureMaker" and identifier "KinemeNamedStructureMaker"

(null) : Patch with name "StructureMaker:KinemeNamedStructureMaker" is missing

Macro Patch Cannot create node of class "StructureMaker" and identifier "KinemeNamedStructureMaker"

Macro Patch Cannot create connection from ["outputPoints" @ "OpenCVFindCornerSubPix_1"] to ["source_1" @ "Multiplexer_1"]

Macro Patch Cannot create connection from ["outputStructure" @ "StructureMaker_KinemeNamedStructureMaker_1"] to ["Input 1" @ "StructureMaker_KinemeNamedStructureMaker_2"]

Macro Patch Cannot create connection from ["outputPoints" @ "OpenCVGoodFeaturesToTrack_1"] to ["inputPoints" @ "OpenCVFindCornerSubPix_1"]

Macro Patch Cannot create connection from ["outputX" @ "Mouse_1"] to ["Input 1" @ "StructureMaker_KinemeNamedStructureMaker_1"]

Macro Patch Cannot create connection from ["outputButton2" @ "Mouse_1"] to ["inputFindSignal" @ "OpenCVFindCornerSubPix_1"]

Macro Patch Cannot create connection from ["outputImage" @ "OpenCVBGR2Gray_1"] to ["inputImage" @ "OpenCVFindCornerSubPix_1"]

Macro Patch Cannot create connection from ["outputStructure" @ "StructureMaker_KinemeNamedStructureMaker_2"] to ["source_0" @ "Multiplexer_1"]

Macro Patch Cannot create connection from ["outputY" @ "Mouse_1"] to ["Input 2" @ "StructureMaker_KinemeNamedStructureMaker_1"]

(null) State restoration failed on

iPad2QC->OSC Multi-Touch Accelerometer (Composition by dust)

Author: dust
License: MIT
Date: 2010.04.30
Compatibility: 10.6
Categories:
Required plugins:
(none)

here is a patch that sends multi-touch and accelerometer iPad events to quartz composer.

version 2....

port [6666]

i simplified the touch structure. rather than having all touches in one structure. i choose to split them apart.

they are...

/touch/1/ "0" x1 location in pixels "1" y1 location in pixels "2" x1 previos location in pixels "3" y1 previos location in pixels

/touch/2/ "0" x2 location in pixels "1" y2 location in pixels "2" x2 previos location in pixels "3" y2 previos location in pixels

/touch/3/ "0" x3 location in pixels "1" y3 location in pixels "2" x3 previos location in pixels "3" y3 previos location in pixels

/touch/4/ "0" x4 location in pixels "1" y4 location in pixels "2" x4 previos location in pixels "3" y4 previos location in pixels

/touch/5/ "0" x5 location in pixels "1" y5 location in pixels "2" x5 previos location in pixels "3" y5 previos location in pixels

4 tap to bring up UI text input for ip... this can be increased to insure no false hits. enter sets ip.

run mtoscpad.qtz to make sure everything is working.

if you want to visualize the particles on the ipad un-comment all emitters in side the touches moved event.

they look like this. there is a bunch.. //[self addChild: emitter z:0];

ipad osc qc controller

dust's picture

here is an app... i think people might want to use with their ipad. at least i have been making some use with it. its just a simple multi-touch accelerometer osc controller. there doesn't seem to be one available for download yet. so i made one... i'm thinking about going open source with it. i would love to publish it just like it is so i can use it and or download it.

it just sucks that you pay for a developer account you build a bunch of apps for personal use and once your provisioning profile dies a year later you can't run any of the apps that you made and payed to be able to build. so now knowing this i want to deploy my iPad apps so i can use them myself. the problem is that most of my apps are only useful to my projects. anybody have any thoughts on this subject.

http://pelican.asap.um.maine.edu/~oconnordw/vid/padQC.mov

here is an app running on the table.

http://pelican.asap.um.maine.edu/~oconnordw/vid/cardFlip.mov

i have some other ipad apps that work with qc but can't really show at the moment... but if you will be at the mapping festival in geneva next week you can see an early beta of a native ipad vj app i made the other day.

QC Dev OpenCL examples in 10.6.2?

photonal's picture

I've been trying out the developer QC OpenCL examples and a few of them don't seem to work in 10.6.2. (For example, Pages Jiggle and Wind Tunnel)

Can anyone confirm this; Do they only work in 10.6.1 or earlier?

Wind Tunnel crashes (I sent the crash report to Apple):

Process: Quartz Composer [304] Path: /Developer/Applications/Quartz Composer.app/Contents/MacOS/Quartz Composer Identifier: com.apple.QuartzComposer.editor Version: 4.0 (103.1) Build Info: QuartzComposerEditor-1030100~1 Code Type: X86-64 (Native) Parent Process: launchd [103]

Date/Time: 2009-11-19 15:39:11.154 +0100 OS Version: Mac OS X 10.6.2 (10C540) Report Version: 6

Interval Since Last Report: 23062 sec Crashes Since Last Report: 2 Per-App Interval Since Last Report: 3021 sec Per-App Crashes Since Last Report: 1 Anonymous UUID: EDE29307-ACC8-4A6A-9A65-B48E000B793B

Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: 0x000000000000000d, 0x0000000000000000 Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Thread 0 Crashed: Dispatch queue: com.apple.main-thread 0 com.apple.CoreFoundation 0x00007fff888d4730 CFRetain + 112 ............................................................................. 46 ...apple.QuartzComposer.editor 0x0000000100001258 0x100000000 + 4696