![]() Here is a simple texturing GPU program that shows the differences between OpenGL 3.2 and OpenGL ES 2.0 (differences are in bold): Vertex shader The Raspberry Pi GPU (the VideoCore IV) supports OpenGL ES 2.0 and due to the difference between OpenGL ES and regular OpenGL 3.2 shaders, I put the code samples for the RPi directly in RPi GLSL Hacker (demos/ folder) in the official code sample pack in the opengl_es_20/ folder. I didn’t ported all GLSL Hacker demos to the RPi, I only selected few of them that show common use cases (post processing, Python, particles, texturing, mouse and keyboard management). You can also download the Code Sample Pack from the same page. You can download the latest GLSL Hacker for Raspberry Pi as well as for Windows, OS X and Linux from THIS PAGE. The Raspbverry Pi 2 GPIO 40-pin connector I will discuss more in detail about the GPIO and its programming in upcoming articles. The support of Raspberry Pi GPIO (General Purpose Input Output) has been added and is available in Lua and Python via a dedicated lib ( gh_rpi). ![]() GLSL Hacker renderer has been updated to properly support OpenGL ES 2.0 API. Other plugins we find on Windows/OSX/Linux versions of GLSL Hacker such as PhysX, FBX, FMOD or Leap Motion are not available on Raspberry Pi. GLSL Hacker 0.8.2 for Raspberry Pi comes with the following plugins: So if you want to code a 3D demo or a small game for the Raspberry Pi platform or even play with the GPIO, GLSL Hacker is there! And now, we have an usable version of GLSL Hacker with plugins and input (keyboard + mouse) management. This time, I spent nearly 2 weeks to fully update the Raspberry Pi version of GLSL Hacker. The first version of GLSL Hacker for RPi I released more than one year ago was limited to the core functions: no plugins, no keyboard and no mouse support. Thanks to the new Raspberry Pi 2 board and its powerful quad-core CPU, I could create a full version of GLSL Hacker for Raspbian.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |