artoolkitx / jsartoolkit5

Javascript ARToolKit v5.x
https://artoolkitx.github.io/jsartoolkit5/examples/
Other
292 stars 69 forks source link

Increase draw range at least up to image tracking range #103

Closed CapSparkle closed 3 years ago

CapSparkle commented 3 years ago

I realized that range of stable image tracking is much more bigger than drawing range!

You can see that on the first screenshot there is debug notifications about stable image tracking but there is no any 3d content. And on the second when i get my marker really close - it appears.

Is that any way to increase drawing range? I have tested flamingo example - it works the same way. I draws only really close range. I have tried to increase scale (third screenshot)- i didn't succeed it that way

Скриншот 01-12-2020 160036

Скриншот 01-12-2020 160204

Скриншот 01-12-2020 160924

NewYearCelebrate commented 3 years ago

I have found a solution of that issue! It is because of setup projectionMatrix of camera. That matrix clips rendering scene. And second - you have yo use Perspective camera instead of Camera. There is note about not using directry Camera class in three.js docs image

kalwalt commented 3 years ago

I also think that should be better to use the Perspective Camera, not sure about the ste CameraMatrix, Anyway thanks for this!