Jump to content


Photo

PHP Drawing


  • Please log in to reply
3 replies to this topic

#1 archVille

archVille
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 15 May 2006 - 03:12 PM

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...

#2 michaellunsford

michaellunsford
  • Members
  • PipPipPip
  • Advanced Member
  • 1,023 posts
  • LocationLouisiana, USA

Posted 15 May 2006 - 04:36 PM

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]

#3 archVille

archVille
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 29 May 2006 - 04:27 PM

[!--quoteo(post=374058:date=May 15 2006, 02:36 PM:name=michaellunsford)--][div class=\'quotetop\']QUOTE(michaellunsford @ May 15 2006, 02:36 PM) View Post[/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\" /]

#4 michaellunsford

michaellunsford
  • Members
  • PipPipPip
  • Advanced Member
  • 1,023 posts
  • LocationLouisiana, USA

Posted 29 May 2006 - 05:00 PM

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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users