游戏开发论坛

 找回密码
 立即注册
搜索
查看: 3476|回复: 6

OpenGl 编程 需要帮助 有偿

[复制链接]

1

主题

1

帖子

5

积分

新手上路

Rank: 1

积分
5
发表于 2007-9-4 12:45:00 | 显示全部楼层 |阅读模式
一个简单的3D程序

需要用Glut (一个Opengl语言) 来 截取 3个 3D model 的数据(model随便,稍微复杂一点的形状就行)

然后处理成两个投视 窗口,一个是平行的正面图,一个是perspective。

每个窗口里:

物件1: wireframe
物件2: solid
物件3: animated solid

具体要求在下面。达到要求,酬金600块以上。

email and msn: elvislj@msn.com

——————

SPECIFICATIONS:
Your task is to generate images consisting of a series of at least 3 different 3D objects, using 2 separate windows, to demonstrate the two primary forms of projection. All objects must be displayed in both of the two windows to demonstrate the differences in the projections. The objects can be as simple or as complicated as you wish but marks will be allocated based on the quality of your choice (but please don't go 'overboard').
任务是创建两个有3个不同3d物件组成的窗口。 物件需要稍微复杂一点。
Your objects can be created using any one of the following but you need to indicate which you use in your statement of completeness:
•        grab copies of polygon meshes off the web (if you do this you are required to site your source(s)),
•        create objects using a modeller such as MilkShape or 3DStudioMax,
•        write programs to generate objects such as a sphere or torus (include these programs when you submit your assignment),
•        determine the coordinates of the objects 'by hand'.
3D物件可以从网上获取,用3d软件产生 或者自己编程写都可以。坐标系自己手动创造。
In most of these cases the data will be stored in one or more external files. If this is the case you will be required to write an input routine to read that data into your program. Note that these files are required to be in ASCII (text) format. You are then to use a polygon mesh representation to store the data. The data structure(s), representing your objects, will contain the full requirements of a polygon mesh including, at least, a vertex list and a polygon list as specified in your lecture notes.
3d物件的数据存放在外部文件中。这样的话就需要写code读取数据到我们的程序中。数据需要是ASCII格式。然后需要用多边形来存放数据。来表达物件的数据结构需要包含多边形mesh全部的要求,至少包括一个vertex list和一个多边形list。

You are to create two non-overlapping windows which will occupy your screen. Each of these windows will contain representation of your three or more objects using the following:
创建两个不重叠的窗口。
1.        WINDOW 1: a parallel orthographic projection, 窗口一
2.        WINDOW 2: a perspective projection, 窗口二
In each window the objects will be in the following format: 每个窗口需要包含下面的格式
1.        OBJECT 1: a wire-frame representation,  第一个物件用wireframe
2.        OBJECT 2: a solid representation. You are to use backface removal and depth testing. Because you are including filled polygons in a 3D scene you will need to distiguish between the polygons to give depth. A simple way of doing this is to give each polygon a different colour, 第二个物件,solid。用backface removal和depth testing方式来做,因为3d的场景需要区分在不同深度的多边形。一个简单的方法就是给每个的多边形不同的颜色。
3.        OBJECT 3: again using a solid representation. This time your object will be animated in such a way that it bounces around within the bounds of the window (on x, y and z). You will need to use translation and rotation to animate your object. You will also need to check your object against the boundaries of the view volume. 第三个物件 需要 在 窗口的3D 空间里 移动和旋转。碰到边界要弹回来。
Each window will have a title which reflects the projection that is being used in that window. 每个窗口要有一个标题说明哪个projection。就是说窗口一: parallel orthographic projection。窗口二a perspective projection
The GLUT routine that you will need to look at (besides those that we have used in lectures) is glutSetWindow. This makes the nominated window current to enable interaction between OpenGL and the window.
Some possibly useful OpenGL commands are:
•        glMultMatrix, glMatrixMode, glLoadMatrix, glPushMatrix, glPopMatrix
•        glGetError

21

主题

100

帖子

100

积分

注册会员

Rank: 2

积分
100
QQ
发表于 2007-9-4 14:06:00 | 显示全部楼层

Re:OpenGl 编程 需要帮助 有偿

好象是试题之类的东东

0

主题

61

帖子

61

积分

注册会员

Rank: 2

积分
61
发表于 2007-9-10 14:29:00 | 显示全部楼层

Re:OpenGl 编程 需要帮助 有偿

1、GLUT库只能创建一个窗口,因此你需要3个应用程序才能显示三个窗口。

2、实现的都是最简单的功能,显然不值600 RMB。

3、你哪找的题目?

2

主题

429

帖子

435

积分

中级会员

Rank: 3Rank: 3

积分
435
发表于 2007-9-10 20:12:00 | 显示全部楼层

Re: Re:OpenGl 编程 需要帮助 有偿

wuwenye: Re:OpenGl 编程 需要帮助 有偿

1、GLUT库只能创建一个窗口,因此你需要3个应用程序才能显示三个窗口。


嘿嘿,你没用过glut库吧。。。

180

主题

3511

帖子

3520

积分

论坛元老

Rank: 8Rank: 8

积分
3520
发表于 2007-9-11 11:46:00 | 显示全部楼层

Re: Re:OpenGl 编程 需要帮助 有偿

wuwenye: Re:OpenGl 编程 需要帮助 有偿
1、GLUT库只能创建一个窗口,因此你需要3个应用程序才能显示三个窗口。

我怎么不觉得楼主要做 3个窗口呢?
不是 2个窗口, 3个模型吗[em5]

27

主题

418

帖子

455

积分

中级会员

Rank: 3Rank: 3

积分
455
QQ
发表于 2007-9-13 22:21:00 | 显示全部楼层

Re:OpenGl 编程 需要帮助 有偿

LZ的英文翻译得还真是……

14

主题

251

帖子

251

积分

中级会员

Rank: 3Rank: 3

积分
251
发表于 2007-10-7 04:52:00 | 显示全部楼层

Re:OpenGl 编程 需要帮助 有偿

关注
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2025-6-20 19:24

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表