Computer Graphics Shader Collection计算机图形学着色器合集
- Client客户
- NYU - Computer Graphics ClassNYU - 计算机图形学
- Date开发日期
- Dev cycle开发周期
- 3 months三个月
- Role / duty团队角色
- Programming程序
- Platform支援平台
- OpenGLOpenGL
- Skills相关技术
- OpenGL/C++/Xcode
- Links相关链接
- No links暂无相关链接
Work detail作品详情
This collection features all the shaders I created during my Computer Graphics class at NYU. I used OpenGL to write all of the shaders.
1. Warm up for OpenGL
This is my first assignment, which helped me grasp some fundamental OpenGL commands and concepts. I created basic animations for the circles.
2. Understand color vector, viewing and projection in OpenGL shader
This is my second assignment for the class. In this shader, I practiced using color vectors to change the colors of the cube's corners. I also implemented a function to switch the camera viewpoint, allowing the camera to rotate accordingly when the player gives a command.
3. Rolling ball project start - understand viewing, projection, 3D transformation in OpenGL
This is my third assignment for the class. In this project, I focused on practicing transformations and viewings, as well as programming with shader-based OpenGL using vertex buffer objects. I utilized vertex buffer objects to read the sphere's vertex data and render the sphere's wireframe.
4. Rolling ball project - vertext shader and shadow projection.
In this assignment, I created my first vertex shader to transform the line-framed sphere into a smooth sphere. I also implemented a shadow effect.
5. Rollling ball project - Vertex shader based on Phony reflection model
In this assignment, I wrote a vertex shader based on the Phong reflection model to create a smooth appearance for the sphere's surface.
6. Rolling ball project - Different light sources
In this assignment, I implemented different light sources, allowing the player to switch between a spotlight and a point light source.
7. Rolling ball project - Fog effect, blending, texture mapping, lattice effects, partical system
In this final assignment, I utilized vertex and fragment shaders to implement various effects, including fog, color blending, texture mapping, and a lattice effect. Additionally, I created a simple firework particle system.
这个合集包含了我在NYU计算机图形学课上使用OpenGL所写的所有着色器相关效果。
1. 了解OpenGL
这个作业是为了让我们了解基本的OpenGL概念和方程。我使用OpenGL写了个简单的圆圈大小变化动画。
2. 了解OpenGL着色器里彩色向量,Viewing和Projection的基本概念
这个作业主要是让我了解了OpenGL里彩色向量的概念,并且使用彩色向量让这个立方体的各个顶点着色。我也写了一个方程可以转换摄像机视角,当玩家给予指令,摄像机会就根据指令旋转。
3. 滚动球项目 - 了解OpenGl中的Vieing, Projection, 3D转换概念
在这个作业里,我熟悉了有关viewing和transformation相关的概念,同时也用vertext buffer objects来绘制了一个圆球形的线稿。
4. 滚动球项目 - 顶点着色器和阴影投射
在这个作业里,我写了一个顶点着色器来让线稿球变成表面光滑的圆球,同时也写了一个阴影投射的功能。
5. 滚动球项目 - 基于Phony反射模型的顶点着色器
这个作业中,我写了一个基于Phony反射模型的顶点着色器,来让圆球表面看起来更加光滑。
6. 滚动球项目 - 不同的光源
在这个作业中,我为场景加入了两个不同的光源:点光源和聚光灯光源,可以根据玩家的指令来在两个光源之间切换。
7. 滚动球项目 - 雾效果,混色,纹理映射,镂空效果,粒子系统
在最后一次作业中,我写了不同的顶点着色器和片段着色器来实现雾效果,混色,纹理映射和镂空效果。我也写了一个很简单的烟花粒子效果。
Photos & screen captures相关图片
