목록Graphics (4)
The Beautiful Future
MTL material format (Lightwave, OBJ)Excerpt from FILE FORMATS, Version 4.2October 1995Documentation created by: Diane Ramey, Linda Rose, and Lisa TyermanCopyright 1995 Alias|Wavefront, Inc.All rights reserved -------------------------------------------------------------------------------- 5. Material Library File (.mtl) Material library files contain one or more material definitions, each of whi..
Object Files (.obj)Minimal example: box.objMinimal textured example -------------------------------------------------------------------------------- Object files define the geometry and other properties for objects inWavefront's Advanced Visualizer. Object files can also be used totransfer geometric data back and forth between the Advanced Visualizerand other applications. Object files can be in..
WaveFont 사에서 개발했으나 널리 퍼저서 확실히 정해진 포멧이 없다. @@ OBJ 파일@ comment 는 #을 이용한다# this is a comment @ verticesv x y z [w]v 0.1 0.2 0.3w는 옵션, 프로그램에 따라 뒤에 0~1사이 값으로 RGB 을 넣어주기도한다. @ texture coodinatesvt u v [w] @ parameter space verticesvp u [v] [w]곡선, 곡면과 같이 파라미터화 되는 공간에서 위치를 결정한다.u: 곡선의 한 점u, v: 곡선의 한점, v는 곡선의 컨트롤 값u, v: 곡면의 한 점u, v, w: 곡면의 한점, w는 곡면의 컨트롤 값 @ polygonal face elementf 1 2 3f 3/1 4/2 5/3f 6/..
@조명 모델 (Illumination) 모델- Ambient Light(주변 빛)주변환경에 복합적으로 포함되어있는 빛의 세기 - Diffuse Reflection(난반사)모든 방향으로 동일하게 퍼져나가는 빛의 난반사 - Specular Reflection(정반사)입사각과 반대방향으로 가장 많이 반사되는 빛의 정반사 - Emission Light대상물체가 발광체인 경우 이 물체로 부터 나오는 빛 @ 빛의 종류- Directional Light- Point Light- Spot Light(Light dirction, Cut-off angle) @조명 모델 수식- Ambient Light(주변 빛)I = Ia * KaIa: 광원 세기, Ka: 주변 빛 반사계수 - Diffuse Reflection(난반사)I ..