Inside out?
Blitz3D Forums/Blitz3D Beginners Area/Inside out?
| ||
can anyone help me with this, i am trying to place a gun on the screen as if it was a FPS game and the gun is sort of inside out, like there are bits you can see through the gun as if they are on wrong layers or something. does anyone know how to get rid of it?. is it something you can fix in blitz or would it have to be fixed in 3dsmax? please help. cheers |
| ||
Your gun is probably too close to the camera. Try to move it a bit back and increase the scale. Or change your camera's near-far range. |
| ||
Try adding "EntityOrder WeaponHandle, -1". That might screw up something, but it works for me. |
| ||
OMG it works, thanx alot Noel cheers. i had to set mine to "0" instead of "-1" thanx alot for that |
| ||
hmmm... after setting the order to "0" it disables the zbuffer so when i get up close to a wall my gun sticks through it? can i stop this, ive tried it on "-1" but the gun is still inside out. |
| ||
Using a second camera is the best way I've found of displaying an FPS gun. The code I use for my second camera is below. ; -- Setup HUD camera HUD_camera = CreateCamera() PositionEntity HUD_camera, 0.0, -500.0, 0.0 CameraRange HUD_camera, 0.2, 5.0 CameraZoom HUD_camera, 1.6 CameraClsMode HUD_camera, False, True EntityOrder HUD_camera, -1 |
| ||
AxeMan: That's a really interesting way of doing that. |