Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

VisualB4BigD

World Perspective

This topic is 5850 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have learned how to do matrices now and I built a little 3D program, it allows you to rotate a square (not cube) around all three axies. But the problem I'm having is I can't get any perspective. What this means is that I can't create the illision of depth with my program. I've tried dividing my X and Y's with the Z but it doesn't work correctly. Can anyone help me out? Here is the program to illistrate what I'm talking about. [edited by - VisualB4BigD on September 15, 2002 3:12:42 AM]

Share this post


Link to post
Share on other sites
Advertisement
I actually did the same thing last night (but i did it with a cube).


XonScreen = x * 256 / z + HalfOfScreenWidth;
YonScreen = y * 256 / z + HalfOfScreenHeight;

The 256 is the ''''perspective'''', i dont know a better word for it. Try other values and you will see what I mean.



Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!