Click here to Skip to main content
15,897,187 members
Home / Discussions / Graphics
   

Graphics

 
GeneralRe: 8 bit bmp Pin
Mark Salsbery1-Jun-07 4:54
Mark Salsbery1-Jun-07 4:54 
GeneralRe: 8 bit bmp Pin
himuskanhere4-Jun-07 2:00
himuskanhere4-Jun-07 2:00 
GeneralRe: 8 bit bmp Pin
Mark Salsbery4-Jun-07 4:21
Mark Salsbery4-Jun-07 4:21 
GeneralRe: 8 bit bmp Pin
himuskanhere4-Jun-07 18:45
himuskanhere4-Jun-07 18:45 
GeneralRe: 8 bit bmp Pin
Mark Salsbery5-Jun-07 4:43
Mark Salsbery5-Jun-07 4:43 
GeneralRe: 8 bit bmp Pin
himuskanhere11-Jun-07 1:38
himuskanhere11-Jun-07 1:38 
QuestionProblem While Restarting Filter Graph Pin
amit_007_bond29-May-07 20:47
amit_007_bond29-May-07 20:47 
Questionfrustration CubeMapping_OpenGL Pin
zqueezy29-May-07 8:38
zqueezy29-May-07 8:38 
hey everybody...
I hope someone can help me caus I'm trying to implement this cube mapping thing for two days now...
I've been to all those websites...
There must be some small mistake in my code and I just can't find it...
<br />
...<br />
(InitGL)<br />
CubeMappingAvailable = CheckOpenGLExtension("GL_ARB_texture_cube_map");<br />
<br />
myTextureLoader.LoadCubeMap("right.jpg",<br />
			"left.jpg",<br />
			"bottom.jpg",<br />
			"top.jpg",<br />
			"front.jpg",<br />
			"back.jpg",<br />
			&myCubeMap);<br />
<br />
// ...<br />
// TextureLoader::LoadCubeMap(char* fileRight,	char* fileLeft, char* fileTop, char* fileBottom, char* fileFront, char* fileBack, CubeMap* dest)<br />
// dest is my CubeMap-Class-Object<br />
<br />
glGenTextures(1, &dest->TextureID);<br />
glBindTexture(GL_TEXTURE_CUBE_MAP_ARB, dest->TextureID);<br />
<br />
glTexParameteri(GL_TEXTURE_CUBE_MAP_ARB, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);<br />
glTexParameteri(GL_TEXTURE_CUBE_MAP_ARB, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);<br />
<br />
LoadFromFile(fileRight, &dest->right, 1);   // no just represents the face<br />
LoadFromFile(fileLeft, &dest->left, 2);<br />
LoadFromFile(fileTop, &dest->top, 3);<br />
LoadFromFile(fileBottom, &dest->bottom, 4);<br />
LoadFromFile(fileFront, &dest->front, 5);<br />
LoadFromFile(fileBack, &dest->back, 6);<br />
<br />
<br />
// Loading (LoadFromFile) looks like this:<br />
(...)<br />
glTexParameterf(GL_TEXTURE_CUBE_MAP_ARB, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR);<br />
glTexParameterf(GL_TEXTURE_CUBE_MAP_ARB, GL_TEXTURE_MAG_FILTER, GL_LINEAR);<br />
<br />
// cube is the int from above (face)<br />
glTexImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB+(cube-1),<br />
	 0,<br />
	 components,<br />
	 pTexture->Width,<br />
	 pTexture->Height,<br />
	 0,<br />
	 pTexture->Type,<br />
	 GL_UNSIGNED_BYTE,<br />
	 pImgData);<br />
<br />
// My drawing looks like this:<br />
glDisable(GL_TEXTURE_2D);<br />
glEnable(GL_TEXTURE_CUBE_MAP_ARB);<br />
glEnable(GL_TEXTURE_GEN_S);<br />
glEnable(GL_TEXTURE_GEN_T);<br />
glEnable(GL_TEXTURE_GEN_R);<br />
glBindTexture(GL_TEXTURE_CUBE_MAP_ARB, desCube->TextureID);<br />
<br />
// Drawing object Here...<br />
<br />
glDisable(GL_TEXTURE_GEN_S);<br />
glDisable(GL_TEXTURE_GEN_T);<br />
glDisable(GL_TEXTURE_GEN_R);<br />
glDisable(GL_TEXTURE_CUBE_MAP_ARB);<br />


Sorry for not posting more... but I think It's more a general mistake and I put everything in different classes and methods, so posting more might make everything more complicated...

thanx in advance
zqueezy
AnswerRe: frustration CubeMapping_OpenGL Pin
zqueezy29-May-07 9:47
zqueezy29-May-07 9:47 
QuestionPABX Exchange Pin
syed imran azmat28-May-07 7:06
syed imran azmat28-May-07 7:06 
AnswerRe: PABX Exchange Pin
Dave Kreskowiak28-May-07 16:43
mveDave Kreskowiak28-May-07 16:43 
Question32 bit to 8 bit itmap conversion Pin
himuskanhere28-May-07 1:23
himuskanhere28-May-07 1:23 
AnswerRe: 32 bit to 8 bit itmap conversion Pin
Mark Salsbery28-May-07 13:36
Mark Salsbery28-May-07 13:36 
QuestionData capture from FM tuner card. Pin
amit_007_bond27-May-07 22:22
amit_007_bond27-May-07 22:22 
QuestionRe: Data capture from FM tuner card. Pin
Mark Salsbery28-May-07 13:38
Mark Salsbery28-May-07 13:38 
QuestionWindows Theme/Skin Pin
XTAL25625-May-07 15:05
XTAL25625-May-07 15:05 
Questionembed an avi and jpg in same space Pin
brucedw25-May-07 5:25
brucedw25-May-07 5:25 
QuestionDirect3D+MCF transparency Pin
NunoSantos23-May-07 10:05
NunoSantos23-May-07 10:05 
AnswerRe: Direct3D+MCF transparency Pin
NunoSantos25-May-07 4:14
NunoSantos25-May-07 4:14 
QuestionVideo on OpenGL window, from image frames Pin
DoctorDoctor22-May-07 21:29
DoctorDoctor22-May-07 21:29 
AnswerRe: Video on OpenGL window, from image frames Pin
El Corazon23-May-07 1:46
El Corazon23-May-07 1:46 
GeneralRe: Video on OpenGL window, from image frames Pin
DoctorDoctor23-May-07 2:11
DoctorDoctor23-May-07 2:11 
GeneralRe: Video on OpenGL window, from image frames Pin
El Corazon23-May-07 6:31
El Corazon23-May-07 6:31 
QuestionDirectX help!! Pin
Young.wu22-May-07 19:28
Young.wu22-May-07 19:28 
AnswerRe: DirectX help!! Pin
Sarath C23-May-07 2:35
Sarath C23-May-07 2:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.