Beta
×

Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!

OpenGL in PHP

michael posted more than 10 years ago | from the they-said-it-couldn't-be-done dept.

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.

Sorry! There are no comments related to the filter you selected.

PHP OpenGL on SourceForge (5, Interesting)

mdrejhon (203654) | more than 10 years ago | (#9371307)

Very impressive -- A while back I heard about PHPOpenGL [sourceforge.net] .

But he didn't even use this at all! Pretty self contained, even to the gzipped uuencoded DLL file embedded in this PHP script whose sole purpose is to create the window that this PHP demo needs for the 3D graphics.

Re:PHP OpenGL on SourceForge (5, Funny)

abscondment (672321) | more than 10 years ago | (#9371478)

This just in:

Ken Brown of AdTI reports that there's no way this code could have been written in one year. More investigations are planned to see if code was stolen from MINIX.

Re:PHP OpenGL on SourceForge (1)

Rodrin (729362) | more than 10 years ago | (#9371753)

Hah. Thats got to be it! It's stolen from Minix! Lets get together and write a book about this dirty theif. HAH.

Re:PHP OpenGL on SourceForge (5, Informative)

iridiumz0r (711388) | more than 10 years ago | (#9371773)

I'm the author of this thing. I read slashdot quite regularly and I'm very suprised this found it's way here. In my opinion it is not slashdot worthy. It relies on lots of experimental stuff, and is just generally not up to production standard. It was my mess-around one afternoon when I should have been studying. I entered it into the competition because I wanted to do something different. I chose intentionally not to use PHP-GTK for various reasons. I wanted to start out from scratch and see if I can do everything myself. It was not my intention to do this all 'properly' as such.

Running This (4, Informative)

andyrut (300890) | more than 10 years ago | (#9371310)

I'm sure others are thinking, like me, "Huh? PHP in a window, not a server-side script?" It took me a couple of moments to figure out how this works, so I figured this could be of some help to others struggling with it.

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.

Re:Running This (4, Funny)

rat7307 (218353) | more than 10 years ago | (#9371368)

I'm sure others are thinking, like me, "Huh? PHP in a window, not a server-side script?"

PHP-GTK baby.... GTK apps written in php..

Soon php will be used for all kinds of innapropriate uses!!

Viva PHP!

What about (3, Funny)

T-Kir (597145) | more than 10 years ago | (#9371657)

Soon php will be used for all kinds of innapropriate uses!!

For a moment I thought of someone writing a PHP script to dynamically generate Perl scripts for web output... just for no real reason

But then I thought.... Naaaaaa.

;)

P.S. Anything on NeHe [gamedev.net] about this yet? I did a text search of the front page but nada (I haven't been to the site in months).

Re:Running This (5, Funny)

PCM2 (4486) | more than 10 years ago | (#9371671)

Soon php will be used for all kinds of innapropriate uses!!
Like programming, you mean?

OOooooooh, FACE!!

Re:Running This (2, Interesting)

Fweeky (41046) | more than 10 years ago | (#9371718)

Some would say that any use is inappropriate for PHP. Not me, but it's certainly one of the less interesting open source languages about.

For instance, Ruby's web application support has been rapidly gaining ground for quite a while now; fancy state-keeping systems [beta4.com] last seen on LISP; a powerful server framework [webrick.org] now integrated with the standard library; an innovative object-relational mapping library [rubyonrails.org] which makes interfacing with SQL databases childsplay; an interesting new web application framework [rubyonrails.org] which is causing quite a stir; an amazingly easy to set up Wiki server [instiki.org] ; a nifty template library [brain-tokyo.jp] gaining fancy bytecode based acceleration and native-C compilation. Every one of these projects alone is probably more interesting to the average developer than yet-another-OpenGL-module for an interpreted language... isn't it?

Maybe this is why this is News for Nerds, not News for Geeks ;)

Re:Running This (3, Insightful)

rffmna (734875) | more than 10 years ago | (#9371709)

Thanks for instruction.

I get ~113 frames per second...double the "official" number.

I also wonder what the FPS depends more on..CPU, to interpret the PHP, or graphic card, to render textures...hum..

Re:Running This (4, Funny)

jdray (645332) | more than 10 years ago | (#9371787)

Let me get this straight...

1. Read story on Slashdot.
2. Download .zip file to Windows box.
3. Unzip file.
4. Execute unknown code.
5. ????
6. Pray.

Is that about it?

first first (-1, Offtopic)

kidfob (229612) | more than 10 years ago | (#9371314)

finally

Re:first first (-1, Offtopic)

Anonymous Coward | more than 10 years ago | (#9371343)

You fail it!

Taco's mother (-1, Troll)

Anonymous Coward | more than 10 years ago | (#9371322)

is a demon in the sack!

uhhm.... (0, Offtopic)

charlos (775798) | more than 10 years ago | (#9371323)

OpenGL, PHP ... I am in heaven.

Linux? (-1, Offtopic)

Anonymous Coward | more than 10 years ago | (#9371325)

Where is the beef?

my favorite game... (3, Funny)

AtariMike (516594) | more than 10 years ago | (#9371326)

How soon till we see a port of Unreal?

first post (-1, Offtopic)

Anonymous Coward | more than 10 years ago | (#9371331)

first post

Using the right tool for the job (5, Insightful)

Cardinal (311) | more than 10 years ago | (#9371337)

...Is truly a lost art.

Of course, we already knew this. [php.net]

Re:Using the right tool for the job (4, Funny)

chabotc (22496) | more than 10 years ago | (#9371561)

When you have a hammer, everything looks like a nail!

Re:Using the right tool for the job (2, Interesting)

tolan-b (230077) | more than 10 years ago | (#9371568)

php is fast has a superb set of built in functionality and very flexible, and with php5 has pretty good OO support.

Sure you're not just prejudiced? :)

Re:Using the right tool for the job (4, Interesting)

killjoe (766577) | more than 10 years ago | (#9371581)

I am curious, why don't you consider php to be the right tool? It's a turing complete language, it's object oriented, it supports inheritance (and mixin type multiple inheritance), it has exception handling, assertions, a large library and a large community.

So why not php? What makes php a poor choice as opposed to say perl, python, ruby, vb.net or any other scripted language?

Re:Using the right tool for the job (4, Insightful)

Saeed al-Sahaf (665390) | more than 10 years ago | (#9371611)

So why not php?

Because you don't have to be a "guru" a la Perl to right functional programs with it. Same reason people here hate VB.

Re:Using the right tool for the job (0)

Saeed al-Sahaf (665390) | more than 10 years ago | (#9371780)

Yes, yes, checking the spelling is good. "Write".

Re:Using the right tool for the job (1)

Jeff DeMaagd (2015) | more than 10 years ago | (#9371582)

I don't think so. Does gtk easily do 3D? It looks to me that the demo uses 3D.

Re:Using the right tool for the job (2, Informative)

damiam (409504) | more than 10 years ago | (#9371614)

GTK can embed an OpenGL display, so yes, you can use 3D in GTK apps. That wasn't, however, the parent's point. The point was that PHP was designed for server-side scripting and is therefore not the right tool for any GUI job.

Re:Using the right tool for the job (1)

Anonvmous Coward (589068) | more than 10 years ago | (#9371587)

"Using the right tool for the job ... Is truly a lost art."

What? He is creating a tool.

Practical uses for this technology (5, Funny)

vxvxvxvx (745287) | more than 10 years ago | (#9371340)

Opengl in php.. well, let's see, you could umm.. sell it to a PHB who doesn't know any better, or make bets with people at the local pub that it can be done and then whip it out to win the bet.

Re:Practical uses for this technology (5, Funny)

Doomrat (615771) | more than 10 years ago | (#9371353)

Opengl in php.. well, let's see, you could umm.. sell it to a PHB who doesn't know any better, or make bets with people at the local pub that it can be done and then whip it out to win the bet.

You'd have to find a pub full of freaks first, though.

Re:Practical uses for this technology (-1, Troll)

Anonymous Coward | more than 10 years ago | (#9371394)

and then whip it out to win the bet

Do you mean whip your COCK out, or whip your computer out? Because you're sure as hell ain't gonna win many garsh dern bets with your puter.

VIRUS (-1, Troll)

Anonymous Coward | more than 10 years ago | (#9371362)

The OpenGL.zip contains a virus, DO NOT RUN THE EXECUTABLE!

confirmed (-1, Troll)

Anonymous Coward | more than 10 years ago | (#9371387)

Mods, please get this up ASAP, norton just caught it on my system too!

Mod parent down. (0, Offtopic)

biendamon (723952) | more than 10 years ago | (#9371446)

Darn trolls...

Why is it that every Slashdot discussion has to start off with some idiot trying to ruin the fun for everyone else?

There aren't any viruses in these scripts, and I doubt they would make it to the front page on Slashdot without someone actually downloading and running them to see what they are. They work quite nicely (I like the changing spirograph).

Re:Mod parent down. (-1, Flamebait)

Overly Critical Guy (663429) | more than 10 years ago | (#9371511)

There aren't any viruses in these scripts, and I doubt they would make it to the front page on Slashdot without someone actually downloading and running them to see what they are.

There isn't a virus in the file, but the more relevant question is--you actually believe Slashdot has an editorial process?

Re:Mod parent down. (0)

Anonymous Coward | more than 10 years ago | (#9371538)

There aren't any viruses in these scripts, and I doubt they would make it to the front page on Slashdot without someone actually downloading and running them to see what they are.
welcome to /., i hope you have fun

Re:Mod parent down. (4, Funny)

ultramk (470198) | more than 10 years ago | (#9371660)

... and I doubt they would make it to the front page on Slashdot without someone actually downloading and running them to see what they are.

Hi, welcome to Slashdot. You must be new here.

m-

vsync (4, Interesting)

shamilton (619422) | more than 10 years ago | (#9371366)

59 fps? Sounds like vertical sync at 60 hz. Anybody have any real performance figures?

Re:vsync (1)

goatpunch (668594) | more than 10 years ago | (#9371399)

59 fps? Sounds like vertical sync at 60 hz. Anybody have any real performance figures?

Err, slightly worse than 60fps...

Re:vsync (2, Interesting)

atrus (73476) | more than 10 years ago | (#9371403)

Many video cards, when operating in OpenGL, VSync by default, so I agree with you here.

Re:vsync (0)

Anonymous Coward | more than 10 years ago | (#9371426)

On WinXP AthlonXP 2600+ with ATI Radeon 9700pro i get 170fps.

Re:vsync (1)

DeltaSigma (583342) | more than 10 years ago | (#9371438)

No, that looks like a good 60 FPS to me. It drops if you increase the size of the window, and speeds up if you decrease the size of the window.

I'm looking at it right now. A very respectable demonstration of technical prowess, I'll tell you that.

You're much too easily impressed. (0)

Anonymous Coward | more than 10 years ago | (#9371674)

"Technical prowess"??! It's just connecting the dots, not even coloring inside the lines with crayons. If they'd written their own OpenGL IMPLEMENTATION instead of just wrapping pre-existing OpenGL libraries somebody else wrote, or if they actually implemented an interesting and original OpenGL game or application in PHP, then there might be a reason to be impressed, but simply connecting the dots that somebody else created is not impressive, certainly not "technical prowess". Hardly impressive.

Re:You're much too easily impressed. (1)

DeltaSigma (583342) | more than 10 years ago | (#9371763)

Harsh, but deserved. The first thing I did was pull the php file onto the win-php executable as was suggested in a comment above. Once I looked at the source (or more specifically, looked at the names of the libraries) it became quite apparent what was going on here. Give a fledgling programmer a break though, m'kay? So I made a mistake, it's not like slashdot is the source for technical accuracy, or as this story demonstrates, journalistic accuracy.

Re:vsync (2, Informative)

volvoguy (760793) | more than 10 years ago | (#9371490)

If the FPS given in the titlebar of the demo app are accurate, it's doing 160FPS on my modest machine (P4 2.8Ghz, 1Gb RAM, ATI Radeon 7500).

Correct me if I'm wrong, but... (5, Informative)

Anonymous Coward | more than 10 years ago | (#9371372)

This actually isn't an "OpenGL implementation". It just calls OpenGL func in win32 environment.

Re:Correct me if I'm wrong, but... (-1, Flamebait)

Anonymous Coward | more than 10 years ago | (#9371406)

You're wrong. It's an actual opengl implementation in PHP. This has been done before in other non-C languages, but as PHP is a uniquely sucky language, this is obviously much more impressive...

Re:Correct me if I'm wrong, but... (0)

Anonymous Coward | more than 10 years ago | (#9371474)


[lib='opengl32.dll']
void glEnable( int cap ); void glDisable( int cap );
int wglCreateContext( int hdc ); int wglDeleteContext( int hglrc ); int wglMakeCurrent( int hdc, int hglrc );
void glLineWidth( float width ); void glPointSize( float size ); void glBegin( int mode ); void glEnd();

void glClear( int mask ); void glClearColor( float r, float g, float b, float alpha ); void glClearDepth( float amount );

void glColor3f( float r, float g, float b );
void glVertex3f( float x, float y, float z ); void glVertex2f( float x, float y );

void glShadeModel( int flags ); void glDepthFunc( int flags ); void glHint( int flags1, int flags2 );
void glViewport( int x, int y, int w, int h );
void glLoadIdentity(); void glMatrixMode( int mode ); void glPopMatrix(); void glPushMatrix();
void glRotatef( float angle, float x, float y, float z ); void glTranslatef( float x, float y, float z );

[lib='gdi32.dll']
int SwapBuffers( int hdc );

[lib='glu32.dll']
void gluPerspective( double fovy, double aspect, double zNear, double zFar );

No, you're just an idiot.

Re:Correct me if I'm wrong, but... (2, Insightful)

DeltaSigma (583342) | more than 10 years ago | (#9371710)

At least it let me know about the useful ffi [php.net] extension. If it wasn't for this cute demo, I'd have never come across this.

Practical use (-1, Redundant)

Unnngh! (731758) | more than 10 years ago | (#9371373)

err...server side opengl animation, viewable through a web page? Even then, I think the bandwidth limitations would kill anything very cool, and not many people could view it at once on today's processors.

My other thought is that this is a convenient port of opengl to any platforms that currently do not support it.

Re:Practical use (1)

Mr. Sketch (111112) | more than 10 years ago | (#9371404)

Unfortunately, it's not a port, it's windows only using the Win32 API. I can see someone didn't RTFA.

Re:Practical use (4, Informative)

shamilton (619422) | more than 10 years ago | (#9371415)

You are way off. This is pure novelty and has nothing to do with "server side" or "web pages," don't be fooled by the presence of PHP. Also, "port of OpenGL" doesn't make much sense -- OpenGL cannot be ported, just implemented, which this does not do. It's just an OpenGL client.

No (1)

autopr0n (534291) | more than 10 years ago | (#9371435)

Actually, being able to render a scene in open GL and send it to a client over the web would be very useful, not for real time animation, but it could certainly be cool for doing custom 3d graphics for a website. Imagine something like a web based Myst rendered in real time on the server. In this case, though, they are using PHP GTK for client side apps written in PHP.

Re:Practical use (1)

kunudo (773239) | more than 10 years ago | (#9371453)

My other thought is that this is a convenient port of opengl to any platforms that currently do not support it.

It's not a port, it's just calling opengl functions in php. You'd have to vnc to a windows box or something to view this on a platform that doesn't support openGL. What platform doesn't support opngl and supports php though? Maybe there are some..?

Just a wrapper (3, Insightful)

Theatetus (521747) | more than 10 years ago | (#9371570)

Well, it's not a port or an implementation; it's a wrapper to a DLL. That's the fun of dynamically loaded libraries: you can call opengl, gtk, qt, COM, CORBA, $WHATEVER_YOU_WANT from $WHATEVER_LANGUAGE_YOU_WANT as long as you take the time and effort to write a wrapper label, which this guy did, and he wasn't the first [sourceforge.net] .

Do not be fooled by this (4, Funny)

Anonymous Coward | more than 10 years ago | (#9371377)

cheap implementation. JBoss have a far superior product and this does not even come close to the technical excellence that is JBoss. I do not work for JBoss.

Bah. As usual, Lisp did this years ago. (-1, Offtopic)

Anonymous Coward | more than 10 years ago | (#9371384)

What's worse than a smug lisp asshole? A smug lisp asshole who is right. And they're always right, dammit.

GLOS [sourceforge.net] .

Re:Bah. As usual, Lisp did this years ago. (1)

Jhawkeye83 (615484) | more than 10 years ago | (#9371526)

What does that have to do with anything?

Re:Bah. As usual, Lisp did this years ago. (0)

Anonymous Coward | more than 10 years ago | (#9371530)


What's worse than a smug lisp asshole?

One that can't correctly spell 19 words in a row?

Hrm.. (5, Funny)

Anonymous Coward | more than 10 years ago | (#9371390)

Maybe I'll just start using my kitchen sink as a bathtub just because I can.

Re:Hrm.. (0)

Anonymous Coward | more than 10 years ago | (#9371569)

You fit inside your kitchen sink?

Re:Hrm.. (1)

shfted! (600189) | more than 10 years ago | (#9371687)

The Washing Machine is more fun! Shhhh... don't tell anyone.

Re:Hrm.. (1)

prockcore (543967) | more than 10 years ago | (#9371752)

Maybe I'll just start using my kitchen sink as a bathtub just because I can.

Wait till you have kids.

Actually faster FPS (3, Interesting)

Wallslide (544078) | more than 10 years ago | (#9371396)

I have a 3ghz P4, Radeon 9700 Pro, and 1gb of RAM, and I get about 180FPS constant

Re:Actually faster FPS (0)

Anonymous Coward | more than 10 years ago | (#9371432)

Well aren't you special!!! For the record, this story isn't about a contest to see who can get the fastest FPS scores, it's about how someone actually used PHP to implement an OpenGL demo. The FPS was just quoted to allay doubts that it would be slow because it's PHP (a scripted language). Now go back to your benchmarking websites.

Rendering 3D graphs of a slashdotting (4, Interesting)

mhesseltine (541806) | more than 10 years ago | (#9371400)

While my subject is half-joking, it would be cool to be able to have a running traffic chart generated by a PHP script that you could use to monitor a particular server.

Maybe tie this in with the 3D portscanning/IDS system mentioned a few days ago [slashdot.org] and make it a remote application?

Re:Rendering 3D graphs of a slashdotting (0)

Anonymous Coward | more than 10 years ago | (#9371596)

You realize, of course, that this usage (running traffic graph from a script) has been available in Perl for something like 5 years, right?

Re:Rendering 3D graphs of a slashdotting (1)

ElForesto (763160) | more than 10 years ago | (#9371627)

I think that's probably the most appropriate application. I hate having to download different graphing libraries for apps written in PHP, and standardizing on OpenGL seems like a good idea to me.

your mileage WILL vary (1, Interesting)

haute_sauce (745863) | more than 10 years ago | (#9371417)

When I ran it on my laptop, I was getting an average of 120 FPS. And while I respect the effort and appreciate the use of OpenGL, I cant see this killing Flash in the near future (or in any other parallel reality). Server-side scripts should stay just that, IMHO.

Perfect application (5, Interesting)

Capt'n Hector (650760) | more than 10 years ago | (#9371425)

I've joined a group at LBNL (berkeley lab) that could use this. They have a database of molecular data, and they need a way to visualize it using a web interface.

Re:Perfect application (2, Informative)

timothyf (615594) | more than 10 years ago | (#9371632)

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.

Re:Perfect application (0)

Anonymous Coward | more than 10 years ago | (#9371634)

WTF are you talking about?

This doesn't run in a client's web page. PHP runs on the server.

This is no different than using OpenGL in Perl or Python.

Re:Perfect application (1)

psocccer (105399) | more than 10 years ago | (#9371639)

That's not how it works, you don't run a remote 3d interface, you write opengl apps using the php language. It appears to be just a language binding, it has nothing to do with servers or websites. All you get here is the the constructs the php language give you (dynamic typing, etc) with a way to create a local opengl app. Don't think flash, think more like XUL or Visual Basic (both of which require a runtime), it could be delivered and run over the web but not without a lot of work and already having the runtime locally on your machine.

Re:Perfect application (1)

damiam (409504) | more than 10 years ago | (#9371665)

RTFA. This has nothing to do with the web. This is just a wrapper around a .dll that allows PHP programs to access the video card and use OpenGL on the local machine. It's Windows-only and the API probably sucks.

Python and Perl also have (much more mature) OpenGL support. I doubt they would fit your needs either (OpenGL is for real-time local graphics, not networked visualization), but they'd almost certainly be better than this hack.

Re:Perfect application (1)

Bronz (429622) | more than 10 years ago | (#9371676)

While this is cool, it isn't any more "web" than doing opengl in C++.

Re:Perfect application (3, Informative)

MagPulse (316) | more than 10 years ago | (#9371732)

You probably want a Java3D applet, which can use OpenGL or Direct3D. You can access your database from it using JDBC or just grab a flat file from a URL, and then visualize it however you want.

Re:Perfect application (1)

Turmio (29215) | more than 10 years ago | (#9371750)

Uh no. This is a client side application, OpenGL bindings for PHP. You can't use it with a web server so that it renders some polygons into client's browser window. Sheesh.

PHP Simple DirectMedia Layer Extension (3, Interesting)

Anonymous Coward | more than 10 years ago | (#9371440)

You'd be surpised what get's prototyped in PHP e.g. http://sourceforge.net/projects/phpsdl/ - "PHP SDL module is a wrapper/binding of Simple DirectMedia Layer for PHP. The goal of this project is to allow rapid prototyping of multimedia applications using PHP."

Usually doesn't get beyond the prototype though.

The animation can't be interactive. (-1)

GPLDAN (732269) | more than 10 years ago | (#9371481)

It's neat, but I THINK is is ONLY competition for Flash. Not for .NET or Java. Anything that can be downloaded, can't open a socket back. I don't know how to make PHP do that, at least. It's server side.

Could somebody who knows WTF they are doing tell me if it's possible without using an applet to get this to open a socket back?

Re:The animation can't be interactive. (1)

gl4ss (559668) | more than 10 years ago | (#9371762)

huh, sorry but what the hell are you talking?

it(the story) is a program you run locally, it's not a competition to anything web related.

Two words... (4, Funny)

tickticker (549972) | more than 10 years ago | (#9371483)

...better pr0n

--
This sig doesn't do windows

This is NOT Server-side (5, Informative)

cbrocious (764766) | more than 10 years ago | (#9371489)

Just from reading a few comments, I see people still believe PHP is only server-side. This is all client-side. No server is neccesary. This is just like php-gtk, and the old php_opengl implimentation.

Neat, Yet Misused (0, Redundant)

mfh (56) | more than 10 years ago | (#9371525)

I'm sorry but I have to reject the idea of running openGL with PHP. The concept makes about as much sense as using Flash intros.

However I will add that there is a neato factor to all this, but it only goes so far. It's just silly to allow the unwashed masses access to this kind of technology because it's going to end up like Flash anims, and further plague our internet with CRAP.

Re:Neat, Yet Misused (0)

Anonymous Coward | more than 10 years ago | (#9371658)

This can't run on the client's machine.

PHP runs on the server. Just like generated web pages. Mozilla/IE don't have a PHP interpreter built in. Duh.

This isn't anything like Flash. This is like using OpenGL from Perl or Python.

Re:Neat, Yet Misused (0, Flamebait)

Saeed al-Sahaf (665390) | more than 10 years ago | (#9371759)

It's just silly to allow the unwashed masses access to this kind of technology because...blaw, blaw, blaw...

Typical elitist crap of the type spewed endlessly here at Slashdot. Unwashed masses? Who the fuck are YOU?

How about a new set off 'On Demand' products? (4, Interesting)

randomErr (172078) | more than 10 years ago | (#9371527)

Here's a couple of ideas:
- GPS terrain mapping: stream a live map in real time with low bandwidth
- Shrek Chat Live!: Have hires avatars render while you speak. Kinda like that Microsoft chat but with good chat buddies.
- Quantum Encryption: Have a whole 3d movie but just use three texture map hidden in the movie are your keys.

Feedback (2, Funny)

Anonymous Coward | more than 10 years ago | (#9371536)

The author welcomes feedback with practical uses for this technology.

Because he couldn't think of any.

*ducks*

And I say, (3, Funny)

consumer (9588) | more than 10 years ago | (#9371547)

welcome to the party [cpan.org] , PHP.

Purpose (1)

Nicholas Evans (731773) | more than 10 years ago | (#9371555)

As I read the discussion, I notice plenty of people missing the point of this. So, to remind you all, it's for a contest. And from the looks of it (His entry making /. and all...), he's about to win the contest too. Just a cheap party trick, but it gets you free stuff.

OpenGL demos-oh no... NO!!! This can only mean... (1)

Richard_L_James (714854) | more than 10 years ago | (#9371588)

....that damn 3D-studio duck will be returning to our screens within days.... Grrrrr! Please no.... it can't be allowed to happen my duck nightmares have been reoccuring ever since I first saw that duck a few times in the mid 90's.... quack quack.... Noooooooooooooo

Whoop de doo. Python's had OpenGL for years. (-1, Troll)

SimHacker (180785) | more than 10 years ago | (#9371592)

What's everybody so excited about? The only reason OpenGL in PHP raises any eyebrows, is because PHP is an anemic toy language for amateurs and script kiddies, not a real general purpose programming language for professionals, like Python.

Python has had OpenGL support for ages, and it also has a wide range of user interface toolkits, many of which been integrated with OpenGL.

I mean, come on: you can program OpenGL in Visual Basic [pacific.net.hk] . What's so impressive about finally being able to do the same thing in PHP? I'm not impressed that it's taken PHP so long to partially catch up with other toy languages.

-Don

Very Cool (1, Interesting)

Agret (752467) | more than 10 years ago | (#9371640)

I suppose if we did some code hacking we could get it to render the OpenGL scene and take a screenshot then save the screenshot as a file. From then on everyone could be sent that screenshot off the page. Sites with Half-Life and Quake2 maps wouldn't have to manually take the screenshots. PHP would be able to do it all for them (if they got a good camera location anyway :P)

Re:Very Cool (0)

Anonymous Coward | more than 10 years ago | (#9371713)

What?

The spirograph is definitely the coolest (2, Insightful)

caryw (131578) | more than 10 years ago | (#9371654)

So why not have 5 of them? [patriot.net]

Here's the slightly altered code [patriot.net] . (right click, save)

- Cary

Best use... (1)

rffmna (734875) | more than 10 years ago | (#9371664)

porn in php. woot!

practical uses for this technology (0)

Anonymous Coward | more than 10 years ago | (#9371688)

One word: p0rn

uh, you read that wrong (4, Funny)

theantix (466036) | more than 10 years ago | (#9371704)

from the they-said-it-couldn't-be-done dept.

No, that was the "from the they-said-it-shouldn't-be-done dept." It's down the hall to the right, and be sure to knock loudly before entering.

Who's getting the most FPS? (2, Informative)

asherman (593180) | more than 10 years ago | (#9371723)

On my 1.4ghz Pentium M/Radeon 9000 laptop i'm getting 230-240 fps on the fastest spirograph.

Cant wait till ads rely on my processor even more! (3, Funny)

Moonpie Madness (764217) | more than 10 years ago | (#9371728)

think about it, im surfing the web, and some stupid ad comes up and demands my processor and video card take time away from whatever I purchased them to do... arrgh... unless I want to disable all the latest plugins or something, and that's a hassle to my lazy moonpie pudged ass

awesome (4, Informative)

vmircea (730382) | more than 10 years ago | (#9371747)

This is a very cool thing heh.. but it isn't to be unexpected, as phpopengl [sourceforge.net] was already made, but this new one looks great as well. But who knows what other things will come out... Look at all of these things that php can do here [php.net] ,there are a bunch of interesting and very useful mods, and more come out all the time. Also, take a look at that link, it gives you a good idea of what php can do (although there is much more than what is on that page).

ill give you a practical use for it, (0)

Anonymous Coward | more than 10 years ago | (#9371760)

Duke Nukem Forever online!
Load More Comments
Slashdot Login

Need an Account?

Forgot your password?