问题标签 [quartz-composer]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
842 浏览

javascript - 石英作曲家 JavaScript

我真的被困住了,所以任何帮助都将不胜感激。蒂亚!

我有一个石英构图,我想在其中显示街景(来自谷歌地图)并能够控制导航(如能够向前推进等)。这意味着我需要一个 JavaScript 并且我不知道如何将 QC 中的 JavaScript 补丁与 Google Maps API 链接起来。

那么如何添加两个字符串,分别代表 Lat 和 Long 并显示 Streetview?

这是来自 Google 的示例 HTML:

我怎么能在 Quartz Composer JavaScript Patch 或任何其他补丁中做到这一点?

非常感谢!

PS:它已经通过使用 CoGe Webkit Plugin for QC 加载页面来部分工作。但我不知道如何通过 QC 控制 HTML 中的 JavaScript。任何其他方式将变量从 QC 发送到 HTML 页面或类似的东西?

0 投票
0 回答
624 浏览

objective-c - CGImage 泄漏,不管我如何 CGRelease

上下文是一个 Quartz Composer 插件,我想在其中从相机帧创建一个 CGImage。这是相关代码

然后

如果我删除 cgImage 创建和释放我没有泄漏。泄漏仅在 Quartz Composer 的预览模式下发生(这不是垃圾收集,这可能意味着什么)。先感谢您

0 投票
2 回答
929 浏览

string - Quartz Composer 中的字符串

我正在尝试在 Quartz Composer 中创建一个具有实时打字机效果的补丁,以与我正在开发的交互式旧打字机一起工作。我找不到在 Quartz Composer 中连接字符串的方法,我需要的是一个元素或补丁,它允许我在字符串的末尾添加一个字符。谢谢!

0 投票
1 回答
421 浏览

macos - 石英作曲家 HLS 视频故障

我的 MacOS 10.7.2 上有一个 Quartz Composer 版本 4.5 (141.5) 和一个 QuickTime Framework 版本 7.6.6。

我想要的只是使用 QC 渲染测试 HLS 视频流。HLS 流只是一个苹果测试流:http ://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8

所以,我创建了一个草图:

我的 QC 草图

(这是一个被流 url 覆盖的 MovieImporter 补丁)

接下来我在 QC Viewer 中看到的只是一个空白屏幕和无限的调试日志:

我还尝试在 MacOS 10.6.8、QC 4.0(103.1) 上启动相同的草图,但没有成功。

什么问题?我哪里错了?

0 投票
5 回答
20322 浏览

xcode - Xcode 4.3 是否包含 Quartz Composer?

我刚刚从 App Store 安装了 Xcode 4.3。当我第一次启动它时,它询问我是否要删除现有的 4.2。

4.3 是否包含 Quartz Composer?它位于哪里?还是我应该说不,并为 QC 保留 4.2?

0 投票
2 回答
1184 浏览

cocoa - Quartz Composer "Binding Controls to Input Ports" in Xcode 4.x

I am trying to follow "Binding Controls to Input Ports" of Quartz Composer Programming Guide.

The document says :

5.Click “Bind to” and then choose Patch Controller in the “Bind to” popup menu.

6.Enter patch in the Controller Key text field.

7.Enter text.value in the Model Key Path text field.

In my project of Xcode (4.2 &) 4.3, the Controller Key text field is disabled. The Model Key Path text field requires an object of QCPatch class, which I don't think I have a clue.

Should I install Xcode 3.x and handle this & convert to 4.x? Any advice ?

0 投票
1 回答
168 浏览

objective-c - 在 QCView 中不显示的行,但在 Quartz Composer Viewer 中显示

我有一个使用 Kineme GL Line 对象绘制线条的 Quartz 组合。我的客户抱怨锯齿效果,所以我用常规 Line 对象替换了所有 Kineme GL Lines。当我在 Quartz Composer 中按“查看”时,我看到了锯齿方面的很多改进,一切看起来都很好。但是,在我的 Obj-C 应用程序中,无论如何,这些线都不会在 QCView 中绘制。为了使这些行能够显示,我是否需要一些东西?

谢谢!

0 投票
1 回答
584 浏览

objective-c - QCView 无法从文件中加载石英成分

我正在通过以下代码从文件中加载 Quartz 组合:

我得到了错误:

(文件存在于某个位置,从 IB 加载文件在 IB 内部工作,但在运行应用程序时不工作)

Mac OS X 狮子 10.7.3 | XCode 4.2 | 石英作曲家 4.5

0 投票
2 回答
264 浏览

quartz-composer - The right way to print a QCView

I have put much time and effort into drawing certain 3d plots and surfaces using a Quartz Composition. Everything looks wonderful in my (Cocoa) application's QCView. However, in order to print, I am taking a snapshot of the QCView to generate an NSImage, and putting that in an NSView for my print options screen. However, lines and colors in the snapshot look horrendously aliased. Is there some other way to either directly print from my QCView, or to bypass/override taking a snapshot so that the NSImage looks as good as what's in my QCView? QCView inherits from NSView, but the built-in print method doesn't seem to work.

Thanks!

0 投票
2 回答
816 浏览

ios5 - iOS 中的 Quartz Composer

我是 iOS 平台的新手。无论如何我可以使用嵌入到我的 iPhone 应用程序中的石英作曲家库吗?例如,我想使用 IMAGE PIXEL 从图像 (UIImage) 的特定像素中获取 RGBA。获取彩色图像像素

或者我可以使用 xcode4 中的现有框架来实现上述场景吗???谢谢