그래픽스 , meshranddering
닫기
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
해당 자료는 10페이지 까지만 미리보기를 제공합니다.
10페이지 이후부터 다운로드 후 확인할 수 있습니다.

소개글

그래픽스 , meshranddering에 대한 보고서 자료입니다.

목차

[meshrandering(완)]   18.4MB
 [Debug]
 [meshrandering]
 meshrandering.ncb
 meshrandering.sln
 meshrandering.suo.
[그림]        1.74MB
#3(완성).hwp      17p

본문내용

#3(완성).hwp

1. 소스코드
key 설명 : F1 : 줌 아웃, F2 : 줌 인, F3 : 부드럽게, F4 : 각진 모습, F5 : face 추가 삭제, F6 : wireframe 추가 삭제


#include
#include
#include
#include
#include

#define MAX_V 40000
#define MAX_F 80000

FILE *fp;

struct Vertex{
    float x,y,z; //x,y,z coordinates
};

struct Tri{
    long vertIDs[3]; //edge information
};

//report 3
struct tnorm{
    float vertnorm[3];
    int num;
};

struct fnorm{
    float facenorm[3];
};
//report 3

struct Mesh{
    Vertex verts[MAX_V];
    Tri faces[MAX_F];
    tnorm tno[MAX_V]; //report 3
    fnorm fno[MAX_F]; //report 3
};

long nVerts, nFaces, smfTag;
// for gluLookAt parameters
float cameraPos[3]; //camera position
float cameraLookAt[3]; //camera Look at
float cameraUpvector[3]={0.0f, 1.0f, 0.0f}; // upvector
float lightPos[3];

float linecolor[3]={0.0f, 0.0f, 0.0f}; //black
float surfaceColor[3]={0.8f, 0.8f, 0.8f}; //gray
float g_x_rot,g_y_rot;
float z_near, z_far;

Mesh Cube;

//report 3
int tfnormal = 1;
int faceflag = 0;
int wireflag = 1;
int cameraflag = 0; // zom in, out
float ca[3]; // 최초카메라포지션저장
//report 3





▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒


meshrandering.vcproj





    ProjectType="Visual C++"
    Version="9.00"
    Name="meshrandering"
    ProjectGUID="{18CA07A3-264D-456C-A22A-DA6AB8FFCEC8}"
    RootNamespace="meshrandering"
    Keyword="Win32Proj"
    TargetFrameworkVersion="196613"
    >
    
                     Name="Win32"
        />
    

    
    

    
                     Name="Debug|Win32"
            OutputDirectory="$(SolutionDir)$(ConfigurationName)"
            IntermediateDirectory="$(ConfigurationName)"
            ConfigurationType="1"
            CharacterSet="1"
            >
                             Name="VCPreBuildEventTool"
            />
                             Name="VCCustomBuildTool"
            />
                             Name="VCXMLDataGeneratorTool"
            />
                             Name="VCWebServiceProxyGeneratorTool"
            />
                             Name="VCMIDLTool"
            />
                             Name="VCCLCompilerTool"
                Optimization="0"
                PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
                MinimalRebuild="true"
                BasicRuntimeChecks="3"
                RuntimeLibrary="3"
                UsePrecompiledHeader="0"
                WarningLevel="3"
                DebugInformationFormat="4"
            />

키워드

  • 가격5,000
  • 페이지수55페이지
  • 등록일2012.08.31
  • 저작시기2011.11
  • 파일형식압축파일(zip)
  • 자료번호#762677
본 자료는 최근 2주간 다운받은 회원이 없습니다.
청소해
다운로드 장바구니