CG
文章平均质量分 71
随机下雨
这个作者很懒,什么都没留下…
展开
-
ComputerGraphics | 纹理,过滤模式
当纹理大于三维图形表面=>一个像素被映射到多个纹理 当纹理小于三维图形表面=>多个像素被映射到一个纹理 => 发生模糊或者错位=>smooth,过滤模式 mip-map anti-aliasing 图像(纹理)在缩小时因为采样率不够=>混叠,直线:断线,纹理复杂:纹理杂乱 如果用于贴图的纹理大小64x32,生成32x16,16x8,8x4,4x2,2x1,1x1。 步骤: 低通滤波减轻混叠,缩小 常用:box filtering 计算缩小比率d 根据d值确定哪一个mip做贴图原创 2021-03-19 18:00:31 · 90 阅读 · 0 评论 -
ComputerGraphics | Output - Images
types of images raster images: GIF, JPEG, PNG, (PS) resolution vector images: CGM, (PS, PDF) Rater images monochromatic images/bit maps gray scale memory: 8 bits = 1 byte 24 bit color images color for each bit: 3 bytes 8-bit color images 8-bit color im原创 2021-03-18 05:49:46 · 164 阅读 · 0 评论 -
ComputerGraphics | global illumination: Radiosity
Rendering Equation radiosity assumptions continuous discrete Radiosity Matrix From Factors## 标题原创 2021-03-18 05:40:50 · 158 阅读 · 0 评论 -
ComputerGraphics | Raytracing
Recursive raytracing send a ray from eye center through each pixel center draw the object that intersect the ray closest to the image plane: no intersection: background color light source intersection with an object that in front of the light source: illu原创 2021-03-18 05:35:06 · 138 阅读 · 0 评论 -
ComputerGraphics | Texturing
sphere Mapping center (xs,ys,zs)(x_s, y_s, z_s)(xs,ys,zs) of the sphere Cylinder Mapping Box Mapping (xbox,max−xbox,min)≥(ybox,max−ybox,min)≥(zbox,max−zbox,min)(x_{box,max}-x_{box,min}) \ge (y_{box,max}-y_{box,min}) \ge (z_{box,max}-z_{box,min})(xbox,m原创 2021-03-18 05:04:21 · 169 阅读 · 0 评论 -
ComputerGraphics | Rasterization
Rasterization of lines Bresenham’s algorithm Δx=x2−x1≥0\Delta x = x_{2} - x_{1} \ge 0Δx=x2−x1≥0 Δy=y2−y1≥0\Delta y = y_{2} - y_{1} \ge 0Δy=y2−y1≥0 E:=ΔyΔx−12E := \frac{\Delta y}{\Delta x} - \frac{1}{2}E:=ΔxΔy−21 E≤0:E \le 0:E≤0: x:=x+1x:=x+1x:=x+1 E原创 2021-03-18 03:17:35 · 53 阅读 · 0 评论 -
ComputerGraphics | Light, Color
Additive color mixing Grassman’s law among four colors there is a linear dependency three-dimensional space vector space: color space length of vector: luminance direction: chromaticity three linear independent basis vectors: primaries tristimulus-system原创 2021-03-18 00:18:00 · 85 阅读 · 0 评论 -
ComputerGraphics | Lighing, Shading
light sources directed/parallel light source position is point at infinity (x,y,z,0)^T point light source finite position (x,y,z,1)^T spot position, direction, opening angle ambient light type of reflection specular(mirror-like) diffuse mixed reflectio原创 2021-03-17 21:58:18 · 96 阅读 · 0 评论