From: Michael Brooks Date: 2010-01-14T04:55:22+09:00 Subject: Re: 3D with Ruby (Ogre ?) Hello Marc-antoine: > Michael Brooks wrote: >> I used the the gears.rb as the basis for a OpenGL programmable shader >> (i.e. >> GLSL) version of the gears program. The intro to it and download can be >> found through here: >> >> http://osdir.com/ml/ruby-talk/2009-03/msg00749.html > > The shaders are nice. Is OpenGL able to use shaders ? Or you made it to > use shaders your own way ? OpenGL has had shaders for quite a while: http://en.wikipedia.org/wiki/GLSL http://www.opengl.org/documentation/glsl/ All you need to do is write the shaders and load them into the GPU via OpenGL's GLSL API. OpenGL and Microsoft DirectX/3D have been leapfrogging each other for the past 10 years and the shader capabilities of each are pretty comparable. Because of OpenGLs extension mechanism OpenGL will sometimes get a feature before DirectX/3D but unfortunately the acquiring the Pixel Format / Rendering Context (roughly equivalent to the capability-bits in DirectX/3D) in OpenGL has gotten really ugly because of that. Michael