September 25, 2013, 02:53 PM
I've search for formulas, or something to correct draw 3D point in 2D coorinates.
This is what i got:
But if move cam in sides it change form too bad:
ive used formula:
X' = ((X - Xc) * (F/Z)) + Xc
Y' = ((Y - Yc) * (F/Z)) + Yc
I don't need to draw textres or shadows, just to display correct "wireframe" cube in 3D,
Can anyone dive working code or someth.
cos ive read many articles about matrix and thrigonometry, but there is no code!
October 01, 2013, 10:38 AM
Yo man, them formulas are dope.
But imma gonna teach you the righte way.
It seems to me that you are not taking fov into account. But that's allrite.
Here's a tutorial for you that contains codez.