-
csc108 Assignment
Raytracing example
implement a basic ray-tracer and render a simple scene using ray casting and local shading. The starter code sets up a scene comprising of an ellipsoid and a plane, being illuminated by a point light source. Your job is to render the scene by implementing code fragments required for object intersections and Phong shading.
- 2022-07-17 14:08:05下载
- 积分:1
-
Opengl绘制镜子效果
应用背景混合是什么呢?混合就是把两种颜色混在一起。具体一点,就是把某一像素位置原来的颜色和将要画上去的颜色,通过某种方式混在一起,从而实现特殊的效果。
假设我们需要绘制这样一个场景:透过红色的玻璃去看绿色的物体,那么可以先绘制绿色的物体,再绘制红色玻璃。在绘制红色玻璃的时候,利用“混合”功能,把将要绘制上去的红色和原来的绿色进行混合,于是得到一种新的颜色,看上去就好像玻璃是半透明的。
要使用OpenGL的混合功能,只需要调用:glEnable(GL_BLEND);即可。
要关闭OpenGL的混合功能,只需要调用:glDisable(GL_BLEND);即可。
注意:只有在RGBA模式下,才可以使用混合功能,颜色索引模式下是无法使用混合功能的。关键技术 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-04-13 12:23:43下载
- 积分:1
-
自己编的三次非均匀B样条曲线反求:给定数据点列,反求控制点,节点向量,按照给定精度,等分参数区间,离散B样条曲线,输出离散点列,模拟真实曲线.此算法包括德布尔...
自己编的三次非均匀B样条曲线反求:给定数据点列,反求控制点,节点向量,按照给定精度,等分参数区间,离散B样条曲线,输出离散点列,模拟真实曲线.此算法包括德布尔-考格斯算法,节点向量算法,反求控制点,以及节点插入技术.对搞图形学的朋友比较有参考作用.-own series of the three non-uniform B-spline curves Reverse : Given a data set, reverse control, vector nodes, according to a given accuracy, sub-parameters range, discrete B-spline curves, the output discrete points out, a virtual reality curve. This algorithm including Chandpur-examination Riggs algorithm, nodes vector algorithm, Reverse control points, and the insertion technology nodes. right engaging graphics friends comparison as a useful reference.
- 2022-05-15 15:39:13下载
- 积分:1
-
OPGL演示例子,比较适合新手学习学习,比较简单实在
OPGL演示例子,比较适合新手学习学习,比较简单实在-OPGL demonstration example, more suitable for novice learn from, relatively simple really
- 2022-08-02 11:37:01下载
- 积分:1
-
使用 c + + 编写的模拟水液滴幻灯片
这是简单的两个基础 psimulation 的水滑梯沿垂直墙,使用了 D2Q9 LBM 模型 !
- 2023-01-13 18:55:03下载
- 积分:1
-
OpenGL教学,画图
OpenGL教学,画图-OpenGL teaching, painting
- 2022-03-15 03:06:44下载
- 积分:1
-
这是一个简单的OpenGL程序:旋转的三维几何图形
这是一个简单的OpenGL程序:旋转的三维几何图形-This is a simple OpenGL program for rotate 3D geometry graph
- 2022-03-06 03:49:45下载
- 积分:1
-
an opengl example is the word for the realization of the source code shown relat...
一个opengl的例子 是用于实现文字显示的源代码 比较简单-an opengl example is the word for the realization of the source code shown relatively simple
- 2022-08-21 05:37:00下载
- 积分:1
-
This is similar OPeninventor the activex control to the form of tree storage obj...
这是类似OPeninventor的activex控件,以树的形式存储对象,构造任意复杂的实体和场景,由于是封装了OpenGL的控件,
用户只要知道怎么建模即可,不必关心OpenGL如何操作。在VS2003下编译通过。-This is similar OPeninventor the activex control to the form of tree storage objects, construction of arbitrary complex entities and scenes, as is the OpenGL control package, the user modeling can be as long as know how, do not have to care about how to do OpenGL. Under the VS2003 compiler through.
- 2022-07-27 13:44:18下载
- 积分:1
-
使用opengl,实现最基本的纹理映射,适合初学者使用
使用opengl,实现最基本的纹理映射,适合初学者使用-Use opengl, texture mapping to achieve the most basic for beginners to use
- 2022-08-08 17:55:15下载
- 积分:1