|
-
Aug 21st, 2002, 06:49 PM
#1
Thread Starter
Member
3D graphics....??
How can you draw a 3D line on a 2D screen?? And what's the math for rotating this line?? (Preferably in radians than degrees (for whatever that means!!)).
-
Aug 21st, 2002, 07:04 PM
#2
Fanatic Member
nothing is 3D.
So-Called: "3D" is lines that parrallel each other to make our eyes think it's in 3 Dimensional.
If you are referring a plane as a 2D Screen, simply draw lines that parrallel each other, or so ever to make it look 3D.
to rotate a whole 3D Object, for instance a 3D box, you will have to rotate every polygon(line) in that figure.

prog_tom
JOIN THE REVOLUTION!!!! Dual T3 backedup science community.
http://physics.sviesoft.com/forum
-
Aug 21st, 2002, 07:23 PM
#3
Fanatic Member
ppl usually use Direct3D and/or OpenGL to take care of your problem -- they are truely 3D Graphics Engine I believe, especially with the new video cards. the very original "3D" graphics that appeared in Wolfenstein and Doom series however uses a technique called "RayCasting Engine" (which is really 2D but appears 3D). if you want more info do a search on these topics.
Massey RuleZ! ^-^__  Cheers!  __^-^ Massey RuleZ!
Did you know that...
The probability that a random rational number has an even denominator is 1/3 (Salamin and Gosper 1972)? This result is independently verified by me (2002)!
-
Aug 22nd, 2002, 03:52 AM
#4
Addicted Member
What you should learn here is some trigonometry, namely the sin and cos functions. Also learn about radians as radians are what's used for angles on the computer screen and not degrees.
Mainly though just learn trigonometry and just about everything you need to know for graphics programming will be explained.
-
Aug 22nd, 2002, 05:07 AM
#5
-
Aug 22nd, 2002, 05:37 AM
#6
Addicted Member
Just wondering, how can you get the sin-1 and cos-1 functions in VB? is it possible??
http://www.vbforums.com/showthread.p...ht=inverse+sin
-
Aug 22nd, 2002, 08:06 AM
#7
Fanatic Member
Originally posted by hypnos
What you should learn here is some trigonometry, namely the sin and cos functions. Also learn about radians as radians are what's used for angles on the computer screen and not degrees.
Mainly though just learn trigonometry and just about everything you need to know for graphics programming will be explained.
lol while i agree that trig is very useful in graphics programming, I am afraid that if you want to program in 3D it is a LOT more than that. here is some links to a direct 3D tutorials:
http://www.drunkenhyena.com/docs/d3d_tutorial.phtml
Massey RuleZ! ^-^__  Cheers!  __^-^ Massey RuleZ!
Did you know that...
The probability that a random rational number has an even denominator is 1/3 (Salamin and Gosper 1972)? This result is independently verified by me (2002)!
-
Aug 22nd, 2002, 08:11 AM
#8
Addicted Member
bugzpodder yes I agree with you that if you want to learn things like DirectX it's a lot more complex. I'm just talking about the theory though. If you know trig and the line command you can draw 3d which is what AirScape17 seemed to be talking about when he mentioned rotating lines etc. He never mentioned anything about directX. It's much better to learn how to program 3D yourself (i.e. the theory) before you go on to anything like directX.
-
Aug 22nd, 2002, 08:15 AM
#9
New Member
Originally posted by hypnos
bugzpodder yes I agree with you that if you want to learn things like DirectX it's a lot more complex. I'm just talking about the theory though. If you know trig and the line command you can draw 3d which is what AirScape17 seemed to be talking about when he mentioned rotating lines etc. He never mentioned anything about directX. It's much better to learn how to program 3D yourself (i.e. the theory) before you go on to anything like directX.
-
Aug 22nd, 2002, 08:43 AM
#10
Addicted Member
Last edited by hypnos; Aug 22nd, 2002 at 08:53 AM.
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
|