user1226372
user1226372

Reputation: 45

How to create the 3D Image using php?

I have a .stl file from which I have extracted the data. Now I want to draw / render the image of the object in that .stl file. Please guide me how I draw / render 3D image in php.

As I have seen that the same can be achieved easily from Java 3D but my application is in php.

Upvotes: 1

Views: 4950

Answers (2)

kukrapok
kukrapok

Reputation: 11

Just found a 3D library for PHP here http://kore-nordmann.de/projects/image_3d/index.html

Upvotes: 1

Daniel Voina
Daniel Voina

Reputation: 3215

It is not impossible... although it is a little odd.

You can use GD library and render your stl into a png. You will have to implement all the 3D drawing stuff by hand (polygons, textures, lights, removal of unseen polygons).

Not an easy job.

Upvotes: 0

Related Questions