Log in or register to post comments

Track Marker Position, No Camera Show

July 2, 2011 - 7:59pm #1

Is it possible to suppress the ARcamera output (regular camera active), but use it only to track the location of framemarkers.

Re: Track Marker Position, No Camera Show

July 6, 2011 - 12:47pm #2

Hello Ina,

We don't expose this behavior as a feature of our Unity plug-in.

However with some hacking it is possible to do that.
You need to change the TrackerBehaviour script a little bit to make this work.

1) You need to add another ConfigureVideoBackground() method:
- Add an "enabled" parameter: ConfigureVideoBackground(bool enabled)
- Change " config.enabled = 1;" to "config.enabled = enabled?1:0;"
2) Make sure that when the video background rendering is disabled that the camera clear flag is set to a solidColor.

I have attached two files that show you how to do this.
TrackerBehaviourAddons.txt contains the modified ConfigureVideoBackground(bool) method and a VBRenderingActive property that you can call to turn on and off rendering.
CameraDisableScript.txt can be attached to the ARCamera object (rename as CameraDisableScript.cs) . It displays two buttons that can be used to enable and disable the video background rendering.

Please note that we can't guarantee that this will continue to work with any of the upcoming releases.

Thank you,


Log in or register to post comments