opengl 태양계 텍스처
본 자료는 미리보기를 지원하지 않습니다.
닫기
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
해당 자료는 3페이지 까지만 미리보기를 제공합니다.
3페이지 이후부터 다운로드 후 확인할 수 있습니다.

소개글

opengl 태양계 텍스처에 대한 보고서 자료입니다.

목차

프로젝트 파일
소스
그림

본문내용

#include
#include
#include
#include
#include
#include
#include
#include

static GLfloat xRot = 15.01f;
static GLfloat yRot = 340.0f;
static GLfloat posx,posy;

static GLfloat nRange = 50.f;

static GLfloat MercuryY = 90.0f;
static GLfloat VenusY = 320.0f;
static GLfloat EarthY = 120.0f;
static GLfloat MoonY = 120.0f;
static GLfloat MarsY = 280.0f;
static GLfloat JupiterY = 340.0f;
static GLfloat SaturnY = 180.0f;
static GLfloat UranusY = 110.0f;
static GLfloat NeptuneY = 220.0f;
static GLfloat PlutoY = 60.0f;

static GLfloat planetRoy = 0.0f;
static GLfloat planetRoz = 0.0f;
static GLfloat planetSpiny = 0.0f;
static GLfloat planetSpinz = 0.0f;
static GLfloat planety = 0.0f;

#define checkImageWidth 256
#define checkImageHeight 256
#define division_n 200

typedef float point3[3];
static GLubyte checkImage[checkImageHeight][checkImageWidth][4];
static GLuint texName;


GLfloat ambientLight[] = { 0.3f, 0.3f, 0.3f, 1.0f };
GLfloat diffuseLight[] = { 0.7f, 0.7f, 0.7f, 1.0f };
GLfloat specular[] = { 1.0f, 1.0f, 1.0f, 1.0f};
GLfloat specref[] = { 1.0f, 1.0f, 1.0f, 1.0f };
//=============================================================
GLfloat Sun_diffuse[] = { 1.0, 0.51, 0.07, 1.0 };
GLfloat Mercury_diffuse[] = { 0.54, 0.45, 0.39, 1.0 };
GLfloat Venus_diffuse[] = { 0.85, 0.76, 0.59, 1.0 };
GLfloat Earth_diffuse[] = { 0.09, 0.27, 0.36, 1.0 };
GLfloat Moon_diffuse[] = { 0.8, 0.8, 0.8, 1.0 };
GLfloat Mars_diffuse[] = { 0.67, 0.48, 0.26, 1.0 };
GLfloat Jupiter_diffuse[] = { 0.67, 0.66, 0.60, 1.0 };
GLfloat Saturn_diffuse[] = { 0.93, 0.87, 0.74, 1.0 };
GLfloat Uranus_diffuse[] = { 0.41, 0.77, 0.93, 1.0 };
GLfloat Neptune_diffuse[] = { 0.37, 0.58, 0.7, 1.0 };
GLfloat Pluto_diffuse[] = { 0.87, 0.84, 1.0, 1.0 };
//=============================================================
static int iPlanet = 3;
static int mouseon;


GLuint tex[12];

void renderSphere(float cx, float cy, float cz, float r, int p, int tex_num );

AUX_RGBImageRec *LoadBMPFile(char *filename)
{
FILE *hFile =NULL;
if(!filename)
return NULL;
hFile = fopen(filename,"r");

if(hFile)
{

키워드

OpenGL,   텍스처,   맵핑,   태양계
  • 가격2,000
  • 페이지수10페이지
  • 등록일2012.01.20
  • 저작시기2011.10
  • 파일형식압축파일(zip)
  • 자료번호#725627
본 자료는 최근 2주간 다운받은 회원이 없습니다.
청소해
다운로드 장바구니