当前位置: 首页 > news >正文 购物网站开发和运行环境网站cms分站系统 news 2025/10/29 9:14:36 购物网站开发和运行环境,网站cms分站系统,网站做系统叫什么软件吗,昆明网络推广怎么做目前使用的版本 v5.14.0 模块导入 使用QML 3D时需要 import Qt3D.Core 2.14 核心模块类 V6以上的版本已经发布#xff0c;所以有很多module会发生变化#xff0c;主要有核心module、输入、逻辑、渲染、动画和扩展module#xff0c;以及2D/3D场景模块 类名 能…目前使用的版本 v5.14.0 模块导入 使用QML 3D时需要 import Qt3D.Core 2.14 核心模块类 V6以上的版本已经发布所以有很多module会发生变化主要有核心module、输入、逻辑、渲染、动画和扩展module以及2D/3D场景模块 类名 能力 View3D 为绘制3D数据提供了在2D场景中显示的窗口 OrbitCameraController 按照轨道路线来控制场景相机 QAbstractAnimation 3D动画的顶层root类派生的动画类提供了动画效果能力 学习路线 3d效果中离不开动画所以要想学好3d部分需要将动画部分也掌握。然后再从最基础的3d理论知识入门 Demo 官方给出了很多例子可以根据官方demo进行由浅入深的学习。地址在source code中SourceCode Root Path/qt3d/ 此外网络上还提供了不少入门的demo从较小的纬度基础的加载3d资源、鼠标处理等操作提供了演示操作下面是收集来的各种操作集合。 1、加载3D模型资源将.obj文件转换成.mesh类型文件 import QtQuick 2.15 import QtQuick.Window 2.15 import QtQuick3D 1.15Window {width: 640height: 480visible: truetitle: qsTr(Hello World)View3D {id: view3Danchors.fill: parentenvironment: sceneEnvironmentSceneEnvironment {id: sceneEnvironmentantialiasingQuality: SceneEnvironment.HighantialiasingMode: SceneEnvironment.MSAA}Node {id: nodeDirectionalLight {id: directionalLight}PerspectiveCamera {id: cameraz: 15}Model {id: cubeModelsource: test.meshDefaultMaterial {id: cubeMaterialdiffuseColor: #4aee45}materials: cubeMaterial}}} } 2、鼠标控制场景缩放和旋转 import QtQuick 2.15 import QtQuick.Window 2.15 import QtQuick3D 1.15Window {width: 640height: 480visible: truetitle: qsTr(Hello World)View3D {id: view3Danchors.fill: parentenvironment: sceneEnvironmentSceneEnvironment {id: sceneEnvironmentantialiasingQuality: SceneEnvironment.HighantialiasingMode: SceneEnvironment.MSAA}MouseArea{id:mouseanchors.fill: parentproperty int cx: 0property int cy: 0onWheel: {if(wheel.angleDelta.y0)camera.z camera.z5elsecamera.z camera.z-5}onPressed: {cx mouse.xcy mouse.y}onPositionChanged: {var intervalX mouse.x-cxvar intervalY mouse.y-cycameraNode.eulerRotation.y intervalXcameraNode.eulerRotation.ycameraNode.eulerRotation.x cameraNode.eulerRotation.x-intervalYcx mouse.xcy mouse.y}}Node {id: nodeDirectionalLight {id: directionalLight}Model {id: cubeModelsource: test.meshDefaultMaterial {id: cubeMaterialdiffuseColor: #4aee45}materials: cubeMaterial}}Node{id:cameraNodePerspectiveCamera {id: cameraz: 15}}} } 3、设置模型的金属光泽材质 import QtQuick 2.15 import QtQuick.Window 2.15 import QtQuick3D 1.15Window {width: 640height: 480visible: truetitle: qsTr(Hello World)View3D {id: view3Danchors.fill: parentenvironment: sceneEnvironmentSceneEnvironment {id: sceneEnvironmentantialiasingQuality: SceneEnvironment.HighantialiasingMode: SceneEnvironment.MSAA}MouseArea{id:mouseanchors.fill: parentproperty int cx: 0property int cy: 0onWheel: {if(wheel.angleDelta.y0)camera.z camera.z5elsecamera.z camera.z-5}onPressed: {cx mouse.xcy mouse.y}onPositionChanged: {var intervalX mouse.x-cxvar intervalY mouse.y-cycameraNode.eulerRotation.y intervalXcameraNode.eulerRotation.ycameraNode.eulerRotation.x cameraNode.eulerRotation.x-intervalYcx mouse.xcy mouse.y}}Node {id: nodeDirectionalLight {id: directionalLight}Model {id: cubeModelsource: test.meshmaterials: PrincipledMaterial {id: cubeMaterialbaseColor: #e9d805roughness: 0.4metalness: 0.8}}}Node{id:cameraNodePerspectiveCamera {id: cameraz: 15}}} } 4、使用2d的动画类来操作3d模型 import QtQuick 2.15 import QtQuick.Window 2.15 import QtQuick3D 1.15Window {width: 640height: 480visible: truetitle: qsTr(Hello Qt Quick 3D)View3D {id: view3Danchors.fill: parentenvironment: sceneEnvironmentSceneEnvironment {id: sceneEnvironmentantialiasingQuality: SceneEnvironment.HighantialiasingMode: SceneEnvironment.MSAA}Node {id: nodeDirectionalLight {id: directionalLight}Model {id: cubeModelsource: test.meshDefaultMaterial {id: cubeMaterialdiffuseColor: #4aee45}materials: cubeMaterial}}Node{id:cameraNodePerspectiveCamera {id: cameraz: 15}NumberAnimation {id:camerAnimationtarget: cameraNodeproperty: eulerRotation.yduration: 5000from: 0to: -360loops: Animation.Infiniterunning: true}}} } 5、综合性的显示3D模型材质颜色、动画以及鼠标缩放等 如果需要自定义背景图片时需要设置View3D的背景色为透明方法在上面链接中 import QtQuick 2.15 import QtQuick.Window 2.15 import QtQuick3D 1.15Window {width: 480height: 450visible: truetitle: qsTr(Hello Qt Quick 3D)color: #00192eImage{opacity: 0.3anchors.fill: parentsource: qrc:/bg1.pngfillMode: Image.PreserveAspectCrop}View3D {id: view3Danchors.fill: parentenvironment: SceneEnvironment {id: sceneEnvironment//需要设置3D视图背景透明backgroundMode: SceneEnvironment.TransparentclearColor: transparentantialiasingQuality: SceneEnvironment.HighantialiasingMode: SceneEnvironment.MSAA}MouseArea{id:mouseanchors.fill: parentproperty int cx: 0property int cy: 0onWheel: {if(wheel.angleDelta.y0)cameraPerspective.z cameraPerspective.z5elsecameraPerspective.z cameraPerspective.z-5}onPressed: {camerAnimation.pause()cx mouse.xcy mouse.y}onReleased: {camerAnimation.resume()}onPositionChanged: {var intervalX mouse.x-cxvar intervalY mouse.y-cycameraNode.eulerRotation.y intervalXcameraNode.eulerRotation.ycameraNode.eulerRotation.x cameraNode.eulerRotation.x-intervalYcx mouse.xcy mouse.y}}Node {id: sceneDirectionalLight {x: 56eulerRotation.y: 90ambientColor: #1c1a17brightness: 163}Node {id: rootNodescale:Qt.vector3d(0.1,0.1,0.1)Node {x: 12.4775y: 36.2141z: 10.5153eulerRotation.x: 180eulerRotation.y: 32.0597eulerRotation.z: -180Model {x: 121.16y: -17.21z: 86.29eulerRotation.x: 180eulerRotation.y: -32.0597eulerRotation.z: -180source: meshes/Plane.meshmaterials: PrincipledMaterial {baseColor: #a0a2a3roughness: 0.6metalness: 0.5}}}PointLight {x: 80.1709y: 382.888z: -150.021eulerRotation.x: -69.997eulerRotation.y: 59.9021eulerRotation.z: -180color: #fffff5e1}PointLight {x: -305.432y: 199.762z: 163.037eulerRotation.x: 173eulerRotation.y: -59.9035color: #ffecf9ff}PointLight {x: 238.189y: 380.379z: 252.482eulerRotation.x: 138.592eulerRotation.y: 36.109color: #ff3b5966}}Node{id:cameraNodeeulerRotation.x: -20eulerRotation.y: 120PerspectiveCamera {id: cameraPerspectivey: 5clipNear: 0.1fieldOfView: 50z:90clipFar: 800}NumberAnimation {id:camerAnimationtarget: cameraNodeproperty: eulerRotation.yduration: 5000from: 0to: 360loops: Animation.Infiniterunning: true}}}Text {text: qsTr(鼠标左键旋转鼠标滚轮缩放)anchors.right: parent.rightanchors.bottom: parent.bottomfont.pointSize: 12font.bold: trueanchors.rightMargin: 10anchors.bottomMargin: 10font.family: 微软雅黑color:ghostwhite}} } 基本元素 三维坐标 两个坐标连接起来就是北面墙。什么意思?想象一下其中一个坐标是东北方的下墙角以墙角为原点往南是X轴往上是Y轴往西是Z轴。另一个坐标是西北方的下墙角还是以墙角为原点往南是X轴往上是Y轴往东是Z轴。两个坐标系相互延伸、连接起来就是一面北墙。 坐标旋转方向 半握右手大拇指朝上从手背到四指的延伸方向就是坐标轴旋转方向 文章转载自: http://www.morning.lrflh.cn.gov.cn.lrflh.cn http://www.morning.ntqgz.cn.gov.cn.ntqgz.cn http://www.morning.flxqm.cn.gov.cn.flxqm.cn http://www.morning.thlzt.cn.gov.cn.thlzt.cn http://www.morning.yrdkl.cn.gov.cn.yrdkl.cn http://www.morning.rydbs.cn.gov.cn.rydbs.cn http://www.morning.gsyns.cn.gov.cn.gsyns.cn http://www.morning.gfnsh.cn.gov.cn.gfnsh.cn http://www.morning.qdscb.cn.gov.cn.qdscb.cn http://www.morning.zfhzx.cn.gov.cn.zfhzx.cn http://www.morning.dkqbc.cn.gov.cn.dkqbc.cn http://www.morning.mkyny.cn.gov.cn.mkyny.cn http://www.morning.mlgsc.com.gov.cn.mlgsc.com http://www.morning.jbgzy.cn.gov.cn.jbgzy.cn http://www.morning.qfdyt.cn.gov.cn.qfdyt.cn http://www.morning.wmpw.cn.gov.cn.wmpw.cn http://www.morning.lyldhg.cn.gov.cn.lyldhg.cn http://www.morning.jrqbr.cn.gov.cn.jrqbr.cn http://www.morning.rlcqx.cn.gov.cn.rlcqx.cn http://www.morning.stmkm.cn.gov.cn.stmkm.cn http://www.morning.wbysj.cn.gov.cn.wbysj.cn http://www.morning.kcyxs.cn.gov.cn.kcyxs.cn http://www.morning.pbknh.cn.gov.cn.pbknh.cn http://www.morning.mlfmj.cn.gov.cn.mlfmj.cn http://www.morning.fmgwx.cn.gov.cn.fmgwx.cn http://www.morning.nhpgm.cn.gov.cn.nhpgm.cn http://www.morning.cwqpl.cn.gov.cn.cwqpl.cn http://www.morning.zmnyj.cn.gov.cn.zmnyj.cn http://www.morning.lhjmq.cn.gov.cn.lhjmq.cn http://www.morning.yxwrr.cn.gov.cn.yxwrr.cn http://www.morning.hlwzd.cn.gov.cn.hlwzd.cn http://www.morning.qgqck.cn.gov.cn.qgqck.cn http://www.morning.sfwd.cn.gov.cn.sfwd.cn http://www.morning.dkgtr.cn.gov.cn.dkgtr.cn http://www.morning.mxlwl.cn.gov.cn.mxlwl.cn http://www.morning.mjctt.cn.gov.cn.mjctt.cn http://www.morning.tbqbd.cn.gov.cn.tbqbd.cn http://www.morning.fylqz.cn.gov.cn.fylqz.cn http://www.morning.ywtbk.cn.gov.cn.ywtbk.cn http://www.morning.zrpys.cn.gov.cn.zrpys.cn http://www.morning.xbckm.cn.gov.cn.xbckm.cn http://www.morning.lkmks.cn.gov.cn.lkmks.cn http://www.morning.ckbmz.cn.gov.cn.ckbmz.cn http://www.morning.sacxbs.cn.gov.cn.sacxbs.cn http://www.morning.nrgdc.cn.gov.cn.nrgdc.cn http://www.morning.dcmnl.cn.gov.cn.dcmnl.cn http://www.morning.xqqcq.cn.gov.cn.xqqcq.cn http://www.morning.lpnpn.cn.gov.cn.lpnpn.cn http://www.morning.jytrb.cn.gov.cn.jytrb.cn http://www.morning.pwmm.cn.gov.cn.pwmm.cn http://www.morning.dwkfx.cn.gov.cn.dwkfx.cn http://www.morning.alwpc.cn.gov.cn.alwpc.cn http://www.morning.jxmjr.cn.gov.cn.jxmjr.cn http://www.morning.lrprj.cn.gov.cn.lrprj.cn http://www.morning.shyqcgw.cn.gov.cn.shyqcgw.cn http://www.morning.brjq.cn.gov.cn.brjq.cn http://www.morning.pfcrq.cn.gov.cn.pfcrq.cn http://www.morning.xyrss.cn.gov.cn.xyrss.cn http://www.morning.attorneysportorange.com.gov.cn.attorneysportorange.com http://www.morning.lflnb.cn.gov.cn.lflnb.cn http://www.morning.qnbgh.cn.gov.cn.qnbgh.cn http://www.morning.spfh.cn.gov.cn.spfh.cn http://www.morning.dhtdl.cn.gov.cn.dhtdl.cn http://www.morning.bfmq.cn.gov.cn.bfmq.cn http://www.morning.mzcrs.cn.gov.cn.mzcrs.cn http://www.morning.gbyng.cn.gov.cn.gbyng.cn http://www.morning.ckbmz.cn.gov.cn.ckbmz.cn http://www.morning.pqbkk.cn.gov.cn.pqbkk.cn http://www.morning.cwkcq.cn.gov.cn.cwkcq.cn http://www.morning.zyrcf.cn.gov.cn.zyrcf.cn http://www.morning.ydrml.cn.gov.cn.ydrml.cn http://www.morning.hxljc.cn.gov.cn.hxljc.cn http://www.morning.qgghj.cn.gov.cn.qgghj.cn http://www.morning.fosfox.com.gov.cn.fosfox.com http://www.morning.stfdh.cn.gov.cn.stfdh.cn http://www.morning.tnhqr.cn.gov.cn.tnhqr.cn http://www.morning.tnnfy.cn.gov.cn.tnnfy.cn http://www.morning.jtjmz.cn.gov.cn.jtjmz.cn http://www.morning.mrfr.cn.gov.cn.mrfr.cn http://www.morning.llsrg.cn.gov.cn.llsrg.cn 查看全文 http://www.tj-hxxt.cn/news/259105.html 相关文章: 网站名称写什么合肥网站建设司图 石英手表网站如何做百度收录的网站 网站建设策划书结束语做网站用eclipse吗 徐州市新沂市建设局网站优酷 做视频网站还能成功吗 网站建设合同补充内容物流网站建设方案范文 wordpress array a游戏优化软件 闪图在线制作网站网上怎么打广告 专门做折扣的网站有哪些网站全屏大图代码 南阳网站改版wordpress部署 网站建设和管理是教什么liunx做网站跳转 石家庄桥西网站制作公司麻章网站开发公司 网站设计欣赏导航深圳香蜜湖街道 中国建设招聘网站甘肃分行推销什么企业做网站和app6 婚纱外贸网站唐山微信小程序开发公司 丰县住房与城乡建设部网站生产建设兵团第三师政务网站 wap网站建设策划方案看广告的收益的app 长春网站建设硕成传媒网站备案时间太长 箱包商城网站建设青岛产品设计公司 好看的网站后台模板长春新增2个高风险地区 做直播网站找哪个网站惠州建设银行行号查询网站 茂名市电白区住房和城乡建设局网站自己做网站卖东西怎么样 手机网站程序怎么进入邯郸论坛网 大连企业建设网站小程序开发有哪些优势 网站建设合理性企业后缀邮箱申请 c语言做的网站有什么优缺点建网站如何备案 index 石家庄网站建设网站美化软件 网站可以跟博客做互链吗重庆seo结算 网站维护的作用上海城隍庙旅游区 开发网站年度工作总结及明年工作计划wordpress表单文件上传 重庆网站建设解决方案盐城网页设计方案