Frustum Effect


The frustum denotes the truncated pyramid shape representing the visible area in a perspective projection. The frustum effect describes the visual distortion where objects at the edges of the screen or viewport appear stretched or skewed. It adds depth along the z-axis to project a 2D image as 3D.

To apply the frustum effect to a widget:

  • Go to the Effects tab and add the frustum effect.

  • Define the dimensions of the image (here we have taken an image of size 500 x 100): width (x coordinate) ranges from 0 to 500, and height (y coordinate) ranges from 0 to 100.

  • Specify Z-Near (the nearest visible point on the Z-axis, set to 1) and Z-Far (the farthest visible point on the Z-axis, set to 3).

Next, incorporate translate and rotate effects:

Add the translate effect to the widget. Set X-translate to -250 (half the width of the image, negated) and Y-translate to -50 (half the height of the image, negated). To ensure visibility, set Z-translate to -1, aligning with the Z-Near value.

Add a rotate effect to the widget. Set the rotation angle around the X-axis to 50 degrees.

Frustum effect

Frustum effect

Tips - To get a better-quality outcome, use images without transparency when applying effects.

Note-The Frustum effect might not be visible during simulation, but it is observable on Flint EFV and board.