|
|
On 2-9-2018 3:54, Kenneth wrote:
> Thomas, I've been playing around with his code, and I see where some
> improvements can be made. One of the problems I've come across is that the code
> itself seems to be built around a 'backward'-facing camera (i.e., the camera
> position and look_at point resulting in a -z look_at direction.) With a regular
> forward-facing camera, the code produces some odd results (and fixing things is
> apparently not just a simple matter of tweaking only one thing.) But I'm
> continuing to work at it...and to find some way to improve it's accuracy (which
> I suspect is due to whatever particular camera angle is used-- it *seems* to be
> more accurate with a 'zoom' angle rather than wide-angle.) It's quite a
> 'magical' piece of code otherwise.
>
You are right. Over time, I have "improved" on the code, one of the
improvements being the possibility to use true 2D screen coordinates
instead of percentages. Also that "facing" problem is more or less
tackled I think, although I regularly have cases where it does not work.
However, It mostly works and I light a candle to Saint Norbert each
time. :-)
Anyway, find here my version attached.
--
Thomas
Post a reply to this message
Attachments:
Download 'utf-8' (8 KB)
|
|