Jump to content

My 3D function plotter


BigMoosie

Recommended Posts

I think in total it took about 12 hours. That includes deriving the formulas which I am afraid are off by a very small degree (I have never studied projective geometry), when viewed at side angles there is a slight distortion. In fact I wonder if anybody could suggest the correct ones...

 

Basically the part that has the flaw is a function which takes 5 variables: x,y,z (normalised from -1 to +1 of the cube), then "theta" which is the sideways rotation in radians and "psi" which is the vertical rotation in radians. With these values I need to resolve the x and y pixels to draw the given point at.

Link to comment
Share on other sites

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

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.