IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

HeightFieldGeometry QML Type

A height field geometry.

This type was introduced in Qt 6.4.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

HeightFieldGeometry QML Type

  • Import Statement: import QtQuick3D.Helpers

  • Since:: Qt 6.4

  • Inherits:: Geometry

Detailed Description

This helper implements a height-field geometry. It defines a surface built from a grayscale image. The y-coordinate of the surface at a given point in the horizontal plane is determined by the pixel value at the corresponding point in the image. The image's x-axis and y-axis will go along the geometry's x-axis and z-axis respectively.

Property Documentation

 

extents : vector3d

This property defines the extents of the height-field, that is the dimensions of a box large enough to always contain the geometry. The default value is (100, 100, 100) when the image is square.

heightMap : QUrl

This property defines the URL of the heightMap.

smoothShading : bool

This property defines whether the height map is shown with smooth shading or with hard angles between the squares of the map.

The default value is true, meaning smooth scaling is turned on.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+