entityorder issue
Blitz3D Forums/Blitz3D Beginners Area/entityorder issue
| ||
hello, again. I am having trouble with entityorder for a gun I have in my program. I don't want it to pass through walls but when I turn entityorder on like this entityorder gun,-1 it draws the gun in reverse, meaning I see my players on the other side of the gun, when they are supposed to be blocked from view by the gun. |
| ||
This is all related to z-order disabling. Best to use a second camera, render the gun cam last without clearing the main cam render. Set cameraclsmode to retain z-order and clear colour. |
| ||
okay, I'm a bit confused, I haven't used cameraclsmode before. could you give me an example? |
| ||
Here's the function I use for creating a heads up display camera. The comments in the function will give you more info on its use. Just parent your gun to the camera and then position the gun to where you want it displayed in the camera's local space. |