3d graphics and distance question
Author |
Message |
Wolf_Destiny
|
Posted: Sat Oct 21, 2006 7:41 pm Post subject: 3d graphics and distance question |
|
|
Just a fairly quick question...
I'm making an attempt at a 3d engine in Turing, and I've got a mostly working maze program. But I'm not just going to ask "how do u mak a 3d prgm dud?". The question I have actually is more about the physics of it.
With Z as the depth, or "distance from the screen" if you will. And say, H as the height at the front of the screen...
How should I reduce H in relation to Z. Ex. If an object is 100 pixels tall when it's 1 foot from the screen, how tall should it be at 2 feet, or 3 feet?
I'm currently taking physics, but it's only Grade 11, and we don't really go over this kind of thing. If someone had a general idea, or even an algorithm, anything really, I would greatly appreciate it!
Thanks in advance! |
|
|
|
|
|
Sponsor Sponsor
|
|
|
richcash
|
Posted: Sun Oct 22, 2006 1:11 pm Post subject: (No subject) |
|
|
Have you read this yet? That tutorial should generate some thoughts in your head about how to make 3d programs. |
|
|
|
|
|
Wolf_Destiny
|
Posted: Thu Oct 26, 2006 5:40 pm Post subject: (No subject) |
|
|
Thanks richcash, I appreciate the link. I think I've got the actual "drawing in 3d" down now, but I don't know how to rotate the view. I've got a more detailed question here: (http://www.compsci.ca/v2/viewtopic.php?p=129828#129828) It is in the Turing forum, but the question isn't turing specific. So if anyone reading this is familiar with 3d graphics programming I would greatly appreciate the help! |
|
|
|
|
|
zylum
|
Posted: Thu Oct 26, 2006 11:22 pm Post subject: (No subject) |
|
|
i posted an explanation in the other thread |
|
|
|
|
|
|
|