- OpenGL Game Development By Example
- Robert Madsen Stephen Madsen
- 272字
- 2021-07-16 12:44:22
Chapter 2. Your Point of View
Imagine that you are making a video. You've got your cell phone out, and you point it at the area that you want to shoot and press record. You're taking a video of the Grand Canyon, so you have to pan the camera around to get the whole scene in. Suddenly, a bird flies past the field of view, and you've captured the whole scene.
The preceding scenario is pretty much how games work as well. The game has a virtual camera that can be positioned and even moved around. Similarly to the video camera on your cell phone, the game camera can only see a part of the game world, so sometimes you have to move it around. Any game objects that move in front of the camera will be seen by the player.
This chapter will explain how things are rendered in the game. Rendering is the process of actually displaying images on the screen. In order to get your get your game onto the screen, you will need to have a solid understating of the following terms:
- Coordinate systems: The coordinate system is the reference that allows you to position objects in the game
- Primitives: Primitives are the fundamental building blocks of the images that you see on screen, and OpenGL was designed to work with them
- Textures: Textures are image files that are used to give the objects in your game a realistic appearance
By the time you have read this chapter, you will understand how to use images to build your game world and display it on the screen.
- Learning AngularJS Animations
- Deep Learning with PyTorch
- 硬件產(chǎn)品經(jīng)理成長手記(全彩)
- 電腦組裝、維護、維修全能一本通(全彩版)
- 數(shù)字邏輯(第3版)
- 單片機原理及應用系統(tǒng)設計
- Artificial Intelligence Business:How you can profit from AI
- 微軟互聯(lián)網(wǎng)信息服務(IIS)最佳實踐 (微軟技術開發(fā)者叢書)
- WebGL Hotshot
- 單片機原理與技能訓練
- Blender 3D By Example
- USB應用開發(fā)寶典
- Drupal Rules How-to
- Raspberry Pi Home Automation with Arduino
- 創(chuàng)客電子:Arduino和Raspberry Pi智能制作項目精選