분류 전체보기
-
Tutorial 12: Font Engine 연습문제Directx 11 with rastertek 2022. 9. 14. 13:09
To Do Exercises 1. Recompile the code and ensure you get a white "Hello" written to 100x100 on your screen as well as a yellow "Goodbye" beneath it. 2. Change the pixel color, location, and content of the sentences. 3. Create a third sentence structure and have it render also. 4. Comment out the blending calls in the GraphicsClass::Render function and set m_D3D->BeginScene(0.0f, 0.0f, 1.0f, 1.0f..
-
Tutorial 11: 2D Rendering 연습문제Directx 11 with rastertek 2022. 9. 11. 23:56
To Do Exercises 1. Recompile the code and ensure you get a 2D image drawn to the 100, 100 location on your screen. 2. Change the location on the screen where the image is drawn to. 3. Change the size of the image in the m_Bitmap->Initialize function call in the GraphicsClass. 4. Change the texture that is used for the 2D image. 1. 소스 코드를 다시 컴파일하고 화면상의 (100, 100) 위치에 2D 이미지가 그려지는지 확인해 보십시오. 2. 이미..
-
Tutorial 10: Specular Lighting 연습문제Directx 11 with rastertek 2022. 9. 8. 13:10
To Do Exercises 1. Recompile and run the project and ensure you get a spinning cube that flashes a bright specular highlight each time if faces the camera. 2. Change the direction of the light such as m_Light->SetDirection(1.0f, 0.0f, 1.0f) to see the effect if the light source is from a different direction. 3. Create a 5000+ poly sphere model with a red texture to recreate the sphere images at ..
-
Tutorial 9: Ambient Lighting 연습문제Directx 11 with rastertek 2022. 9. 8. 11:51
To Do Exercises 1. Recompile the code and ensure you get a spinning cube that is illuminated on the dark side now. 2. Change the ambient light value to (0.0f, 0.0f, 0.0f, 1.0f) to see just the diffuse component again. 3. Comment out the color = color * textureColor; line in the pixel shader to see just the lighting effect. 1. 소스를 다시 컴파일하고 육면체의 어두운 부분이 희미하게 비치는지 확인해 보십시오. 2. 주변광 값을 (0.0f, 0.0f, 0..
-
Tutorial 8: Loading Maya 2011 Models 연습문제Directx 11 with rastertek 2022. 9. 7. 17:17
To Do Exercises 1. Recompile the program and run it with the supplied .obj model file. 2. Create (or have someone else make for you) a Maya 2011 model and export it in .obj format and run this program to convert it. 3. Convert this code to read in and export a different model format that you might prefer. 참고로 작성자는 blender(3.1v)를 이용했음. 마야의 .obj파일은 사각형을 표현하기 위해서 인덱스 정보가 6개 필요한 반면에 블랜더는 인덱스 정보를 4개로..
-
Tutorial 6: Diffuse Lighting 연습문제Directx 11 with rastertek 2022. 9. 6. 15:16
To Do Exercises 1. Recompile the project and ensure you get a spinning textured triangle that is being illuminated by a purple light. Press escape to quit. 2. Comment out "color = color * textureColor;" in the pixel shader so that the shaderTexture is no longer used and you should see the lighting effect without the texture. 3. Change the color of the light to green at the m_Light->SetDiffuseCol..
-
Tutorial 5: Texturing 연습문제Directx 11 with rastertek 2022. 9. 5. 16:43
To Do Exercises 1. Re-compile the code and ensure that a texture mapped triangle does appear on your screen. Press escape to quit once done. 2. Create your own dds texture and place it in the same directory with seafloor.dds. Inside the GraphicsClass::Initialize function change the model initialization to have your texture name and then re-compile and run the program. 3. Change the code to creat..
-
Tutorial 4: Buffers, Shaders, and HLSL 연습문제Directx 11 with rastertek 2022. 9. 3. 20:06
To Do Exercises 1. Compile and run the tutorial. Ensure it draws a green triangle to the screen. Press escape to quit once it does. 2. Change the color of the triangle to red. 3. Change the triangle to a square. 4. Move the camera back 10 more units. 5. Change the pixel shader to output the color half as bright. (huge hint: multiply something in ColorPixelShader by 0.5f) 1. 튜토리얼을 컴파일하고 실행해 보십시오...