Search Unity

Adjust Pose Driver so that a single ARTrackedImage is always at world origin?

Discussion in 'AR' started by DigitalSalmon, Sep 16, 2019.

  1. DigitalSalmon

    DigitalSalmon

    Joined:
    Jul 29, 2013
    Posts:
    100
    Hey,

    We're looking at options to ensure an AR Camera is pose driven so that one ARTrackedImage is at the world-space (unity space) origin.

    So far we've been moving/parenting our key content to the trackable, but it's becoming a real pain to ensure shaders which rely on world position run through the appropriate transformation matrix. It's stable in Editor, but we're having some fun on iOS builds.

    Ideally, we'd prefer to use a custom pose driver so that our content is always at the origin, so that various shader effects become much easier.

    Has anyone had any luck? Our matrix math skills aren't awful, but it's proving fiddly.

    Cheers,