TAILIEUCHUNG - 3D Graphics with OpenGL ES and M3G- P7

3D Graphics with OpenGL ES and M3G- P7:Mobile phones are the new vehicle for bringing interactive graphics technologies to consumers. Graphics that in the 1980s was only seen in industrial flight simulators and at the turn of the millennium in desktop PCs and game consoles is now in the hands of billions of people. This book is about the technology underpinnings of mobile threedimensional graphics, the newest and most rapidly advancing area of computer graphics. | 44 LINEAR ALGEBRA FOR 3D GRAPHICS CHAPTER 2 that x y z must form a right-handed coordinate system. Therefore we can obtain x from u x z also normalized as z was. Finally we get y z x x. In this case we know that z and x are already perpendicular unit vectors so y will also be a unit vector and there is no need to normalize it except to perhaps make sure no numerical error has crept in . Note the order of the cross products they must follow a circular order so that x x y produces z y x z produces x and z x x produces y. PROJECTIONS After the scene has been transformed to the eye coordinates we need to project the scene to the image plane of our camera. Figure shows the principle of perspective projection. We have placed the eye at the origin so that it looks along the negative z axis with the image plane at z -1. A point Y Z is projected along the projector aline connecting the point to the center of projection the origin intersecting the image plane at Y -1 . From similar triangles we see that Y -Y Z. We can also see that this model incorporates the familiar perspective foreshortening effect an object with the same height but being located further away appears smaller as illustrated by the second narrower projector . The projection matrix 1 0 0 0 0 1 0 0 0 0 1 0 0 0 -1 0 performs this projection. Let us check with x X Y Z 1 T Px X Y Z which after the homogeneous division by the last component becomes -Z T -X Z -Y Z - 1 . This is the projected point on the plane z -1. Figure Perspective camera projection. Objects that are farther away appear smaller. SECTION PROJECTIONS 45 NEAR AND FAR PLANES AND THE DEPTH BUFFER Equation loses information namely the depth as all objects are projected to the same z -1 plane. We could try to retain the depth order by sorting objects based on their depths and drawing them in a back-to-front order this is called the Painter s Algorithm . However it may not be possible to sort the objects especially if .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.