   making staris in opengl (3d)
  how can i make stairsin opengl ?i mean so i can walk on them..like in 3d games..u can walk on staris and ur getting up down.. etc..so my question is how can i make my staris so i can walk on themand to do gravity to my 3d world ?   
Quote:Original post by clearlyhow can i make stairsin opengl ?i mean so i can walk on them..like in 3d games..u can walk on staris and ur getting up down.. etc..so my question is how can i make my staris so i can walk on themand to do gravity to my 3d world ?Uhm... I hate to tell you, but OpenGL is for RENDERING stuff, not for doing physics or collisions.   ;  i know.. but im just asking how does game programmers do it .. ?;  ou...it isnt related to ogl, but here is how they do it:they do a normal collision detection and in the collision reaction they test, if the height of the wall they colliding with is less then lets say 96 units or somthing like this. If so, the player is set on top of this wall => one step onto the stair   ;  Or they treat it as a slope, as seen in Splinter Cell. (going up per so many units)   