3D Viewport Width

user-pic
Vote 0 Votes
Messing about with Direct3D (some more). Ideally by the end I will have the skillz to put together some funky little games with sound effects and crud. I will be going for something in the "puzzle" genre with a nice "tactile" experience; big chunky, colorful 3D objects with appealing sound effects and relatively "deep" gameplay ("combo" bonuses, etc). Brushing up on my trigonometry for this project, today I decided that; Width of the viewport (in 3D world units) = 2 * Sin(Field_of_View / 2) * Object_Distance / Cos(Field_of_View / 2) * Aspect_Ratio Or something like that. Anyway, this function seems to help me decide how many vertices are to the left/right of a mouseclick, so that is good enough for now. P.S.; Dear Father; yes, I am still alive! Even though I have not updated my site in forever... Your new puppy is very cute, maybe I will post some of the pictures here, if that is okay...

No TrackBacks

TrackBack URL: http://www.samology.com/cgi-bin/mt/mt-tb.cgi/152

1 Comment

| Leave a comment

Totally OK to post pix of the puppy.

Pop

Leave a comment

About this Entry

This page contains a single entry by Sam T published on June 1, 2004 7:30 PM.

That Was My Sushi Lunch was the previous entry in this blog.

Pope Calls Bush the Anti-Christ? is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.