将 Toxi 库添加到处理中

发布于 2024-09-30 05:30:17 字数 377 浏览 5 评论 0原文

我正在使用处理和 opengl 进行可视化。我在此网站上看到了一个示例: http:// /blog.blprnt.com/blog/blprnt/just-landed-processing-twitter-metacarta-hidden-data

现在,我想使用 toxi 进行可视化。据我了解,这是一个图书馆。但我不知道如何“设置”。我如何下载它(即使这很令人困惑)以及如何添加它以使处理工作?

(现在,我收到一条错误消息,说未添加毒物。)

谢谢

I'm making a visualization with processing and opengl. I saw an example on this site: http://blog.blprnt.com/blog/blprnt/just-landed-processing-twitter-metacarta-hidden-data.

Now, I want to use toxi for my visualization. I understand that it's a library. But I don't know how to "set it up." How can I download it (even this is confusing) and how can I add it to make processing work?

(Right now, I get an error saying toxi is not added.)

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

撧情箌佬 2024-10-07 05:30:17

1) 从https://bitbucket.org/postspectaulous/有毒libs/downloads/下载最新的有毒库zip文件

2) 将文件解压到处理目录的 /libraries 子目录中

3) 开始处理,库示例可以在菜单 Sketchbook > 下找到。图书馆>毒物库

1) Download the latest toxiclibs zipfile from https://bitbucket.org/postspectacular/toxiclibs/downloads/

2) Unzip the file to the /libraries subdirectory of the processing directory

3) Start Processing and the library examples can be found under menu Sketchbook > Libraries > Toxiclibs

一曲爱恨情仇 2024-10-07 05:30:17
  1. 打开处理。
  2. 转到文件->首选项。
  3. 请注意标记为“Sketchbook 位置:”的字段的值。
  4. 在文件浏览器中打开此路径。
  5. 该文件夹内应该有另一个名为“libraries”的文件夹。提取有毒库并将其复制到此位置。
  6. 重新启动处理,打开 *.pde 草图并单击运行。

这对我有用,但我花了一点时间才意识到“库”文件夹位于我的“素描本”中......其他答案都没有提到。

例如,在有毒库中复制后,我的路径如下所示:

/home/myusername/sketchbook/libraries/toxiclibs-complete-0020
  1. Open Processing.
  2. Go to File->Preferences.
  3. Notice the value of the field labeled "Sketchbook location:".
  4. Open this path in a file browser.
  5. Inside that folder should be another folder called "libraries". Extract the toxiclib library and copy it into this location.
  6. Restart Processing, open the the *.pde sketch and click run.

This worked for me, but it took me a little while to realize that the "libraries" folder was in my "sketchbook"...which none of the other answers mentioned.

e.g. After copying in toxiclib, my path looks like:

/home/myusername/sketchbook/libraries/toxiclibs-complete-0020
殊姿 2024-10-07 05:30:17

@Cerin 的答案对我不起作用。处理需要一个库结构,如此处所述。简而言之,/sketchbookLocation/libraries 中的每个库文件夹都必须有一些文件夹名称:src、examples、library、reference。

@Cerin的第5步需要稍微调整一下。您必须将有毒库 zip 的内容提取到库文件夹中。

例如,在有毒库中复制后,我的路径如下所示:

/home/myusername/sketchbook/libraries/toxiclibscore

..当然,有毒库文件夹中的所有其他文件夹也位于库文件夹中。

诗。最新版本的oticlib位于 github

The answer of @Cerin did not work for me. Processing expects a library structure as described here. In short, every library folder in /sketchbookLocation/libraries has to have some of the folder names: src, examples, library, reference.

Step 5 of @Cerin has to be adjusted a bit. You have to extract the content of the toxiclib library zip into the libraries folder.

e.g. After copying in it toxiclib, my path looks like:

/home/myusername/sketchbook/libraries/toxiclibscore

..and of course all the other folders that are in toxiclibs-complete-0021 are also in the libraries folder.

Ps. most recent version of toxiclib is on github.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文