Advertisement

Balls Example and NeHeGLSDL base

Started by October 05, 2004 02:27 PM
0 comments, last by Lyve 20 years, 4 months ago
I took the Balls demo from the B page of the Downloads section and tried to port it to SDL using the SDL base. For some reason, the balls won't draw. Can someone please help me out with this? Thanks.
It's hard to say something without seeing any code or something.

Because I also had such trouble some time ago here're some things you may check for (I don't know the demo exactly so not everything will apply I guess):

- Depth Testing fails
- Stencil Testing fails
- Alpha Testing fails
- Lighting is enabled but no light is specified or the light color is black
- back face culling is enabled but the triangles are reversed or the cull mode is set to the wrong direction
- you forgot to disable a texture stage, so the object is textures without texture coordinates (the texel at 0,0 may be black)
- your matrix isn't set up correctly, so the object is drawn outside of the view frustum or very small
- You are using a special vertex / and or pixel shader but the shader couldn't be loaded (Cg)
- You forgot to set up the matrices for the vertex shader (Cg)

+ Some other things that I may forgot! ;)


Lyve
_____________________________________http://www.winmaze.de, a 3D shoot em up in OpenGL, nice graphics, multiplayer, chat rooms, a nice community, worth visiting! ;)http://www.spheretris.tk, an upcoming Tetrisphere clone for windows, a 3D tetris game on a sphere with powerful graphics for Geforce FX and similar graphics cards.

This topic is closed to new replies.

Advertisement