T thandwiches01 Member Jan 31, 2017 #1 I am working on a 3D FPS game, but whenever I look down or get close enough to a wall, the weapon goes into the wall/floor. What can I do to prevent this?
I am working on a 3D FPS game, but whenever I look down or get close enough to a wall, the weapon goes into the wall/floor. What can I do to prevent this?
T thandwiches01 Member Jan 31, 2017 #2 Thanks f Lonewolff said: Either turn off depth test when rendering the gun, or render the gun to a separate surface and overlay it. The prior will be more efficient. d3d_set_zwriteenable(false); Click to expand... fo the reply, but whenever I use it, it makes my walls invisible and the objects outside visible through the walls
Thanks f Lonewolff said: Either turn off depth test when rendering the gun, or render the gun to a separate surface and overlay it. The prior will be more efficient. d3d_set_zwriteenable(false); Click to expand... fo the reply, but whenever I use it, it makes my walls invisible and the objects outside visible through the walls