![]() The units of position and size are relative to the scale of the field of view. The angle of the field of view is fixed vertically: making the viewport/form taller makes everything bigger, while making it wider shows more to the sides. Anything between the camera and that front plane is clipped from view. The viewable volume is a frustum, with the near plane slightly in front of the camera. After assigning a different one to the Camera property, you must call Repaint manually. To use a different camera, set the UsingDesignCamera property of the TViewport3D or TForm3D to False, and assign a TCamera to the Camera property. ![]() It is directly above the negative-Z axis (toward negative-Y), perpendicular to the X-Z plane, angled slightly downward so that position 0,0,0 is in the center of the view. There is always the design camera used in the Form Designer, and by default at run time. The position and orientation (3D rotation) of the camera determines what you see. While 2D objects arranged on a 2D surface require a notion of Z-order to determine their layering, objects in 3D space are inherently ordered, so that when seen from a given vantage point, nearer objects occlude farther ones in the same line of sight.Įvery view of 3D space is controlled by a camera. TLayout3D may be used as an otherwise featureless parent to organize other objects. Moving or rotating a parent will re-position its component subtree. A child's position and rotation is relative to its parent. Position, size, rotation, and scaling are all relative to the object's center point.Īs with 2D controls, any 3D control in FireMonkey can be the parent of any other 3D control. Flat 2D objects in 3D space are arbitrarily thin with a hard-coded Depth of 0.01. ![]() In addition to Height and Width, they also have a Depth. Objects are positioned in 3D space with X, Y, and Z coordinates using a TPosition3D.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |