Not logged in, Join Here! or Log In Below:  
 
News Articles Search    
 

 Home / 3D Theory & Graphics / Can Anyone can help me with Correct display 3D point in 2D Account Manager
 
0867532

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:
http://i.imgur.com/JrLh5R3.png
But if move cam in sides it change form too bad:
http://i.imgur.com/3QLQxML.png

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!

 
pacificat0r

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.

http://www.scratchapixel.com/lessons/3d-advanced-lessons/perspective-and-orthographic-projection-matrix/perspective-projection-matrix/

 
This thread contains 2 messages.
 

If you'd like to post a comment on this discussion thread, please log in or create an account.

 
 
Hosting by Solid Eight Studios, maker of PhotoTangler Collage Maker.