Re: [AD] small docs addition |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
>
> This 4/3 hard-coded ratio seems to be a mistake. But (correct me if I'm
> wrong, I haven't used the Allegro 3D functions for a very long time) your
> patch automatically scales the image, even though the aspect ratio is 1.0,
> which is not what the docs say. Why not simply use 'aspect*width' ?
>
Simply using 'aspect*width' is what the docs seem to imply, but it breaks
excamera. My patch leaves excamera intact, and also does no scaling in the
sense that it does no additional scaling after correcting the viewport
distortion. It also is what seems the most useful for me, because this way
you can always use 1.0 unless you want a distorted view (or use a video
mode with non-square pixels). It might be a good idea to clarify the docs
a bit more about that parameter in any case.
(I'm not a 3d expert though (that's why I'm use Allegro's 3D probably :)..
so maybe the standard way is just using aspect*width, and always specifying
the viewport correction.)
--
Elias Pschernig