Hoc
A small particle visualization framework. It was first intended to be used with Radiohead's HoC music video dataset.
Install / Use
/learn @philogb/HocREADME
HoC is a small OCaml/OpenGL visualization framework that loads CSV files holding 4D coordinates for each frame, applies custom Camera and
Particle animations to the rendered data and saves each frame in bmp or jpeg formats.
For a quick overview and POC please go to: <http://blog.thejit.org/2008/12/06/using-ocaml-to-visualize-radioheads-hoc-music-video-part-3/>
This project was first conceived as a small visualization framework to operate on Radiohead's House of Cards video data,
as an advanced alternative to other projects that use the processing language for this.
This README file covers the following topics:
1.- Requirements
2.- Generating a video
3.- Tutorials on customizing Camera movement and Particle animations
4.- Documentation
5.- Credits and License
1.- Requirements
- OCaml version 3.10.x (I'm using 3.10.2)
- OpenGL
- ffmpeg
- camlimages library <http://pauillac.inria.fr/camlimages/>
- LablGL library <http://wwwfun.kurims.kyoto-u.ac.jp/soft/lsl/lablgl.html>
2.- Generating a video
- Download Radiohead's CSV animation data from <http://code.google.com/p/radiohead/downloads/list>
- Store all CSV files in the csv directory
- Compile the project by typing:
ocamlc str.cma -I +camlimages ci_core.cma ci_jpeg.cma ci_bmp.cma
-I +lablGL lablglut.cma lablgl.cma vertexType.ml interpolate.ml transition.ml camera.ml
loader.ml particleTrans.ml particle.ml main.ml -o main
- Run the project by typing "./main", you should see that images are generated for each frame in the frames folder
- Merge all images into a video by typing: ffmpeg -f image2 -r 30 -i ./img%d.jpg -sameq -i 1.mp3 ./out.mpeg -pass 2
3.- Tutorials on customizing Camera movement and Particle animations
An overview of the project as well as some quick tutorials can be seen at:
- <http://blog.thejit.org/2008/11/27/using-ocaml-to-visualize-radioheads-hoc-music-video-part-1/>
- <http://blog.thejit.org/2008/12/02/using-ocaml-to-visualize-radioheads-hoc-music-video-part-2/>
- <http://blog.thejit.org/2008/12/06/using-ocaml-to-visualize-radioheads-hoc-music-video-part-3/>
4.- Documentation
The "doc" folder contains the index.html documentation file. You can find there documentation for
each module, class and type used as well as syntax colored and commented code generated with ocamldoc.
5.- Credits and License
This project was created and is currently mantained by Nicolas Garcia Belmonte <philogb@gmail.com>, <http://blog.thejit.org>
This project has an MIT license: <http://www.opensource.org/licenses/mit-license.php>
Related Skills
qqbot-channel
350.1kQQ 频道管理技能。查询频道列表、子频道、成员、发帖、公告、日程等操作。使用 qqbot_channel_api 工具代理 QQ 开放平台 HTTP 接口,自动处理 Token 鉴权。当用户需要查看频道、管理子频道、查询成员、发布帖子/公告/日程时使用。
docs-writer
100.4k`docs-writer` skill instructions As an expert technical writer and editor for the Gemini CLI project, you produce accurate, clear, and consistent documentation. When asked to write, edit, or revie
model-usage
350.1kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
Design
Campus Second-Hand Trading Platform \- General Design Document (v5.0 \- React Architecture \- Complete Final Version)1\. System Overall Design 1.1. Project Overview This project aims t
Security Score
Audited on Aug 13, 2019
