Innovation ?

Je suis fier de pouvoir répondre rapidement à votre difficile question : je ne sais pas. — Mark Twain

Pro-G

Accélérateur d’Innovation

Processing WordPress plugin.

14 avril 2008 par Philippe Guglielmetti

This addin enables integration of Processing applets in a Wordpress website/blog.

Installation and usage:

  1. Download wp-processing (127) – 1.46 KB , unzip and and upload the full wp-processing folder to your server it in folder wp-content/plugins
  2. Activate the “Processing” plugin in WordPress admin console
  3. Copy your Processing content on sur votre serveur in a folder named /processing, preserving the file structure used by Processing’s IDE. While looking for application “AppName”, the plugin will search for file “/processing/AppName/applet/AppName.jar”
  4. Insert a Processing applet in a page or article by using the following syntax : [ processing=AppName ]

History:

  • 2008/04/13 0.1 alpha

ToDo / A Faire:

  • paramètres pour taille et path

Dans graphisme, programmation, web 2.0 | Pas de commentaire »

GLua library.

21 mars 2008 par Philippe Guglielmetti

GLua is an open source library which provides LUA programmers with classes and functions that mimic those available in GLSL, the OpenGL Shading Language.

GLua was especially designed as a base library for the Demoniak3D real-time engine, as it provides a consistent framework with GLSL shaders.
Lire la suite »

Dans 3D, programmation | Comments Off

GLua library

20 mars 2008 par Philippe Guglielmetti

Contents:

  • vec3.lua : 3D vectors and arithmetic
  • mat3.lua : 3D matrix and arithmetic
  • vec4.lua : 4D vectors and arithmetic
  • glsl.lua : generic functions following glsl prototypes as defined in book “OpenGL Shading Language” by Randi J. Rost
  • test.X.lua : unit test of module X

Usage & Samples:

Usage of the classes and functions is pretty straightforward.

Check the test.X.lua modules for more details or examples

Download:

GLua is available on http://luaforge.net/projects/glua/ under LGPL licence.

Implementation details:

  • the classes are based on class.lua, described on http://lua-users.org/wiki/SimpleLuaClasses
  • glsl.lua offers generic function that work on LUA numbers and tables, and therefore all vector / matrix classes. It makes extensive use of functional programming to achieve this:
    • the “apply” function is defined as follows:
      --- applies a function to a table of parameters
      -- @param f : function to apply to each element in v
      -- @param v : (vector of) parameter(s) to f function
      -- @return : (vector of) result(s) of f(v)
      function apply(f,v)
      if type(v)=="number" then return f(v) end
      if type(v)=="table" then
      local res={}
      for i,x in ipairs(v) do res[i]=f(x) end
      return res
      end
      error("apply "..f.."("..type(v)..") not implemented")
      end
    • then, functions can easily be defined to support numbers, vectors, or matrices:
      function sin(rad)
      return apply(math.sin,rad)
      end
  • dot product is implemented in 2 different ways :
    • through the “power” ^ operator in classes
    • as a generic dot(p1,p2) function in glsl.lua

Dans 3D, programmation | Pas de commentaire »

LabView

5 mars 2008 par Philippe Guglielmetti

New post in english.

Dans commande, instrumentation, programmation, simulation, temps réel | Pas de commentaire »

DicoLib

14 septembre 2005 par Philippe Guglielmetti

New post in english.

Dans programmation | Pas de commentaire »