Log in or register to post comments

Set PlaneFinder Heigth at runtime?

August 8, 2018 - 3:22am #1

Hi,

i was wondering if it is possible to set the Height of the "PlaneFinderBehaviour" script at runtime e.g. with a slider the user can interact with? With my free license i neither can open the script to edit it nor was able to make an external call on this script.

 

Any solutions for this?

Set PlaneFinder Heigth at runtime?

August 13, 2018 - 3:48pm #6

Hello,

You can adjust the height programmatically via PlaneFinder Height property (under Advanced) in the Core Samples (in scene "3-GroundPlane", look at PlaneManager->PlaneFinder). This represents the real world height of the camera in meters - thus your observation makes sense.

Keep in mind that this is just the height value. The APIs don't provide the ability to scale the augmentation.

Thanks,

Vuforia Engine Support

Set PlaneFinder Heigth at runtime?

August 10, 2018 - 5:13am #5

Hi,

no, i dont want to scale my object, i want a visual scaling of the object based on my distance. Like a perspective view. I thought that the Height value is the solution for this? I tried to set the Height value to a large number like 10, resulting in my object was visual scaled down like iam watching the object from 10 meters from above. Setting Height to 1 resulting the object getting bigger, like iam closer to it.

Set PlaneFinder Heigth at runtime?

August 9, 2018 - 11:27am #4

Hello,

GroundPlane tracking will take care of the height estimation automatically. Thus, it should give different values based upon where the camera is placed.

To clarify, is the issue that you want to adjust the scale of the augmentation based upon the estimated height?

Thanks,

Vuforia Engine Support

Set PlaneFinder Heigth at runtime?

August 9, 2018 - 10:32am #3

Thanks for your answer! So my knowledge is that i can set the visual scaling of my augmented object that is attached to my groundplane with the Height attribute of this mentioned script. For Example iam 1.7m tall, my camera would be arround 1.60m height over ground. But users of my application arent the same height, so i need to adjust this at runtime (or somehow else). Other example, when the person sits down on a chair, the height needs to be adjusted aswell, otherwise the realistic scaling isnt accomplished.

Or iam wrong with this thoughts?

Set PlaneFinder Heigth at runtime?

August 8, 2018 - 11:06am #2

Hello,

This script is not editable or viewable. I don't think it was meant to be a base example for modification.

It would be helpful if you could describe your use case as to why you need to create a custom script here. I can use this feedback to approach product and development to see if we've missed something that would be useful to developers.

Thanks,

Vuforia Engine Support

Log in or register to post comments