蒋芳
摘 要: 介绍了系统研发平台,将OpenGL与Direct3D作为三维程序开发工具,为了提高真实度,将3ds MAX 7.0软件作为三维模型的制作工具。通过硬件抽象层HAL和硬件仿真层HEL实现Direct3D的驱动,对室内软装三维场景进行制作。依据室内软装场景元素给出代理区域,将代理区域合理布局问题看作确定目标空间最优分布位置问题。依据室内装饰学获取先验知识,与功能需求相结合确定约束条件,形成约束代价函数,通过求解函数实现室内软装布局。实验结果表明该系统设计的室内软装真实感强,系统缺陷少。
关键词: 室内软装; 三维模拟系统; 设计; 布局; 约束; 场景元素
中图分类号: TN02?34; TP319 文献标识码: A 文章编号: 1004?373X(2018)09?0087?04
Abstract: The research and development platform of the system is introduced, in which the OpenGL and Direct3D are used as the three?dimensional program development tools, and the 3ds MAX 7.0 software is used as the authoring tool of 3D model to improve the reality. The driving of Direct3D is realized by means of hardware abstraction layer (HAL) and hardware emulation layer (HEL) to fabricate the 3D scene of indoor soft decoration. The agent area is given according to the scene elements of the indoor soft decoration, and its rational layout is regarded as the problem to determine the optimal distribution location of the target space. The prior knowledge obtained by indoor decoration is combined with the functional requirement to determine the constraint condition, and form the cost function of constraint. The layout of the indoor decoration is realized by means of the solving function. The experimental results show that the indoor soft decoration designed by the system has strong reality sense and less system defects.
Keywords: indoor soft decoration; three?dimensional simulation system; design; layout; constraint; scene element
0 引 言
当前,我国经济迅猛发展,人们的生活水平大大提升,对居住品质的要求越来越高。室内软装设计是室内设计的关键,近年来在整体装修中的重要程度越来越高[1?2]。但在展示室内软装设计方案时,设计师需从不同厂家采集样本,从而设计满足用户需求的室内软装,耗费了大量的人力物力。因此,设计一种室内软装三维模拟系统具有重要意义,能够为室内软装设计师带来极大的便利,使用户更加直观地了解设计的软装[3]。
传统三维模拟系统主要采用几何造型建模方法和利用设备得到场景信息建模方法,前者成本低,然而真实感较差,后者开发工具性能差,真实感无法达到令人满意的程度[4]。针对上述系统的弊端,设计与实现了一种新的室内软装三维模拟系统。……