For ray casting, ray tracing and rasterization you need a so called viewplane. My idea is to put the size of the viewplane according to pic-format (4:3, 16:9, 16:10...) along x- and y-axis, so that z is the distance between camera and viewplane. After calculating the lookat-matrix I Transform the 4 corners of the viewplane to the right position.
My question is: What do you think is the ideal distance between camera and viewplane?
ideal distance camera -> viewplane
For ray casting, ray tracing and rasterization you need a so called viewplane. My idea is to put the size of the viewplane according to pic-format (4:3, 16:9, 16:10...) along x- and y-axis, so that z is the distance between camera and viewplane. After calculating the lookat-matrix I Transform the 4 corners of the viewplane to the right position.
My question is: What do you think is the ideal distance between camera and viewplane?
Completely depends on the game-type and resolution of the z-buffer (maybe not such an issue these days)...
For example, if you have an FPS, having a low near-clip is desirable, but in a RTS maybe not so much.
In the old days (16 bit z-buffers etc), having a low near-clip would mean you lost visible precision in the distance, where-as a high near-clip gained you more precision in the distance.
Cheers, Paul.
If I am not mistaken, his question has nothing to do with the near plane. He is asking effectively what is a good field of view. This does depend on the game genre. But it should be easy enough to experiment with a few different settings and get a feel for what works.
Interesting, but the z-Buffer is only used for rasterization, isn't it?
It is, yes. Presumably you will be using one?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement