3-point thoroughly get to know the camera

Camera is very important cocos creator of a component responsible for displaying the game screen, and a game which can have multiple cameras, today we use to sum up the camera.

I recommend a learning exchange 705 182 843 +

1: The range of the camera:
In the camera as the center, in a range in screen size, rendering object, and then imaged onto the screen;
2: Which object captured by the camera:
  Cocos creator in each node back to a group, this type can edit their own,

 Camera components inside a culling Mask, if the relevant check on the type, indicating the current camera will shoot objects these objects, the object is not the type of camera will not be drawn.

 

3: How to seize a multiple camera screen

Only one screen, the camera can have multiple, multiple cameras so the screen is how to draw on the same screen it? Camera picture has been drawn to the screen, the screen shows the final result of the superposition of multiple cameras. So which camera is drawn first, after which the camera screen to draw on the screen, how to achieve it? Each camera will have a depth, to determine the drawing order according to depth, depth small to draw, after big draw.
 

 

 

Guess you like

Origin www.cnblogs.com/blakehuangdong/p/11331624.html