Package renderer.pipeline
Class Model2View
- java.lang.Object
-
- renderer.pipeline.Model2View
-
public class Model2View extends Object
Transform eachVertexof aModelfrom the model's (private) local coordinate system to theCamera's (shared) view coordinate system.For each
Vertexobject in aModelobject, use aPosition's translationVectorto translate the object'sVertexcoordinates from the model's coordinate system to the camera's view coordinate system.Return a new
Modelobject, which contains all the translated vertices from the original model, to the renderer. The original model object, which belongs to the client program, remains unchanged. So the renderer gets the mutated model and the client sees its model as being preserved.