#138153 - Dark Knight ez - Mon Aug 20, 2007 10:37 am
Hey all.
I've been working a small bit on getting AmplituDS up and running in the latest devkitpro setup and succeeded except for clear colour.
For some reason the clear colour shown remains black instead of the white I set it to.
I must have forgotten something, somewhere... going through the 3D examples of the current devkitpro setup, I fail to see what it is though, so I was hoping you guys could point me to what I'm missing.
My 3D initialization code (run only once):
The above doesn't mention the setting of the video mode and the setting of vram banks to textures, but that's all done too. Everything 3D works for me now, except for the clear colour...
Thanks in advance for any help.
_________________
AmplituDS website
I've been working a small bit on getting AmplituDS up and running in the latest devkitpro setup and succeeded except for clear colour.
For some reason the clear colour shown remains black instead of the white I set it to.
I must have forgotten something, somewhere... going through the 3D examples of the current devkitpro setup, I fail to see what it is though, so I was hoping you guys could point me to what I'm missing.
My 3D initialization code (run only once):
Code: |
// initializing 3D is part of initializing scene
glInit(); glEnable(GL_ANTIALIAS); glEnable(GL_TEXTURE_2D); glViewPort(0,0,255,191); GFX_CLEAR_COLOR = 0; // some flashcards mess up and need this set to 0 before using glClearColor(255,255,255, 31); glClearPolyID(63); glClearDepth(0x7FFF); glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluPerspective(45.0f, 256.0f / 192.0f, 0.1f, 100.0f); // ds specific, several attributes can be set here glPolyFmt(POLY_ALPHA(31) | POLY_CULL_BACK); glPushMatrix(); glMatrixMode(GL_TEXTURE); glLoadIdentity(); // Set the current matrix to be the model matrix glMatrixMode(GL_MODELVIEW); |
The above doesn't mention the setting of the video mode and the setting of vram banks to textures, but that's all done too. Everything 3D works for me now, except for the clear colour...
Thanks in advance for any help.
_________________
AmplituDS website