随笔- 191
文章- 0
评论- 35
阅读-
21万
08 2009 档案
(3)vtkMapper
摘要:/*========================================================================= Program: Visualization Toolkit Module: $RCSfile: vtkMapper.h,v $ Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All...
阅读全文
(2)vtkAbstractMapper
摘要:/*========================================================================= Program: Visualization Toolkit Module: $RCSfile: vtkAbstractMapper.h,v $ Copyright (c) Ken Martin, Will Schroeder, Bill Lore...
阅读全文
vtkMapper相关类的分析及重写vtkMapper实现自定义的一些效果 (1)vtkAbstractMapper3D
摘要:This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notice for more information.=======...
阅读全文
glsl实现像素光照的方法
摘要:GLSL TutorialDirectional Light per Pixel In this section we'll modify the previous shaders to compute the directional light per pixel. Basically we're going to split the work between the two shaders, ...
阅读全文
glsl,opengl关于镜面光的计算,包括镜面高光
摘要:GLSL TutorialOpenGL Directional Lights II Time for the specular component of the OpenGL directional light. The lighting model used is the Blinn-Phong model, which is a simplification of the Phong mode...
阅读全文
glsl 教程,定向光
摘要:GLSL TutorialOpenGL Directional Lights I The equations in here are from the chapter "The Mathematics of Lighting" from the book "OpenGL Programming Guide", aka the Red Book. //本教程来自opengl红宝书We'll star...
阅读全文
glsl 法向量规格化的问题
摘要:GLSL TutorialNormalization Issues Vertex Shader The dot product is commonly used to compute the cosine of the angle between two vectors. As we know this will only hold if both vectors are normalized. ...
阅读全文
glsl The gl_NormalMatrix 方向向量的转换
摘要:GLSL TutorialThe gl_NormalMatrix The gl_NormalMatrix is present in many vertex shaders. In here some light is shed on what is this matrix and what is it for. This section was inspired by the excellent...
阅读全文
glsl 顶点向量转换矩阵
摘要:The gl_NormalMatrix The gl_NormalMatrix is present in many vertex shaders. In here some light is shed on what is this matrix and what is it for. This section was inspired by the excellent book by Eric...
阅读全文
glsl光照计算
摘要:The first version preseted in here computes an intensity per vertex. Then the fragment shader uses the vertex interpolated intensity to compute a tone for the fragment. The vertex shader must therefor...
阅读全文
艳色着色器
摘要:Color Shader GLSL has access to part of the OpenGL state. In this tutorial we'll see how to access the color as set in an OpenGL application with glColor. GLSL has an attribute variable where it keeps...
阅读全文
Hello World in GLSL glsl的第一个例子,Hello World
摘要:This is kind of a Hello World for GLSL. A minimal shader that performs the most basic tasks: transform the vertices and render the primitives in a single color. In here it this shaders, vertex and fra...
阅读全文
opengl中使用点精灵的代码
摘要:glDepthRange(0.0, 1.0); glClearDepth(1.0); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glClearColor(0.0, 0.0, 0.0, 1.0); AUX_RGBImageRec *textureImage[1]; textureImage[0] = auxDIBImageLoadA(T...
阅读全文
用vtk画海量的离散点(此方法用点精灵和glsl)
摘要:ttttttttt在无网格法中,画离散点,如果点比较多的话,就不能用小球表示,具我的测试,小球的数量如果超出一百个,速度就慢得无法忍受,解决办法是用点精灵,或者glsl着色语言#include "vtkCamera.h"#include "vtkRenderWindow.h"#include "vtkRenderWindowInteractor.h"#include "vtkInteractorS...
阅读全文