【发布时间】:2018-10-23 03:48:11
【问题描述】:
在这种情况下,算法适合的时间复杂度方程是什么?
A : O(NlogN)
B : O(logN^2)
其中 N 是对象(边界体)的数量,log 是交叉点的迭代次数(光线会反弹多少次)。
Set Camera Position (eye position)
IF (Object – is found in the scene)
| Create Bounding Volume (BV)
For (ALL BV)
| Get Min-Max Values for X,Y Coordinates
| Eliminate Intersection Testings
| IF (2 or more Objects are close in range)
| | Intersect(Ray, Object(s))
| | FOR (each Triangle (T) in the object)
| | | Intersect(Ray, T)
| | | E.g Detect Colour And Texture
| ELSE (Do not Intersect)
【问题讨论】:
标签: algorithm graphics time-complexity big-o raytracing