3D (action script 3.0 for flashplayer 10)

3D 작업을 하기 위해 알아야 할 것들 - adobe helf
  • perspective: in a 2D plane, representation of parallel lines as converging on a vanishing point to give the illusion of depth and distance

  • projection: the production of a 2D image of a higher-dimensional object; 3D projection maps 3D points to a 2D plane

  • rotation: changing the orientation (and often the position) of an object by moving every point included in the object in a circular motion

  • transformation: altering 3D points or sets of points by translation, rotation, scale, skew, or a combination of these actions

  • translation: changing the position of an object by moving every point included in the object by the same amount in the same direction

  • vanishing point: point at which receding parallel lines seem to meet when represented in linear perspective

  • vector: a 3D vector represents a point or a location in the three-dimensional space using the Cartesian coordinates x, y, and z

  • vertex: a corner point

  • textured mesh: any point defining an object in 3D space

  • UV mapping: a way to apply a texture or bitmap to a 3D surface. UV mapping assigns values to coordinates on an image as percentages of the horizontal (U) axis and vertical (V) axis.

  • T value: the scaling factor for determining the size of a 3D object as the object moves toward, or away from, the current point of view

  • culling: rendering, or not, surfaces with specific winding. Using culling you can hide surfaces that are not visible to the current point of view.



간단히 디스플레이 오브젝트에 z 값만 추가해서 3D 오브젝트로 바꿀 수 있어서 좋다.
3D 오브젝트 안에 있는 Sprite를 드래그 할 땐 z축이나 rotateZ 등 3D 속성을 입력하여 Sprite가 3D공간에 있음을 알리고
글로벌로 좌표변환하여야만 한다.

* z축을 이용한 오브젝트 뎁스 정리
function reorderChildren(){
var nArray:Array = [pages[0], pages[1], pages[2]];
nArray.sortOn("z", Array.NUMERIC | Array.DESCENDING);

for(var i:int = 0; i<pageNum; ++i){
canvas.addchild(nArray[i]);
}
}

저작자 표시 비영리 변경 금지