|
Thread: 3d
-
Aug 24th, 2003, 01:33 AM
#1
Thread Starter
Frenzied Member
3d
Hi!
i've asked this before:
how do i draw a 3d dot on a 2d screen?
i know camera position and angles and i know the dots position.
how do i calc where this dot should be plotted?
-
Aug 24th, 2003, 02:09 AM
#2
Lively Member
Re: 3d
how do i draw a 3d dot on a 2d screen?
i know camera position and angles and i know the dots position.
how do i calc where this dot should be plotted?
I asked for this in other 3D-expert-places and the simplest way to do this is to use these equations:
Code:
Xscreen = (X3d * D) / (Z3d + D) + Xcenter
Yscreen = (Y3d * D) /( Z3d + D) + Ycenter
Where D, choosen by you, is the distance between the center of the projection and the viewer.
Xcenter and YCenter is the center of the screen, where Xcenter is 160 and Ycenter is 100 if you are 320*200 resolution, etc.
Bye
P.S.: I don't work with 3D, I just had this infos
-
Aug 24th, 2003, 01:35 PM
#3
Thread Starter
Frenzied Member
thanks, but i've allready tried this. the problem here is that i dont have the camera angles in the equations...
-
Aug 25th, 2003, 04:18 AM
#4
So Unbanned
-
Aug 25th, 2003, 09:09 AM
#5
Thread Starter
Frenzied Member
thanks! i think that'll help me alot!
-
Aug 25th, 2003, 10:05 PM
#6
Thread Starter
Frenzied Member
yeah! i've got all i need 
thanks alot DiGiTaIErRoR
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|