User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 375,174 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,091 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 2642 | Replies: 3 | Solved
Reply
Posts: n/a
Solved Threads: n/a
crazy ben

maths for 3d?

  #1  
Apr 10th, 2003
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.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jul 2002
Posts: 71
Reputation: evilmonkey29 is an unknown quantity at this point 
Rep Power: 6
Solved Threads: 2
evilmonkey29 evilmonkey29 is offline Offline
Junior Poster in Training

Quite simple, actually

  #2  
Apr 10th, 2003
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
Reply With Quote  
Posts: n/a
Solved Threads: n/a
crazy ben

reply to evilmonkey29

  #3  
Apr 11th, 2003
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
Reply With Quote  
Join Date: Jul 2003
Posts: 1
Reputation: raheel is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
raheel raheel is offline Offline
Newbie Poster

maths for 3d?

  #4  
Jul 16th, 2003
I would like to find algorithms of "Aspect angle" and "Angle off" in 3D.Can any one help to solve this problem....thanks.
raheel
Reply With Quote  
Reply   Mark as Unsolved

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb HTML and CSS Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 12:18 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC