Hi,
This is a modification of the example camera by points script. The issue I am experiencing is that when I set...
UsePerspectiveView = false;
The Camera Eye and Target points are not maintained. This is evident in mstn 'Define Camera'...
transaction graphChange 'object for camera' { feature User.Objects.point02 Bentley.GC.Features.Point { CoordinateSystem = baseCS; XTranslation = <free> (8.92207578546705); YTranslation = <free> (-3.71891727133106); ZTranslation = <free> (0.0); } feature User.Objects.solid01 Bentley.GC.Features.Solid { CoordinateSystemAtCentroid = baseCS; XDimension = 3; YDimension = 2; ZDimension = 5; } } transaction graphChange 'create camera' { feature User.Objects.camera01 Bentley.GC.Features.Camera { EyePoint = point02; TargetPoint = baseCS; ViewNumber = 5; UsePerspectiveView = false; <----------This causes EyePoint and TargetPoint to be not respected } }
What works...
With "UsePerspectiveView = true;" .....
Correct Eye and Target Points in 'Define Camera' dialog...
------------------------------------------------------------------------------------------------------------
With "UsePerspectiveView = false;" .....
Camera Eye and Target are not maintained...
And in 'Define Camera'...
Eye and Target Points are incorrect...
In Both cases ( Perspective ON and OFF) the feature shows up red with the following Message Center errors...
Feature User.Objects.camera01 Camera.ByPoints failed: check validity of inputs Camera User.Objects.camera01: unable to create cell camera_0_point
Despite this error, in the case of Perspective ON, the view gets generated correctly ( ...and Incorrectly in the case of Perspective OFF)
Also..
From help file on 'Camera Feature'...
Summary: Creates a Camera between an EyePoint and TargetPoint, with a defined ViewAngle and DisplayDepths
I can't see how the Display Depth is set with the camera feature. A 'Clip Volume' is not the same as 'Display Depth'
What I need is to control the 'FocalDistance' (Distance From the Camera's Eye to the Focal Point)
and Clip Distances (Front' and 'Back' - which are relative to the Focal Distance)
is this possible?
Any help appreciated.
Mike