9 Replies - 1815 Views - Last Post: 26 September 2010 - 06:05 PM

Poll: Php With 3D capabilities (18 member(s) have cast votes)

If Php could be made into a 3D browser engine Would you use it?

  1. Yes (5 votes [27.78%] - View)

    Percentage of vote: 27.78%

  2. No (6 votes [33.33%] - View)

    Percentage of vote: 33.33%

  3. Maybe (3 votes [16.67%] - View)

    Percentage of vote: 16.67%

  4. Only for 3D content (1 votes [5.56%] - View)

    Percentage of vote: 5.56%

  5. Wouldnt want to (3 votes [16.67%] - View)

    Percentage of vote: 16.67%

Vote Guests cannot vote

#1 aaron1178  Icon User is offline

  • Dovakiin, Dragonborn
  • member icon

Reputation: 99
  • View blog
  • Posts: 1,178
  • Joined: 22-October 08

Php with 3D Capabilities

Posted 26 August 2010 - 04:48 AM

Hey, i was just wondering, Php is an interpreter right? made from the Zend Engine using C. Well what if someone could make a Php extension that allowed php to render 3D content. Like for example "Rune Scape". If it turned out to be a success, would you use it and make 3D content.
Is This A Good Question/Topic? 0
  • +

Replies To: Php with 3D Capabilities

#2 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 9042
  • View blog
  • Posts: 33,544
  • Joined: 27-December 08

Re: Php with 3D Capabilities

Posted 26 August 2010 - 07:20 AM

Moved to PHP Programmers.

Probably not. PHP isn't designed to be interactive only dynamic, so it seems like a waste to use 3D graphics with it. Something like Java or C++ would seem like better tools in my opinion.
Was This Post Helpful? 0
  • +
  • -

#3 baavgai  Icon User is online

  • Dreaming Coder
  • member icon

Reputation: 4891
  • View blog
  • Posts: 11,286
  • Joined: 16-October 07

Re: Php with 3D Capabilities

Posted 26 August 2010 - 09:39 AM

Whenever I see things like GTK for PHP, it makes me sad.

I like PHP. It's good at what it does. Pushing it to do something completely different is a sign of programmer inflexibility. Choosing the right tool for the job is a sign of competence; using a screwdriver for a chisel is not.
Was This Post Helpful? 3
  • +
  • -

#4 Tom9729  Icon User is offline

  • Segmentation fault
  • member icon

Reputation: 178
  • View blog
  • Posts: 2,636
  • Joined: 30-December 07

Re: Php with 3D Capabilities

Posted 26 August 2010 - 10:06 AM

baavgai is going to hate me for this but: http://phpopengl.sourceforge.net/

Also http://php.net/manua.../ref.openal.php and http://sourceforge.n...ojects/phpsdl/.

On a serious note aaron1178 what you are talking about is possible with Javascript and WebGL. :)
Was This Post Helpful? 0
  • +
  • -

#5 grimpirate  Icon User is offline

  • Pirate King
  • member icon

Reputation: 132
  • View blog
  • Posts: 674
  • Joined: 03-August 06

Re: Php with 3D Capabilities

Posted 26 August 2010 - 11:36 AM

I uploaded a snippet of code using PHP and GD to show wireframe renderings of 3D objects.
Was This Post Helpful? 0
  • +
  • -

#6 mahcuz  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 143
  • View blog
  • Posts: 213
  • Joined: 03-June 10

Re: Php with 3D Capabilities

Posted 28 August 2010 - 01:07 PM

View Postbaavgai, on 26 August 2010 - 03:39 PM, said:

Whenever I see things like GTK for PHP, it makes me sad.

I like PHP. It's good at what it does. Pushing it to do something completely different is a sign of programmer inflexibility. Choosing the right tool for the job is a sign of competence; using a screwdriver for a chisel is not.


Yawn.

Your argument against using PHP for GUI applications is... PHP wasn't designed for it? Originally... sure, it was designed for simple web applications. Simple ones. It had very little of anything. It grew, however, and became the massive tool it is today. Things grow, and as they do, they are then able to do other things.

Now, tell me, if I'm a great PHP programmer, I know the language inside-out, and that language also provides a way to rapidly develop GUI applications, why the hell shouldn't I use that language?

Your argument is irrelevant today.

PHP-GTK is faster than PyGTK, BTW.
Was This Post Helpful? 0
  • +
  • -

#7 baavgai  Icon User is online

  • Dreaming Coder
  • member icon

Reputation: 4891
  • View blog
  • Posts: 11,286
  • Joined: 16-October 07

Re: Php with 3D Capabilities

Posted 28 August 2010 - 03:47 PM

View Postmahcuz, on 28 August 2010 - 02:07 PM, said:

Yawn.


Charming. :P

View Postmahcuz, on 28 August 2010 - 02:07 PM, said:

that language also provides a way to rapidly develop GUI applications


It doesn't. That's part of the point.

I know C inside and out. I can certainly use it to output HTML. Should I use it for web development. Perhaps, but I'd be ignoring all the hard work of others who've gone before. If I'm a smart programmer, I look into languages that already do the job well. I find PHP wraps a whole lot of C libraries, so I use that.

View Postmahcuz, on 28 August 2010 - 02:07 PM, said:

PHP-GTK is faster than PyGTK, BTW.


Please offer examples or references for such a claim.
Was This Post Helpful? 1
  • +
  • -

#8 Denis1  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 28
  • View blog
  • Posts: 96
  • Joined: 29-July 09

Re: Php with 3D Capabilities

Posted 05 September 2010 - 03:46 PM

View Postbaavgai, on 26 August 2010 - 03:39 PM, said:

Whenever I see things like GTK for PHP, it makes me sad.

I like PHP. It's good at what it does. Pushing it to do something completely different is a sign of programmer inflexibility. Choosing the right tool for the job is a sign of competence; using a screwdriver for a chisel is not.


Yes i completely agree with what your are saying. Php wasn't meant for 3D programming, it is great just the way it is.
Was This Post Helpful? 0
  • +
  • -

#9 cokacola  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 4
  • View blog
  • Posts: 52
  • Joined: 23-July 10

Re: Php with 3D Capabilities

Posted 26 September 2010 - 09:17 AM

I prefer using PHP for web development.
I am sure people can try all they want to make 3D programs with PHP, but there are plenty of other programming languages such as JAVA that can do just that, and a better job of it I would assume.
Was This Post Helpful? 0
  • +
  • -

#10 creativecoding  Icon User is online

  • Hash != Encryption
  • member icon


Reputation: 786
  • View blog
  • Posts: 2,970
  • Joined: 19-January 10

Re: Php with 3D Capabilities

Posted 26 September 2010 - 06:05 PM

I think that it would be good for creating 3d logos.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1