forked from qt-creator/qt-creator
Doc: Update info about attaching texture to materials
Change-Id: Idc934db3e8b9b083fd60ae348eb84c095d2fca72 Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
BIN
doc/qtdesignstudio/images/studio-qtquick-3d-material-texture.png
Normal file
BIN
doc/qtdesignstudio/images/studio-qtquick-3d-material-texture.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
BIN
doc/qtdesignstudio/images/studio-qtquick-3d-texture.png
Normal file
BIN
doc/qtdesignstudio/images/studio-qtquick-3d-texture.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 79 KiB |
@@ -1,6 +1,6 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2019 The Qt Company Ltd.
|
||||
** Copyright (C) 2020 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of Qt Design Studio.
|
||||
@@ -36,6 +36,8 @@
|
||||
You can use the Texture 3D QML type to attach textures to materials.
|
||||
You specify an image and how it is mapped to meshes in a 3D scene.
|
||||
|
||||
\image studio-qtquick-3d-texture.png "Texture attached to a material in Design mode"
|
||||
|
||||
\section1 Selecting the Mapping Method
|
||||
|
||||
To specify the method of mapping to use when sampling a texture, select
|
||||
@@ -108,4 +110,24 @@
|
||||
|
||||
For more information about rotating and pivoting components in the local
|
||||
coordinate space, see \l {Setting Transform Properties}.
|
||||
|
||||
\section1 Applying Textures to Materials
|
||||
|
||||
You drag and drop an image from \uicontrol Library > \uicontrol Assets
|
||||
on a material to create and set the texture automatically, or you can use
|
||||
a Texture component.
|
||||
|
||||
To use Texture components to apply textures to materials:
|
||||
|
||||
\list 1
|
||||
\li Drag and drop a Texture component from the \uicontrol Library to a
|
||||
material component in the \uicontrol Navigator.
|
||||
\li In the \uicontrol Properties view, specify the image to use in the
|
||||
\uicontrol Source field.
|
||||
\image studio-qtquick-3d-texture-properties.png "Texture properties"
|
||||
\li Select the material component and specify the id of the texture to
|
||||
use in the \uicontrol Properties view, \uicontrol {Diffuse map}
|
||||
field.
|
||||
\image studio-qtquick-3d-material-texture.png "Material properties"
|
||||
\endlist
|
||||
*/
|
||||
|
Reference in New Issue
Block a user