新疆农业科学 ›› 2025, Vol. 62 ›› Issue (3): 609-618.DOI: 10.6048/j.issn.1001-4330.2025.03.010
收稿日期:
2024-09-03
出版日期:
2025-03-20
发布日期:
2025-05-14
通信作者:
张婧婧(1981-),女,湖南宁乡人,副教授,研究方向为农业信息化技术,(E-mail) zjj@xjau.edu.cn作者简介:
雷嘉诚(1995-),男,新疆石河子人,硕士,研究方向为农业信息化,(E-mail) 1425912125@qq.com
基金资助:
LEI Jiacheng(), ZHANG Jingjing(
), HAN Bo, LU Ziao
Received:
2024-09-03
Published:
2025-03-20
Online:
2025-05-14
Supported by:
摘要:
【目的】基于小麦虚拟生长的三维可视化功能定量化研究小麦生长规律,为玉米、棉花等作物的可视化研究提供一定的技术积累。【方法】应用PyOpenGL构建小麦虚拟生长三维可视化系统,呈现虚拟小麦在生长过程中的形态、颜色的变化及对光照环境的感知,将形态数据与构建模型、纹理映射、光照与阴影技术融合,用以实现小麦动态的生长变化及其田间环境的模拟,并结合Pyside6用户界面开发工具,设计可视化系统的交互与信息显示功能。【结果】研究依据真实小麦的形态特征与实测数据,完成了虚拟小麦生长三维可视化系统的构建,可动态展示小麦生长的变化,实时显示当前小麦的信息描述与周边环境的模拟。【结论】该系统能够直观且连贯的展示小麦生长过程,同时具有较高的参数化和扩展性,可通过修改基础数据及参数快速生成对应的生长效果。
中图分类号:
雷嘉诚, 张婧婧, 韩博, 鲁子翱. 基于PyOpenGL的虚拟小麦生长模拟及可视化系统[J]. 新疆农业科学, 2025, 62(3): 609-618.
LEI Jiacheng, ZHANG Jingjing, HAN Bo, LU Ziao. Research on virtual wheat growth simulation and visualization system based on PyOpenGL[J]. Xinjiang Agricultural Sciences, 2025, 62(3): 609-618.
时间 Time (M/D) | 茎长 Stem length | 茎宽 Stem width | 叶1高 Blade 1 height | 叶1长 Blade 1 lenght | 叶2高 Blade 2 height | 叶2长 Blade 2 lenght | 叶3高 Blade 3 height | 叶3长 Blade 3 lenght | 叶4高 Blade 4 height | 叶4长 Blade 4 lenght | 叶5高 Blade 5 height | 叶5长 Blade 5 lenght | 叶6高 Blade 6 height | 叶6长 Blade 6 lenght | 穗长 Spike length |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6/24 | 526.8 | 4.1 | 41.5 | 97.9 | 52.9 | 149.3 | 111.1 | 164.1 | 180.2 | 153.6 | 282.4 | 154.9 | 482.7 | 148.9 | 69.4 |
6/24 | 558.9 | 3.9 | 13.6 | 54.7 | 44.9 | 122.9 | 108.8 | 172.1 | 172.2 | 156.2 | 284.7 | 132.1 | 498.6 | 157.9 | 67.4 |
7/2 | 552.2 | 3.5 | 18.9 | 57.7 | 41.7 | 59.7 | 68.7 | 158.8 | 170.1 | 145.1 | 272.3 | 176 | 478.8 | 130.7 | 60.5 |
7/2 | 554 | 3.3 | 11.8 | 83.1 | 28.3 | 75.6 | 119.5 | 83.8 | 251.2 | 157.2 | 309.7 | 200.2 | 473.9 | 169.8 | 52.8 |
7/2 | 604.5 | 3.5 | 36.4 | 71.8 | 67.1 | 99.3 | 102.7 | 179.8 | 188.9 | 195.4 | 298.4 | 193.3 | 522.4 | 182.5 | 62.6 |
7/2 | 755.5 | 4.1 | 66.3 | 98.2 | 105.5 | 181.4 | 201 | 154.5 | 376.5 | 257.4 | 412.7 | 264.9 | 683.6 | 200.5 | 81.2 |
…… | …… | …… | …… | …… | …… | …… | …… | …… | …… | …… | …… | …… | …… | …… | …… |
表1 部分实测数据
Tab.1 Part of the measured data table (mm)
时间 Time (M/D) | 茎长 Stem length | 茎宽 Stem width | 叶1高 Blade 1 height | 叶1长 Blade 1 lenght | 叶2高 Blade 2 height | 叶2长 Blade 2 lenght | 叶3高 Blade 3 height | 叶3长 Blade 3 lenght | 叶4高 Blade 4 height | 叶4长 Blade 4 lenght | 叶5高 Blade 5 height | 叶5长 Blade 5 lenght | 叶6高 Blade 6 height | 叶6长 Blade 6 lenght | 穗长 Spike length |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6/24 | 526.8 | 4.1 | 41.5 | 97.9 | 52.9 | 149.3 | 111.1 | 164.1 | 180.2 | 153.6 | 282.4 | 154.9 | 482.7 | 148.9 | 69.4 |
6/24 | 558.9 | 3.9 | 13.6 | 54.7 | 44.9 | 122.9 | 108.8 | 172.1 | 172.2 | 156.2 | 284.7 | 132.1 | 498.6 | 157.9 | 67.4 |
7/2 | 552.2 | 3.5 | 18.9 | 57.7 | 41.7 | 59.7 | 68.7 | 158.8 | 170.1 | 145.1 | 272.3 | 176 | 478.8 | 130.7 | 60.5 |
7/2 | 554 | 3.3 | 11.8 | 83.1 | 28.3 | 75.6 | 119.5 | 83.8 | 251.2 | 157.2 | 309.7 | 200.2 | 473.9 | 169.8 | 52.8 |
7/2 | 604.5 | 3.5 | 36.4 | 71.8 | 67.1 | 99.3 | 102.7 | 179.8 | 188.9 | 195.4 | 298.4 | 193.3 | 522.4 | 182.5 | 62.6 |
7/2 | 755.5 | 4.1 | 66.3 | 98.2 | 105.5 | 181.4 | 201 | 154.5 | 376.5 | 257.4 | 412.7 | 264.9 | 683.6 | 200.5 | 81.2 |
…… | …… | …… | …… | …… | …… | …… | …… | …… | …… | …… | …… | …… | …… | …… | …… |
名称Name | 功能介绍Function introduction |
---|---|
清除按钮 Clear button | 清除视角操作并恢复初始视角 |
重置按钮 Reset button | 清除当前生长变化并恢复至初始生长状态 |
开始按钮 Start button | 开始动态模拟小麦生长与暂停后恢复动态模拟 |
暂停按钮 Pause | 暂停动态模拟小麦 |
进度条滑块 Progress bar slider | 可通过鼠标自由拉动滑块位置以展现不同时间下的小麦 |
相机移动快捷键 Camera movement short cut key | W、A、S、D、Q、E键控制相机前、左、后、右、上、下移动 |
相机视野快捷键 Camera field of view shortcut key | 鼠标滚轮前后滚动,减小或增大相机视野 |
旋转观察快捷键 Rotate obsrvation shortcat key | 鼠标左键双击后左右移动鼠标可控制小麦进行旋转,按下X键后可进入使用Z、C键来微调左右旋转角度模式 |
表2 系统功能按钮与快捷键功能
Tab.2 System function buttons and shortcut keys function table
名称Name | 功能介绍Function introduction |
---|---|
清除按钮 Clear button | 清除视角操作并恢复初始视角 |
重置按钮 Reset button | 清除当前生长变化并恢复至初始生长状态 |
开始按钮 Start button | 开始动态模拟小麦生长与暂停后恢复动态模拟 |
暂停按钮 Pause | 暂停动态模拟小麦 |
进度条滑块 Progress bar slider | 可通过鼠标自由拉动滑块位置以展现不同时间下的小麦 |
相机移动快捷键 Camera movement short cut key | W、A、S、D、Q、E键控制相机前、左、后、右、上、下移动 |
相机视野快捷键 Camera field of view shortcut key | 鼠标滚轮前后滚动,减小或增大相机视野 |
旋转观察快捷键 Rotate obsrvation shortcat key | 鼠标左键双击后左右移动鼠标可控制小麦进行旋转,按下X键后可进入使用Z、C键来微调左右旋转角度模式 |
[1] |
李炜, 朱德利, 王青, 等. 监测生长状态和环境响应的作物数字孪生系统研究综述[J]. 中国农业科技导报, 2022, 24(6): 90-105.
DOI |
LI Wei, ZHU Deli, WANG Qing, et al. Research review on crop digital twin system for monitoring growth status and environmental response[J]. Journal of Agricultural Science and Technology, 2022, 24(6): 90-105.
DOI |
|
[2] | 任月. 基于分形随机参数L系统的马铃薯叶茎模拟[D]. 太谷: 山西农业大学, 2019. |
REN Yue. Simulation of potato leaf and stem based on fractal random parameter L system[D]. Taigu: Shanxi Agricultural University, 2019. | |
[3] | 田宇. 基于多边形建模和动画关键帧技术的小麦生长三维可视化[D]. 太谷: 山西农业大学, 2020. |
TIAN Yu. Three-dimensional visualization of wheat growth based on polygon modeling and animation key frame technology[D]. Taigu: Shanxi Agricultural University, 2020. | |
[4] | 诸叶平, 李世娟, 李书钦. 作物生长过程模拟模型与形态三维可视化关键技术研究[J]. 智慧农业, 2019, 1(1): 53-66. |
ZHU Yeping, LI Shijuan, LI Shuqin. Research on key technologies of crop growth process simulation model and morphological 3D visualization[J]. Smart Agriculture, 2019, 1(1): 53-66.
DOI |
|
[5] | 赵凯, 唐丽华, 张姝婧. 基于OpenGL的交互式三维树木建模与可视化研究[J]. 浙江农林大学学报, 2019, 36(1): 138-147. |
ZHAO Kai, TANG Lihua, ZHANG Shujing. Research on interactively 3D tree modeling and visualization based on OpenGL[J]. Journal of Zhejiang A & F University, 2019, 36(1): 138-147. | |
[6] | 刘丹, 诸叶平, 刘海龙, 等. 植物三维可视化研究进展[J]. 中国农业科技导报, 2015, 17(1): 23-31. |
LIU Dan, ZHU Yeping, LIU Hailong, et al. Research progress on 3D plant visualization[J]. Journal of Agricultural Science and Technology, 2015, 17(1): 23-31.
DOI |
|
[7] |
胡春华, 李萍萍. 树木三维可视化建模技术研究述评[J]. 南京林业大学学报(自然科学版), 2015, 39(6): 148-154.
DOI |
HU Chunhua, LI Pingping. A survey of 3D visualization modeling technologies for trees[J]. Journal of Nanjing Forestry University (Natural Sciences Edition), 2015, 39(6): 148-154. | |
[8] | Blaise F, Barczi J F, Jaeger M, et al. Simulation of the growth of plants—modeling of metamorphosis and spatial interactions in the architecture and development of plants —[M]// Cyberworlds. Tokyo: Springer Japan, 1998: 81-109. |
[9] | Prusinkiewicz P, Hanan J, Měch R. An L-system-based plant modeling language[C]// Applications of Graph Transformations with Industrial Relevance. Berlin, Heidelberg: Springer Berlin Heidelberg, 2000: 395-410. |
[10] | Lintermann B, Deussen O. Interactive modeling of plants[J]. IEEE Computer Graphics and Applications, 1999, 19(1): 56-65. |
[11] | 孙晨阳. 小麦生长的三维可视化建模方法研究[D]. 郑州: 郑州大学, 2019. |
SUN Chenyang. Study on 3D visualization modeling method of wheat growth[D]. Zhengzhou: Zhengzhou University, 2019. | |
[12] | 许豪, 陈可. PyOpenGL在三维图形动画中的应用[J]. 自动化与仪器仪表, 2017,(2): 131-133, 136. |
XU Hao, CHEN Ke. Application of PyOpenGL in three-dimensional graphics animation[J]. Automation & Instrumentation, 2017,(2): 131-133, 136. | |
[13] | 李书钦, 诸叶平, 刘海龙, 等. 基于NURBS曲面的小麦叶片三维可视化研究与实现[J]. 中国农业科技导报, 2016, 18(3): 89-95. |
LI Shuqin, ZHU Yeping, LIU Hailong, et al. Research and realization of wheat leaf three-dimensional visualization based on NURBS surface[J]. Journal of Agricultural Science and Technology, 2016, 18(3): 89-95.
DOI |
|
[14] | 张成城. 基于多场景建模的三维海洋可视化研究[D]. 南京: 南京邮电大学, 2020. |
ZHANG Chengcheng. Research on 3D ocean visualization based on multi-scene modeling[D]. Nanjing: Nanjing University of Posts and Telecommunications, 2020. | |
[15] | 衣霞. 浅析可视化技术对小麦生长的影响[J]. 山西农经, 2019,(2): 111. |
YI Xia. Analysis on the influence of visualization technology on wheat growth[J]. Shanxi Agricultural Economy, 2019,(2): 111. | |
[16] | 张徐洲. 小麦叶片双向反射特性的研究[D]. 杭州: 浙江大学, 2017. |
ZHANG Xuzhou. Study on bidirectional reflection characteristics of wheat leaves[D]. Hangzhou: Zhejiang University, 2017. | |
[17] | 国桂环, 曾睿, 张海霞. 应用WebGL构建富硒药用植物虚拟展示平台[J]. 东北林业大学学报, 2023, 51(7): 169-174. |
GUO Guihuan, ZENG Rui, ZHANG Haixia. Construction of Se rich medicinal plant virtual display platform using WebGL[J]. Journal of Northeast Forestry University, 2023, 51(7): 169-174. | |
[18] | 刘天桥. 基于OpenGL的天基预警雷达视景仿真方法研究[D]. 西安: 西安电子科技大学, 2013. |
LIU Tianqiao. Research on visual simulation method of space-based early warning radar based on OpenGL[D]. Xi’an: Xidian University, 2013. | |
[19] | 田悦, 赵萍, 李永奎, 等. 虚拟植物研究现状与建模方法分析[J]. 江苏农业科学, 2018, 46(22): 14-19. |
TIAN Yue, et al. Research status of virtual plants and analysis of modeling methods[J]. Jiangsu Agricultural Sciences, 2018, 46(22): 14-19. | |
[20] | 温维亮, 郭新宇, 卢宪菊, 等. 玉米器官三维模板资源库构建[J]. 农业机械学报, 2016, 47(8): 266-272. |
WEN Weiliang, GUO Xinyu, LU Xianju, et al. Three-dimensional template resource library construction of maize organs[J]. Transactions of the Chinese Society for Agricultural Machinery, 2016, 47(8): 266-272. | |
[21] | 李书钦. 小麦生长模拟模型与三维可视化技术研究[D]. 北京: 中国农业科学院, 2017. |
LI Shuqin. Study on wheat growth simulation model and 3D visualization technology[D]. Beijing: Chinese Academy of Agricultural Sciences, 2017. |
[1] | 孙刚刚, 郭飞, 聂凌帆, 田文强, 王泓懿, 史永清, 吴利, 艾红玉, 张金汕, 石书兵. 种肥分离对冬小麦光合特性、干物质积累和产量形成的影响[J]. 新疆农业科学, 2025, 62(3): 593-599. |
[2] | 孙娜, 马林, 邹辉, 张志辉, 张胜军, 黄倩楠, 杨蕙, 登斯拉木·吐尔逊拜, 李志彬, 曹俊梅, 雷钧杰. 氮磷钾配施对冬小麦产量和品质的影响及其肥效分析[J]. 新疆农业科学, 2025, 62(1): 1-12. |
[3] | 陈慧, 张永强, 毕海燕, 谭军, 陈传信, 徐其江, 聂石辉, 于建新, 陆东, 雷钧杰. 不同春小麦品种在新疆旱作区产量形成的特征分析[J]. 新疆农业科学, 2025, 62(1): 13-20. |
[4] | 谢秀荣, 张永强, 海峰, 雷钧杰, 吕晓庆, 陈传信, 徐其江, 聂石辉, 王冀川. 匀播增密对适期晚播冬小麦群体结构及产量的影响[J]. 新疆农业科学, 2025, 62(1): 21-28. |
[5] | 张妍婷, 张永强, 雷钧杰, 陈慧, 陈传信, 徐其江, 聂石辉, 徐文修. 不同施磷方式对干播湿出冬小麦光合生理特性及产量的影响[J]. 新疆农业科学, 2025, 62(1): 29-36. |
[6] | 张景灿, 徐其江, 张永强, 雷钧杰, 吕晓庆, 陈传信, 聂石辉, 徐文修. 不同调节剂及喷施次数对滴灌冬小麦茎秆特征和抗倒伏性的影响[J]. 新疆农业科学, 2025, 62(1): 37-44. |
[7] | 海峰, 张永强, 谢秀荣, 吕晓庆, 陈传信, 徐其江, 聂石辉, 王冀川, 雷钧杰. 限量灌溉下不同滴灌量对滴灌冬小麦光合特性及产量的影响[J]. 新疆农业科学, 2025, 62(1): 45-52. |
[8] | 李杰, 徐其江, 张永强, 徐文修, 吕晓庆, 陈传信, 聂石辉, 雷钧杰. 不同类型尿素及施用方式对滴灌冬小麦产量形成和氮肥利用效率的影响[J]. 新疆农业科学, 2025, 62(1): 53-59. |
[9] | 马林, 黄倩楠, 杨蕙, 登斯拉木·吐尔逊拜, 邹辉, 孙娜, 雷钧杰. 不同氮肥配施腐殖酸策略对冬小麦光合特性及产量的影响[J]. 新疆农业科学, 2025, 62(1): 60-67. |
[10] | 陈传信, 张永强, 聂石辉, 徐其江, 雷钧杰. 微生物菌剂与氮肥配施对冬小麦光合特性和产量的影响[J]. 新疆农业科学, 2025, 62(1): 68-74. |
[11] | 王子健, 李刘龙, 赵焰辉, 徐林峰, 邱治中, 李召锋, 雷钧杰, 王笑, 万文亮, 姜东. 水氮耦合对斜坡滴灌春小麦冠层结构及光合速率的影响[J]. 新疆农业科学, 2025, 62(1): 75-86. |
[12] | 李娜, 吕彩霞, 信会男, 李永福, 赖宁, 耿庆龙, 陈署晃. 不同施氮量对滴灌小麦性状及根区土壤养分的影响[J]. 新疆农业科学, 2025, 62(1): 87-94. |
[13] | 李进, 沈煜洋, 邓菲菲, 陈江华, 孙婧婧, 李广阔, 高海峰. 新疆小麦有害生物发生现状及防控对策分析[J]. 新疆农业科学, 2024, 61(S1): 122-126. |
[14] | 方辉, 丁银灯, 范贵强, 高永红, 黄天荣. 新疆南疆小麦产业发展的现状及品质特性分析[J]. 新疆农业科学, 2024, 61(S1): 75-80. |
[15] | 王春生, 李剑峰, 张跃强, 樊哲儒, 王重, 高新, 时佳, 张宏芝, 王立红, 夏建强, 王芳平, 赵奇. 新疆主栽春小麦品种花药培养力基因型差异分析[J]. 新疆农业科学, 2024, 61(9): 2081-2086. |
阅读次数 | ||||||||||||||||||||||||||||||||||||||||||||||||||
全文 15
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||
摘要 118
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||