untitled

Similar documents
第3章 OpenGL の基礎

libaux.dvi

第3章 OpenGL の基礎

OpenGL & GLUTの基本関数の説明

( ) 1 1: 1 #include <s t d i o. h> 2 #include <GL/ g l u t. h> 3 #include <math. h> 4 #include <s t d l i b. h> 5 #include <time. h>

OpenGL Programming Course OpenGL Programming Course FAQ

演算増幅器

2 3 OpenGL 2 OpenGL OpenGL(Open Graphics Library) Silicon Graphics (SGI) 3D OpenGL SGI HP, SUN, IBM UNIX Linux, FreeBSD PC UNIX Windows, Mac OS API PD

謗域・ュ逕ィppt

沼津工業高等専門学校

/*p7-1-1*/

2 2 OpenGL OpenGL OpenGL(Open Graphics Library) Silicon Graphics (SGI) 3D OpenGL SGI HP, SUN,

3D グラフィックス処理の一般過程 1. 3D グラフィックス処理の一般過程

2 2 OpenGL ( ) OpenGL ( ) glclearcolor(glclampf red, GLclampf green, GLclampf

謗域・ュ逕ィppt

謗域・ュ逕ィppt

10 B 3. ( ) (3)

2 2 GLUI 2 GLUI 2.1 GLUI GLUI OpenGL OpenGL glut OpenGL glut C++ Linux, Windows (Visual C++, gcc), Macintosh glut glut GUI glut GUI CG glmultmatrix()

1 3 2 OpenGL 4 3 OpenGL 5 4 OpenGL 6 OpenGl : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 6 : : : : : : : : : : : : : : : : : : : : :

JAPLAシンポジウム資料 2009/12/5

2 2 2 OpenGL (R,G,B,A) 2.1 OpenGL (x y) width height pixels void glreadpixels(glint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum t

#include <stdio.h> 2 #include <stdlib.h> 3 #include <GL/glut.h> 4 Program 1 (OpenGL GameSample001) 5 // 6 static bool KeyUpON = false; // 7 sta

準備 計算結果を可視化するために OpenGL を 利用する. 2

2 2 OpenGL ( ) 2 OpenGL ( ) glclearcolor(glclampf red, GLclampf green, GLclampf blu

ィ 07ィコ060909ィコィィィヲ , 0600ィェィ ィー02ィェィコ ィ ツィ 05ィケィェ04ィヲ ィコィョ0809 OpenGL. 00.: ィ ィ

演算増幅器

19_OpenGLES.key

1 1. Program 1 OpenCV (OpenCV Sample001) 1 /* 2 - > - > - >VC++ 3 ( ) 4 C:\opencv\build\include 5 ( ) 6 C:\opencv\build\x86\vc10\lib 7 - > - > - > - >

1

double rx[natom], ry[natom], rz[natom]; 原子の座標 速度 力 ポテンシャルエ double vx[natom], vy[natom], vz[natom]; ネルギーを受ける配列を準備 double fx[natom], fy[natom], fz[natom

2 : 2008/12/ /01/ G :

double float

j x j j j + 1 l j l j = x j+1 x j, n x n x 1 = n 1 l j j=1 H j j + 1 l j l j E

Microsoft Word - mediaJikkenCG_no2_2007.doc

WebGL OpenGL GLSL Kageyama (Kobe Univ.) Visualization / 57

2 T ax 2 + 2bxy + cy 2 + dx + ey + f = 0 a + b + c > 0 a, b, c A xy ( ) ( ) ( ) ( ) u = u 0 + a cos θ, v = v 0 + b sin θ 0 θ 2π u = u 0 ± a


DrawArrays DrawElements References Kageyama (Kobe Univ.) Visualization / 34

OpenGL GLSL References Kageyama (Kobe Univ.) Visualization / 58

$ ls -l $ ls -l -a $ ls -la $ ls -F $ ls <dirname> <dirname> $ cd <dirname> <dirname> $ cd $ pwd $ cat <filename> <filename> $ less <filename> <filena

Microsoft Word - mediaJikkenCG_no2_2012.doc

Tekutama AR ~ 拡張現実感によるオーバーレイ表示と動作 ~ 情報物理研究室 渡部 修平 1

Linux XScreenSaver T020074

5. p.1/37


manual.dvi

07-二村幸孝・出口大輔.indd

1 level Level swtich ButtonPress ButtonRelease Expose Level

u302.book

2008 DS T050049

コンピュータグラフィックスS 演習資料

x h = (b a)/n [x i, x i+1 ] = [a+i h, a+ (i + 1) h] A(x i ) A(x i ) = h 2 {f(x i) + f(x i+1 ) = h {f(a + i h) + f(a + (i + 1) h), (2) 2 a b n A(x i )

WinDriver PCI Quick Start Guide

Microsoft Word - C.....u.K...doc

NB

Kageyama (Kobe Univ.) / 36

Microsoft Word - ggbook.docx

64bit SSE2 SSE2 FPU Visual C++ 64bit Inline Assembler 4 FPU SSE2 4.1 FPU Control Word FPU 16bit R R R IC RC(2) PC(2) R R PM UM OM ZM DM IM R: reserved

/* drawing function */ function_graph();// drawing graph glflush(); int main(int argc, char **argv ) glutinit( &argc, argv ); glutinitdisplaymode( GLU

TLS _final

第7章 レンダリング

第7章 レンダリング

d-00

£Ã¥×¥í¥°¥é¥ß¥ó¥°ÆþÌç (2018) - Â裶²ó ¨¡ À©¸æ¹½Â¤¡§·«¤êÊÖ¤· ¨¡

JAPLA研究会資料 2012/8/2

programmingII2019-v01

main.dvi

免許法認定公開講座: コンピュータグラフィックス

/* sansu1.c */ #include <stdio.h> main() { int a, b, c; /* a, b, c */ a = 200; b = 1300; /* a 200 */ /* b 200 */ c = a + b; /* a b c */ }

2008chom.pdf

JAPLA研究会資料 2010/1/23

untitled

ex01.dvi

Effective Android NDK Advanced Core Engineer

(Version: 2017/4/18) Intel CPU 1 Intel CPU( AMD CPU) 64bit SIMD Inline Assemler Windows Visual C++ Linux gcc 2 FPU SSE2 Intel CPU do

1) OOP 2) ( ) 3.2) printf Number3-2.cpp #include <stdio.h> class Number Number(); // ~Number(); // void setnumber(float n); float getnumber();

