Can someone please explain how the "radius" parameter in setCameraRadiusConstraint works?
I'm coming at this as a programmer trying to get the Clara viewer to do what I want. I have no 3d modeling background, so forgive my modeling ignorance.
I have a Clara scene loading in the 3d viewer. Now I want to keep the user from zooming the camera inside the model, and I also want to keep the camera from zooming too far away. If I set the radius parameter to something small, like 1, it doesn't seem to do anything. A value like 10,000 keeps the camera right at the edge of the model, just slightly breaking through the outer walls. Increasing the value to 50,000 and 1,000,000 doesn't seem to make any change.
The API for setCameraRadiusConstraint says: "Will constrain the target of the camera to remain inside the bounding sphere of the scene. The camera will not be allowed to enter the bounding sphere of the scene nor leave bounding sphere defined by arguments".
What is the target of the camera? Is that the "look target"? I checked the camera's "enable look target" setting but that didn't seem to make a difference.
Also what is the "scene bounding sphere?" Googling "clara io scene 'bounding sphere'" gives me one relevant hit, which is the setCameraRadiusConstraint description above.
I just want to know how to keep the camera from moving into the model and from moving too far away from the model. How do I do that? Is there an example anywhere?