From be3444924798602eedf6f4c22985fe01cb6cf1de Mon Sep 17 00:00:00 2001 From: Mats Honkamaa Date: Mon, 19 Sep 2022 10:32:36 +0300 Subject: [PATCH] Doc: Add info about 3D view context menu Task-number: QDS-7494 Change-Id: Ic6fce90317e2ff5736ba20996ba30b1f338c36ac Reviewed-by: Leena Miettinen --- .../images/3d-view-context-menu.png | Bin 0 -> 4571 bytes .../qtdesignstudio-3d-camera.qdoc | 16 ++++++++++++---- .../qtdesignstudio-3d-editor.qdoc | 10 ++++++++++ .../qtdesignstudio-3d-lights.qdoc | 11 ++++++++--- .../qtdesignstudio-3d-model.qdoc | 17 ++++++++++++----- 5 files changed, 42 insertions(+), 12 deletions(-) create mode 100644 doc/qtdesignstudio/images/3d-view-context-menu.png diff --git a/doc/qtdesignstudio/images/3d-view-context-menu.png b/doc/qtdesignstudio/images/3d-view-context-menu.png new file mode 100644 index 0000000000000000000000000000000000000000..c2e35e001987cbea031473cd2b7cd8abe9934b56 GIT binary patch literal 4571 zcmeAS@N?(olHy`uVBq!ia0y~yV6BcsIn+;_8&Oc1`U_|U*>g;0)@(i)WyT&thB z&KCF1l$s>e5hCK1^fXp=$*LgHr7nRYp-zGEOD0Nv4S8y}d$aZL`L=1t9$S|0xBuH( zc75~ds&e~(_SVOZH`+OQhzLDaRbW}&BJh39HzB7*0&9etLY+9mI1g$ms!R#1=1>d- zaaQfsk&3x;_5M+7M-P@Y=PXQ{%bNtaSO0GEdy|v%OZxJ6L8miITMn+`(QK|X=HOf( zs@bs7%VWx#AU0v4tkqH>xgXL5lG>iWd~m69NAOmy@cC*jBAye%ve~jiRtK@Me=^a# zex>JF(z9lMF3s%KO~R{NTn?<_3YCsfRVfK8=6b-ee^b&_m&31u8J8{y)oecgO~G{f z){7TEwmnWyI{qrSg=OvmyVjopTMffjuhL9U+UT_*%0#x^sw;A;yyZ5n@Qq#@UR5&o zggTvBV<+iSwC&oHn$)fTEx5(wf_zVgvim=~bf|S&*nAb07c8GOb=bi6iiAC8e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#KWV{an^LB{Ts59~mxh literal 0 HcmV?d00001 diff --git a/doc/qtdesignstudio/src/qtquick3d-editor/qtdesignstudio-3d-camera.qdoc b/doc/qtdesignstudio/src/qtquick3d-editor/qtdesignstudio-3d-camera.qdoc index a501eecfd08..2f6c05b24a8 100644 --- a/doc/qtdesignstudio/src/qtquick3d-editor/qtdesignstudio-3d-camera.qdoc +++ b/doc/qtdesignstudio/src/qtquick3d-editor/qtdesignstudio-3d-camera.qdoc @@ -40,10 +40,18 @@ \image studio-qtquick-3d-components.png "Qt Quick 3D components in Components" - Add a camera by dragging-and-dropping one of the camera components from - \uicontrol Components > \uicontrol {Qt Quick 3D} > \uicontrol - {Qt Quick 3D} to the \l {3D} view or to a 3D view in \l Navigator. - If the cameras are not displayed in \uicontrol {Components}, add the + To add a camera component to your UI, do one of the following: + \list + \li Drag a camera component from \uicontrol Components > + \uicontrol {Qt Quick 3D} to the \l {3D} view or to + \l Navigator > \uicontrol {View3D} > \uicontrol Scene. + \li Right-click in the \uicontrol 3D view and select + \uicontrol Create > \uicontrol Cameras from the context menu. + \note You can only create \uicontrol {Camera Perspective} and + \uicontrol {Camera Ortographic} this way. + \endlist + + If you cannot find the camera components in \uicontrol {Components}, add the \uicontrol QtQuick3D module to your project, as described in \l {Adding and Removing Modules}. diff --git a/doc/qtdesignstudio/src/qtquick3d-editor/qtdesignstudio-3d-editor.qdoc b/doc/qtdesignstudio/src/qtquick3d-editor/qtdesignstudio-3d-editor.qdoc index 8f0628aef0d..5c2bf4f14bd 100644 --- a/doc/qtdesignstudio/src/qtquick3d-editor/qtdesignstudio-3d-editor.qdoc +++ b/doc/qtdesignstudio/src/qtquick3d-editor/qtdesignstudio-3d-editor.qdoc @@ -70,6 +70,16 @@ Additionally, you can toggle the visibility of the grid, selection boxes, icon gizmos, and camera frustums in the 3D scene. + There is a context menu in the \uicontrol 3D view. To open it, right-click + in the \uicontrol 3D view. From the context menu you can: + \list + \li Create cameras, lights, and models. + \li Open \uicontrol {Material Editor} and edit materials. + \li Delete components + \list + + \image 3d-view-context-menu.png + To refresh the contents of the \uicontrol{3D} view, press \key P or select the \inlineimage icons/reset.png (\uicontrol {Reset View}) button. diff --git a/doc/qtdesignstudio/src/qtquick3d-editor/qtdesignstudio-3d-lights.qdoc b/doc/qtdesignstudio/src/qtquick3d-editor/qtdesignstudio-3d-lights.qdoc index deb6edbb640..d8fca3e3461 100644 --- a/doc/qtdesignstudio/src/qtquick3d-editor/qtdesignstudio-3d-lights.qdoc +++ b/doc/qtdesignstudio/src/qtquick3d-editor/qtdesignstudio-3d-lights.qdoc @@ -36,9 +36,14 @@ As a secondary light source, you can use \l{Setting the Light Probe} {image-based lighting}. - To add light components to your UI, drag-and-drop them from - \uicontrol Components > \uicontrol {Qt Quick 3D} to the \l {3D} view or to - \l Navigator > \uicontrol {Scene Environment} > \uicontrol Scene. + To add a light component to your UI, do one of the following: + \list + \li Drag a light component from \uicontrol Components > + \uicontrol {Qt Quick 3D} to the \l {3D} view or to + \l Navigator > \uicontrol {View3D} > \uicontrol Scene. + \li Right-click in the \uicontrol 3D view and select + \uicontrol Create > \uicontrol Lights from the context menu. + \endlist If you cannot find the light components in \uicontrol {Components}, add the \uicontrol {Qt Quick 3D} module to your project as instructed in diff --git a/doc/qtdesignstudio/src/qtquick3d-editor/qtdesignstudio-3d-model.qdoc b/doc/qtdesignstudio/src/qtquick3d-editor/qtdesignstudio-3d-model.qdoc index e4253f0bb60..0893eadd975 100644 --- a/doc/qtdesignstudio/src/qtquick3d-editor/qtdesignstudio-3d-model.qdoc +++ b/doc/qtdesignstudio/src/qtquick3d-editor/qtdesignstudio-3d-model.qdoc @@ -37,14 +37,21 @@ \image studio-3d-models.png "Various 3D models in the 3D view" - A Model component loads mesh data from a file. You can modify how the + A model component loads mesh data from a file. You can modify how the component is shaded by using materials. For more information, see \l {Materials and Shaders} and \l {Creating Custom Materials}. - You can drag-and-drop a model from \uicontrol Components - > \uicontrol {Qt Quick 3D} > \uicontrol {Qt Quick 3D} to the \l {3D} view or - to \l Navigator > \uicontrol {Scene Environment} > \uicontrol Scene. If the - models are not displayed in \uicontrol {Components}, you should add the + To add a model component to your UI, do one of the following: + \list + \li Drag a model component from \uicontrol Components > + \uicontrol {Qt Quick 3D} to the \l {3D} view or to + \l Navigator > \uicontrol {View3D} > \uicontrol Scene. + \li Right-click in the \uicontrol 3D view and select + \uicontrol Create > \uicontrol Primitives from the context menu. + \note You can not create \uicontrol Empty models this way. + \endlist + + If you cannot find the model components in \uicontrol {Components}, add the \uicontrol QtQuick3D module to your project, as described in \l {Adding and Removing Modules}.