Location:
Search - glut m
Search list
Description: it has been assumed that the reader has a fundamental Windows programming background and is also familiar with the Microsoft Foundation Classes (MFC). The reader need not have any background in OpenGL. All the code for these tutorials has been written using Visual C++ 6.0. As we discuss each tutorial we would be using Visual C++, OpenGL and Glut libraries to create the programs. We will also create a general and reusable framework for writing OpenGL applications for Windows using MFC. This framework would be useful for writing future OpenGL programs without worrying about rewriting all the boilerplate code each time. Also note that these tutorials do not cover everything about OpenGL.
Platform: |
Size: 3801088 |
Author: vivek |
Hits:
Description: The texture used for the motion blur is d
In the demo application, the following keys are usable:
* s - for changing the rendered scene.
* t - for changing the FirstRenderTexture flag that is passed to the RenderToMotionBlurTexture procedure.
* w - for wireframe rendering.
* m - for the use of motion blur or not.
* press a and then + or - to adjust the alpha intensity.
Note that the demo runs with GLUT.
Points of Interest
This method is very useful especially when doing full scene motion blur. If this method is used just for a single object then it is recommended to use masking.
License-The texture used for the motion blur is defined in the core (main) module and is exported in all the other modules. But the processing is made in the motionblur module. There are three procedures:
1. int CreateMotionBlurTexture(int quality, int interpolation) - creates the motion blur texture and is recommended to be called into the init procedure.
2. void RenderToMotionBlurTexture(bool FirstRenderTexture, int SceneFunc()) - "renders" the SceneFunc() onto the motion blur texture together with the previous frame. The boolean flag specifies if the previous frame is rendered first or not (see the background point).
3. void ShowMotionBlurTexture() - is like a flush procedure, it displays onto the screen the final result.
Platform: |
Size: 3266560 |
Author: 欧阳西 |
Hits:
Description: 只是一个简单的基于MFC的OpenGL编程。有基本的对鼠标键盘的影响处理-An MFC program using OpenGL, you can moving a Cube box with arrow key, drug mouse to rotate with left button down. Wheel with left button down to scale box.
Platform: |
Size: 9375744 |
Author: 曾大海 |
Hits:
Description: Opengl编程,使用GLUT实现window, Camera使用4个vector实现. WASD和IJKL实现方向控制;QE可控制偏航;+,-可控制速度;M可以增加月球;O可控制轨道线开关;所有星体表面带有texture。更多细节请阅读源程序。-Opengl programming, using GLUT achieve window, Camera using four vector realize WASD and IJKL achieve directional control QE can control the yaw +,- can control the speed . M can increase the moon O rail line switch can be controlled all the planets surface with texture. For more details, please read the source.
Platform: |
Size: 3505152 |
Author: landon |
Hits: