OpenGL in PHP 286
Neophytus writes "Submitted as an entry into the .geek PHP5 tournament a proof of concept openGL implementation in PHP has been released by Peter 'iridium' Waller. The demonstration (download) shows four items being rendered in realtime by PHP at a not unreasonable 59FPS. The author welcomes feedback with practical uses for this technology."
Update: 06/09 01:10 GMT by T : iridiumz0r, author of this entry, adds a link to this informative page responding to a number of comments in the discussion below.
Running This (Score:5, Informative)
How to get this download to work in Windows:
1. Unzip the contents of the download to C:\php5
2. Open the C:\php5 directory in Windows Explorer
3. Drag and drop the opengl.php file onto the php-win.exe icon
or
2. Open a Command Prompt
3. C:
4. cd \php5
5. php-win.exe opengl.php
It seemed to me that the DLL paths are hard-coded, so that's why it needs to be in that particular directory.
Correct me if I'm wrong, but... (Score:5, Informative)
Re:Practical use (Score:5, Informative)
This is NOT Server-side (Score:5, Informative)
Re:vsync (Score:2, Informative)
Re:Using the right tool for the job (Score:3, Informative)
Re:Perfect application (Score:2, Informative)
You'll probably want to keep looking. As others have mentioned, this only calls Win32 OpenGL API (using some bundled DLLs?), and requires that PHP be run from the command line. While the code may be more portable for being written in PHP (although, as I said, it relies on external libraries written for Win32), it won't run in your browser.
However, you might take a look at Shockwave Flash Remoting [amfphp.org] with PHP. That will run in your browser.
Who's getting the most FPS? (Score:2, Informative)
Re:Perfect application (Score:4, Informative)
awesome (Score:4, Informative)
Re:PHP OpenGL on SourceForge (Score:5, Informative)
This is no big deal (Score:1, Informative)
----------
mobile porn [steamymobile.com]
Not an implementation, but a binding (Score:5, Informative)
A PHP *implementation* of OpenGL would be very impressive, indeed! That would imply that all of the 3D math, texture mapping, shading, rasterization, etc was written in OpenGL. Unfortunately, such an implementation would probably be extremely slow and therefore fairly useless. And it would of course still require an dynamically linked C library for framebuffer access.
So -- this is a cute trick, to be sure, but nothing to write home about. The author of the software has already said as much in an earlier comment.
Re:Running This (Score:3, Informative)
Correction (Score:3, Informative)
Re:Correct me if I'm wrong, but... (Score:3, Informative)
Re:Yet another OpenGL binding (Score:3, Informative)
TimoT
Re:Using the right tool for the job (Score:2, Informative)
b4n