More Related Content Similar to Introduction of 3D Development (20) Introduction of 3D Development5. The eight vertices have the following coordinates:
(-1, 1, -1) ( 1, 1, -1) (-1, -1, -1) ( 1, -1, -1) (-1, 1, 1) ( 1, 1, 1) (-1, -1, 1) ( 1, -1, 1)
SimpleVertex vertices[] =
{ { XMFLOAT3( -1.0f, 1.0f, -1.0f )},
{ XMFLOAT3( 1.0f, 1.0f, -1.0f )},
{ XMFLOAT3( 1.0f, 1.0f, 1.0f )},
{ XMFLOAT3( -1.0f, 1.0f, 1.0f )},
{ XMFLOAT3( -1.0f, -1.0f, -1.0f )},
{ XMFLOAT3( 1.0f, -1.0f, -1.0f )},
{ XMFLOAT3( 1.0f, -1.0f, 1.0f )},
{ XMFLOAT3( -1.0f, -1.0f, 1.0f )},};
Create index buffer WORD indices[] =
{ 3,1,0,
2,1,3,
0,5,4,
1,5,0,
3,4,7,
0,4,3,
1,6,5,
2,6,1,
2,7,6,
3,7,2,
6,4,5,
7,4,6, };
Define 3D Object
6. Shaders drive the programmable graphics pipeline,
and define the final surface properties of an object.
Shader
7. R G B
253 253 251
0 0 0
244 249 159
0 176 245
Why Shader is Important?
14. Algorithm of Shader: Transmittance
http://digitalerr0r.wordpress.com/2009/05/01/xna-shader-programming-tutorial-14-transmittance/
25. Quantumas: A 3D Engine Developed by Chinese
http://www.youtube.com/watch?v=eia-v1JUfEg
Quantumas