943,427 Members | Top Members by Rank

Ad:
Apr 10th, 2003
0

maths for 3d?

Expand Post »
I'm trying to program a spinning cube using basic draw commands (eg 10 draw 320,200 to 340,200 etc Not openGL). I know it sounds a bit basic but I'm interested in the maths of it. Does anyone know how to project an object in perspective and rotate it? I've read books on matrices but I'm none the wiser. Peace and love, Crazy Ben.
Similar Threads
crazy ben
Reputation Points:
Solved Threads:
Guest
n/a posts
Apr 11th, 2003
0

Quite simple, actually

This tutorial relates to Macromedia Flash but it's the same exact concept. It's actually not that hard...hope it helps.
http://www.flashkit.com/tutorials/3D...-189/index.php
Reputation Points: 11
Solved Threads: 3
Junior Poster in Training
evilmonkey29 is offline Offline
71 posts
since Aug 2002
Apr 11th, 2003
0

reply to evilmonkey29

To Evilmonkey29
Thanks - I've been to the site and I've learnt a few things, but I'm still a bit stuck. One of the tutorials said that in order to get a 3d object onto a 2d screen you need to divide by z so that the coordinates become x/z and y/z. Now I can sort of understand that as things go further into the distance then z will increase, and if you make the centre of the screen the vanishing point(0,0) then as z increases the objects get smaller and smaller until they vanish at the centre. The problem is, how do I rotate something with x/z and y/z. The closest equation I can get is:

draw 0,0 to x/(cos*angle*hypoteneuse),(sin*angle*hypoteneuse)/(cos*angle*hypoteneuse)

but it doesn't look right.
Any ideas? Ben
crazy ben
Reputation Points:
Solved Threads:
Guest
n/a posts
Jul 16th, 2003
0

maths for 3d?

I would like to find algorithms of "Aspect angle" and "Angle off" in 3D.Can any one help to solve this problem....thanks.
raheel
Reputation Points: 10
Solved Threads: 1
Newbie Poster
raheel is offline Offline
1 posts
since Jul 2003

This thread is solved

If this thread has not yet been solved, please Mark this Thread as Unsolved so that it displays a correct status. Posters are less inclined to contribute to a thread that has already been marked solved.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: Some Basic Code Hopefully (Help Needed)
Next Thread in HTML and CSS Forum Timeline: Cookies makers?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC