2009年3月26日星期四

Graphics Engine Architeture

2009-03-26

1. when i was trying to implement one paper and see how it work, most of the time, i use glut. Actually, the framework with trackball function in Meshcourse07 and Nvidia OpenGL SDK 10.5 is good enough to meet my this simple need.

2. 但是当设计的模块多了之后,之前简单的在一个framework中mix了数据和显示这方面会显得极为混乱.
例如有一个Bezier Curves class, only deal with the data and operators cared by the curve itself.
还有一个是复杂显示的RenderDevice class, wrapper for opengl commands and rendering engine.
为了做到两者可以互不相关,
需要提供一个中间的协调者:
#include "BezierCurve"
#include "RenderDevice"
class Whatever {
BezierCurve *;
render(RenderDevice *) {}
controlBezier(UserInput *) { // call the functions fo BezierCurves }
...
};

3. 更复杂的还设计GUI widgets模块,windows窗口模块等,这些还需要继续了解。现在正在看G3D graphics engine的实现.


> 09-04-17




1. The first is "Essential mathematics for games and interactive applications".

2. The second one is related to the "Wild Magic Game Engine", the third 貌似不是关于技术的,虽然其作者的 G3D Graphic Engine 很吸引。

>2009-5-29 OpenGL Windows GUI Application MVC框架,multi-thread, 结合opengl来讲,很好。But, still call the gl command in the Model part, what to do is the data in the Model needed to be render ?

没有评论:

发表评论