Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
logiciels:openframeworks:accueil [2015/03/15 18:54] resonance [Shader] |
logiciels:openframeworks:accueil [2018/01/18 06:56] (Version actuelle) chenjianwei [2D et 3D PRIMITIVES] |
||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== OpenFrameworks ====== | + | http:// |
- | OpenFrameworks est une boîte à outil (// | + | http:// |
- | http:// | + | http:// |
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===== 2D et 3D PRIMITIVES | ||
+ | Cercle, carré, rectangle, sphère, cylindre, tore, cone, ... | ||
+ | |||
+ | {{.:primitives.png}} | ||
- | {{vimeo> | ||
===== Ressources ===== | ===== Ressources ===== | ||
- | * Un livre de la communauté (en cours de rédaction, mais déjà bien fourni) : [[https:// | + | * Un livre de la communauté (en cours de rédaction, mais déjà bien fourni) : [[https:// |
+ | / | ||
+ | * Le livre " | ||
* Tous les objets : http:// | * Tous les objets : http:// | ||
* Les tutoriels : http:// | * Les tutoriels : http:// | ||
Ligne 41: | Ligne 246: | ||
* OpenFrameworks est une boîte à outil en C + + avec un langage, sous la forme d'un dossier à télécharger. Pour ouvrir, compiler et exécuter les projets il faut installer un logiciel que l'on nomme environnement de développement intégré (IDE en anglais) comme Code:: | * OpenFrameworks est une boîte à outil en C + + avec un langage, sous la forme d'un dossier à télécharger. Pour ouvrir, compiler et exécuter les projets il faut installer un logiciel que l'on nomme environnement de développement intégré (IDE en anglais) comme Code:: | ||
- | * OpenFrameworks est du pur C + +, Processing est un langage simplifié du Java (mais peut-être utilisé directement dans Java) | + | * OpenFrameworks est du pur C + +, Processing est un langage simplifié du Java (mais peut être utilisé directement dans Java) |
* Internet : plus simple avec Processing | * Internet : plus simple avec Processing | ||
* Beaucoup de 3D : OpenFrameworks (C + +) | * Beaucoup de 3D : OpenFrameworks (C + +) | ||
Ligne 54: | Ligne 259: | ||
- Télécharger [[http:// | - Télécharger [[http:// | ||
- Installer et configurer l' | - Installer et configurer l' | ||
- | - Pour Windows, télécharger aussi [[http:// | + | - Pour Windows, télécharger aussi [[http:// |
+ | - Pour Linux, il y a un dossier avec les scripts nécessaires à l' | ||
+ | - **cd your_oF_directory/ | ||
+ | - **sudo ./ | ||
+ | - **sudo ./ | ||
+ | - if you want to have support for mp3 and some video codecs: **sudo ./ | ||
===== Structure ===== | ===== Structure ===== | ||
* OpenFrameworks est un **dossier** | * OpenFrameworks est un **dossier** | ||
+ | |||
+ | * Un projet, c'est le dossier de votre projet associé aux accès vers toutes les fonctions et outils disponibles dans le Frameworks | ||
+ | {{: | ||
+ | |||
+ | * Trois fichiers pour commencer : main.cpp, ofApp.h, ofApp.cpp | ||
+ | {{: | ||
* Tous vos projets doivent être placés dans le dossier apps/myApps pour respecter la **hiérarchie**, | * Tous vos projets doivent être placés dans le dossier apps/myApps pour respecter la **hiérarchie**, | ||
Ligne 74: | Ligne 290: | ||
* Drawing in opengl is asynchronous, | * Drawing in opengl is asynchronous, | ||
* it’s useful for debugging. If you want to know why your code is running slow, now you can comment out the drawing and see if the visual representation that’s slow or the updating | * it’s useful for debugging. If you want to know why your code is running slow, now you can comment out the drawing and see if the visual representation that’s slow or the updating | ||
+ | |||
Ligne 179: | Ligne 396: | ||
* l' | * l' | ||
- | {{: | + | {{: |
{{: | {{: | ||
Ligne 194: | Ligne 411: | ||
* **GLSL** : With GLSL, you can code short programs, called shaders, which are executed on the GPU. A shading language is a special programming language adapted to easily map on shader programming. It doesn' | * **GLSL** : With GLSL, you can code short programs, called shaders, which are executed on the GPU. A shading language is a special programming language adapted to easily map on shader programming. It doesn' | ||
+ | {{: | ||
+ | |||
+ | {{: | ||
{{youtube> | {{youtube> | ||
Ligne 203: | Ligne 423: | ||
Pour connaître la version OpenGL de votre carte graphique, il existe un exemple dans OpenFrameworks/ | Pour connaître la version OpenGL de votre carte graphique, il existe un exemple dans OpenFrameworks/ | ||
- | {{: | + | {{: |
< | < |