We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › strokeWidh should be with P3D
Page Index Toggle Pages: 1
strokeWidh should be with P3D (Read 587 times)
strokeWidh should be with P3D
Jun 21st, 2006, 6:50am
 
Actually i am trying to draw a cube. In that cube trying to draw some grid lines, but the lines are not coming proper because of rotation.

  so could you help me to solve this problem.
Re: strokeWidh should be with P3D
Reply #1 - Jun 23rd, 2006, 10:54pm
 
If you need to use strokeWidth with 3d wireframe, then you can use Processing 2D and simply project your 3d objects onto the screen with your own funtion.  Its not that hard, this is how we used to do it before openGL.  You just need to take object(x,y,z) and turn it into screen(x,y) for all the points in your object.

Here's a link that might help : http://en.wikipedia.org/wiki/3D_projection

Check the "simple version" at the end if you want to just try it without a math lesson, then go back and read it.
Page Index Toggle Pages: 1