Web Hosting Tomcat, Java, JSP, Servlets, J2EE, PHP, MySQL

Cheap web hosting provider

09
Nov

Black Art of Java Game Programming by Joel

Figure 11-16 Vertices have different coordinates in VCS than in WCS This transformation is not as intuitive as the MCS to WCS transform but is actually closely related to it. Mathematically the matrix can be calculated by first making the MCS to WCS matrix and then calculating its inverse. This would, however, take a massive amount of calculations, so we must find a simpler method. The inverse can be constructed using the generic 3D matrix with the following code: //– make a matrix that transforms a vertex from WCS to VCS matrix.makeIdentity(); matrix.concatT(-Xpos,-Ypos,-Zpos); matrix.concatRz(-Az); matrix.concatRy(-Ay); matrix.concatRx(-Ax); //– transform the vertices from WCS to VCS matrix.transform(Vw,Vm); These operations will be hidden inside a method called makeWCStoVCStransform(..) in the extended generic matrix. The implementation will be shown later. Just keep in mind that you don t necessarily need to know the math behind these transforms to use them. Previous Table of Contents Next
Note: If you are looking for cheap and reliable provider to host and run your servlet application check Vision servlet hosting services

Comments are closed.

Home | About Us | Compare Plans | Standard Hosting | Business Hosting | Java Tomcat Hosting | Support | FAQ | Order Now!

Powered by Omnicus java hosting services. All rights reserved.
Entries (RSS) and Comments (RSS).