Jump to content

Archived

This topic is now archived and is closed to further replies.

archVille

PHP Drawing

Recommended Posts

Does anyone know how can i use some values (x,y,z) so to draw a cube ? I have the values written in a plain text .
Are there any useful tools for this ? I want to draw 3dimensional object having these values (including laso height of x , height of y , height of z) .
Any help appreciated...

Share this post


Link to post
Share on other sites
sounds like a class project.

you'll have to do the math, but you can draw lines using imageline();

[a href=\"http://us3.php.net/imageline\" target=\"_blank\"]http://us3.php.net/imageline[/a]

Share this post


Link to post
Share on other sites
[!--quoteo(post=374058:date=May 15 2006, 02:36 PM:name=michaellunsford)--][div class=\'quotetop\']QUOTE(michaellunsford @ May 15 2006, 02:36 PM) [snapback]374058[/snapback][/div][div class=\'quotemain\'][!--quotec--]
sounds like a class project.

you'll have to do the math, but you can draw lines using imageline();

[a href=\"http://us3.php.net/imageline\" target=\"_blank\"]http://us3.php.net/imageline[/a]
[/quote]

I am ok with IMageLine and 2D graphics , this is easy .
The problem is when i want to convert coordinates like (x,y,z) to 3d environment.
IS there any relational tool or something like that that take as values 3 dimensions and turns into a 3d shape (cube something) ??????????
Thanx anyway.... [img src=\"style_emoticons/[#EMO_DIR#]/wink.gif\" style=\"vertical-align:middle\" emoid=\":wink:\" border=\"0\" alt=\"wink.gif\" /]

Share this post


Link to post
Share on other sites
Not that I've seen.

3d will add some complexities. For example, you have to worry about x, y, z and camera angle. I don't think PHP was designed with 3d in mind.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.