| Sunshine lighting is not only the important reference and evaluation norm of estate industry,but also the important consideration for buyers and residents purchase building property and improve the conditions of living.Domestic and foreign academic has conducted a series of studies to simulation of sunshine lighting in this area,There are many professional lighting simulation software in domestic and international markets.However,for national sunshine lighting standards under China’s current status of the city,those applications and studies still have many problems such like generality poorly,reality badly and the degree of standardization doesn’t meet the state regulations.In this paper,the research focused on precisely sunshine lighting simulation and standardization aspects.In addition,also analyzes the building model’s optimization method and a series of algorithms and implement the three-dimensional sunshine lighting platform based on OGRE ultimately.The primary work is as follows:Firstly,this paper makes a deep study of the astronomy exact sun position algorithms,including the core of the solar declination algorithm and the sun equation of time algorithm,and then implemented it with OGRE.Secondly,the paper proposes a method for optimization building model.Make the building model with less triangle faces separate with room scene model and load it when need.It is ensure the reality just use less memory space.Thirdly,this paper proposes the valid sunshine time algorithm based on model faces.This algorithm based on the shadow check algorithm in the paper.By selecting the particular sampling points to check whether under shadow,and then check and count the valid sunshine time.Fourthly,the paper proposes the method between model software and OGRE in coordinate system conversion.Make the model consistent with the real world by unified and standard unit.At the last,faced with the problem in process of pick the room model inaccuracy based on bounding box algorithm,implemented the accurate pick algorithm based on model faces.Finally,implemented the sunshine lighting simulation platform and it do good work. |