#### Archived

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

# Problems in viewing pipeline maths

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

## Recommended Posts

I just finished reading Tricks of The 3D Game Programming Gurus by Andre LaMothe and have started writing my own software engine. I have this problem that increasing the field of view decrease the visible area and vice versa. I think the problem is with the view distance. I calculate it as in the book: view distance = 0.5 * veiw plane width * tan( field of view / 2) The problem is easily fixed by using the inverse of the viewing distance and all the other calculations, but i recon it is just covering up for some other mistake. does anyone have any ideas?

##### Share on other sites
Either you read it wrong or there is a typo in the book.

width/2 = distance * tan(angle/2)

so

distance = width/2 / tan(angle/2)

John Bolton
Page 44 Studios
Current project: NHL Faceoff 2005 PS2

##### Share on other sites
i asked Andre, it was a mistake in the book, it should be
distance = width/2 / tan(angle/2)

• 16
• 11
• 11
• 9
• 49
• ### Forum Statistics

• Total Topics
631394
• Total Posts
2999749
×