摘要:
在C#中有多种使用资源文件的方法,能够很方便地开发全球通用的应用程序。本文通过一个简单的小例子,来讲解在C#中如何利用资源文件,快速开发一个多种语言版本的程序。本例中只有一个窗体,三个控件,能够根据用户的设置以中文或英文界面运行。开发环境是Windows 2000 Professional、Microsoft Visual Studio.NET 2002。具体开发步骤如下: 一、新建项目 ... 阅读全文
摘要:
1、引言 ADS40基于航天传感器线阵扫描和全球定位系统、IMU复合姿态测量技术获取数字影像,利用该传感器进行航空摄影,不需经过扫描,就可以直接为数字摄影测量、遥感图像处理系统提供高分辨率的全色、真彩色、近红外数字影像。 ADS40的应用意味着摄影测量领域从工序、技术、流程、软件、装备、方法、规范的重大变革,在对传感器件、飞行规划、空中摄影、空三测量、影像纠正、编辑成图各技术环节进行深入研究的过程... 阅读全文
摘要:
3D图形学基本概念PerspectivePerspective refers to the angles between the lines that lend the illusion of three dimensions. Colors and ShadingMoving beyond line drawing, we need to add color to create a solid object. Shading refers to the way the color is applied to the polygon. Shading can be of two types i 阅读全文
摘要:
OpenGL支持两种颜色模式:RGBA和颜色索引模式,本文关注于前者。Smooth Shading and Flat ShadingWhen Smooth Shading is specified, the color values are interpolated between vertices. If Flat Shading is specified, one vertex is selected as being representative of all the vertices, thus the entire primitive is displayed using one s 阅读全文
摘要:
本文在第8篇文章的基础上,为其加入灯光效果。MaterialsOpenGL materials are description of what objects are made of. It basically specifies how much of light they reflect and this is what we would be seeing. OpenGL lighting goes a long way towards modeling real world lighting. In order achieve proper lighting effects in Op 阅读全文
摘要:
ReflectionsAdding reflections to a program too can improve its realism to a great extent. Here we'll look at a simple method to create reflection where we simply redraw the object with an appropriate transformation and make the surface in between translucent. This creates an effective illusion o 阅读全文
摘要:
SelectionSelection is a powerful feature of OpenGL that allows you click at some position of the OpenGL window using the mouse and determine which of your objects lie beneath it. The act of selecting a specific object is called Picking. With OpenGL's selection feature, we can specify a viewing v 阅读全文
摘要:
本文在第11篇文章的基础上,为其加入显示各种二次曲面的代码;QuadricsEvery quadric has a few settings associated with it. We have to create a quadric first and then customize its settings to render the shape we want. The gluNewQuadric function creates a state variable that describes the current drawing style, orientation, lightin 阅读全文
摘要:
wglUseFontBitmaps函数The wglUseFontBitmaps() function creates a set of bitmap display lists based on the glyphs in the currently selected font in the current DC for use in the current OpenGL RC. It basically creates a series of sequential display lists which can be executed using the function glCallLi 阅读全文
摘要:
本文对第11篇文章进行修改,使用显示列表来存储渲染命令。显示列表OpenGL provides a facility to create a preprocessed set of OpenGL commands called a display list. Creating a display list is a straight forward process. We just have to delimit the display list code with glNewList and glEndList. The display list is named by an integer 阅读全文