Arduino UNO IS Report No. Report Medical Information System Laboratory

津村漢方雑誌表紙_ol.ai

JAPLA研究会資料 2013/5/25

Fair Curve and Surface Design System Using Tangent Control

64bit SSE2 SSE2 FPU Visual C++ 64bit Inline Assembler 4 FPU SSE2 4.1 FPU Control Word FPU 16bit R R R IC RC(2) PC(2) R R PM UM OM ZM DM IM R: reserved

FFTSS Library Version 3.0 User's Guide

untitled

(300, 150) 120 getchar() HgBox(x, y, w, h) (x, y), w, h #include <stdio.h> #include <handy.h> int main(void) { int i; double w, h; } HgO

コンピューターグラフィックスS

JAPLA研究会資料 /6/15

?!!!!

コンピュータグラフィックス特論Ⅱ

コンピュータグラフィックス特論Ⅱ


Baud Rate 9600 Parity NONE Number of Data Bits 8 Number of Stop Bits 1 Flow Control NONE 1 RS232C 200mm 2,000mm DIMM ( ) Telescope East/West LX200 * 1

Graphics Performance Tuning () Z 2

MINI2440マニュアル

$ pwd /home1/t0/t0903 / / /home1/t0/t0903 / / /home1/t0/t0903 / /... ~ $ ls $ ls -a

CM-3G 周辺モジュール拡張技術文書 MS5607センサ(温度、気圧)

C

2

2 2 2 OpenGL (R,G,B,A) 2.1 OpenGL (x y) width height pixels void glreadpixels(glint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum t

Display 表示の初期化が CAVE 表示の初期化に置き換わり CAVE 用のプログラムに書き換えることが出来る 表 2 1 画面 (Windows LINUX IRIX) 用の OpenGL #include<stdio.h> #include<windows.h> #include<gl/g

Transcription:

2004/12/21

2/2 (11/16) DT-MRI (11/30) /OpenGL 12/7 12/14 (12/21) 1/11 (1/18)

OpenGL ~ ~ OpenGL Silicon Graphics,

OpenGL ~ ~ OpenGL OpenGL Utility Library (GLU) OpenGL. OpenGL. OpenGL Utility Toolkit (GLUT) OS. OS.

OpenGL ~ ~ Windows Windows NT OS GL GLU.Windows NT Windows 2000, XP Unix OS Macintosh http://www.opengl.org/ Mesa.

OpenGL ~ Window ~ GLUT 1. GLUT Windows. http://www.xmission.com/~nate/glut.html. 2. (glut-3.7.x-bin.zip). zip. 3.. glut.h (Visual C++ C: ProgramFiles DevStudio Vc include GL ) *.lib (C: ProgramFiles DevStudio Vc lib ) *.dll (C: WINDOWS system C: WINNT system32 )

OpenGL ~ UNIX OS ~ 1. Mesa. http://www.opengl.org/ hp Documentation OS/Platform Implementations. Page Mesa 3D Mesa. The Mesa 3D Graphics Library Page, Download / Install Stable Release (6.2.1). http://sourceforge.net/projects/mesa3d Page Latest File Releases File. MesaDemos MesaLib.

OpenGL ~ UNIX OS ~ 2.. http://mesa3d.org/. 3. Mesa-6.2, make linux-x86. 4. Demo. demo Mesa lib export LD_LIBRARY_PATH=${PWD}. Mesa/progs/demos./gears. 5. Header file Library. Header file /usr/include/gl Libraries /usr/lib/.( http://oss.sgi.com/projects/ogl-sampla/abi/ )

OpenGL ~ ~ Unix OS cc( gcc). % cc I/usr/X11R6/include program.c L/usr/lib lglut lglu lgl lxmu -lxi lxext lx11 lm -lpthread Windows. (Visual C++ GLUT3.7.2 Visual C++ 6.0.)

OpenGL ~ ~ 1 1.1 (GLtest1_1.c).. void glutinit( int *argcp, char **argv ) GLUT OpenGL int glutcreatewindow( char *name ).. void glutdisplayfunc( void (*func) (void ) ). func void glutmainloop( void )..

OpenGL ~ ~ 1 1.2 (GLtest1_2.c). void glutinitdisplaymode( unsigned int mode). GLUT_RGBA RGB. int glclearcolor( GLclampf R, GLclampf G, GLclampf B, GLclampf A ) glclear.a. void glclear( GLbitfield mask ).mask. void glflush( void ) OpenGL.OpenGL.

OpenGL ~ ~ 2 2 2.1 (GLtest2_1.c). void glbegin( GLnum mode ) void glend( void ),glbegin~glend. int glvertex2d( GLdouble x, GLdouble y ) 2.

OpenGL ~ ~ 2 2 2.2 glbegin() ().

OpenGL ~ ~ 2 2 2.3 (GLtest2_3.c). int glcolor3d( GLdouble r, GLdouble g, GLdouble b ) glcolor3d().r,g,b 0~1.

OpenGL ~ ~ 2 2 2.4 (GLtest2_4.c).

OpenGL ~ ~ 3 3.1 (GLtest3_1.c). void glviewport( GLint x, GLint y, GLsizei w, GLsizei h ) ( ). int glloadidentity( void ). void glortho( GLdouble l, GLdouble r, GLdouble b, GLdouble t, GLdouble n, GLdouble f ).( l = left, r = right, b = bottom, t = top, n = near, f = far ) void glreshapefunc( void (*func) ( int w, int h ) ).

OpenGL ~ ~ 3 3.2 (GLtest3_2.c). void glutinitwindowsize( int w, int h ). 300 300. int glutinitwindowposition( int x, int y )..

OpenGL ~ ~ 4 3 4.1 12. (GLtest4_1.c) glvertex3dv( const GLdouble *v ) glvertex3dv() 3. v 3.

OpenGL ~ ~ 4 3 4.2. (GLtest4_2.c). void gluperspective( GLdouble fovy, GLdouble aspect, GLdouble znear, GLdouble zfar ).( fovy =, aspect =, znear =, zfar = ) int gltranslated( GLdouble x, GLdouble y, GLdouble z ).

OpenGL ~ ~ 4 3 4.2 (gltranslated glrotated ), (GLtest4_3.c). void glulookat( GLdouble ex, GLdouble ey, GLdouble ez, GLdouble cx, GLdouble cy, GLdouble cz, GLdouble ux, GLdouble uy, GLdouble uz) 3, 3, 3

OpenGL ~ ~ 5 3 4.,..(GLtest5.c). void glnormal3dv(). void glenable( GL_LIGHT0 ) void gldisable( GL_LIGHT0 ) OpenGL 0 ( ), ( ). void glenable( GL_LIGHTING ) void gldisable( GL_LIGHTING ).

create_isosurface_geometry (float) CONST *V?,. triangle edge vertex coordinate data

OpenGL, create_isosurface_geometry,, OpenGL. OpenGL.

OpenGL 1. ( glutinit ) 2. ( glutcreatewindow ) 3. ( glutdisplayfunc ) 4. ( glutmainloop ),Volume,Geometry. ( )..

Volume, Geometry Volume Geometry 1. Volume 2. Volume Geometry 3. Geometry OpenGL 1,.( glutkeyboardfunc ) 2 Volume. (glutkeyboardfunc ) 3 (glutdisplayfunc ).

,, OpenGL,,,, OpenGL. glutkeyboardfunc ( void (*func) ( unsigned char key, int x, int y ) ). x y.,.

Pless key t glutmainloop Pless key e Pless key f Pless key q