Always Render?
Blitz3D Forums/Blitz3D Beginners Area/Always Render?
| ||
Hi again! I've made a player out of several models. body, arms and head, so I can control the parts by key/mouse input. The camera is positioned at the eyes location, inside its head. Now when I look down, I should see the arms, but I don't. (only in 3rd person view, not in FPS view). I believe it has something to do with the fact that the 'origin' of the arms model is behind the camera and I think Blitz only renders what's seen. Is there a command or way to set certain models so that they are always rendered, no matter if the origin is out of view? Thanks a lot! |
| ||
The "near range" for your camera may be set too low. Try CameraRange camera,0.1,10000. |
| ||
That didn't do the trick. Thanks anyway! |
| ||
..if camera is inside head, i assume your mesh has enabled backface culling, and therefore, its natural that you cant see a thing if camera is inside mesh...so, I suggest to put camera slightly in front of your character eyes, rather than inside.. |
| ||
No, the backfaces are not rendered inside the head. I mean, I can see everything just fine, except my arms wont render, 'cause the origin is behind the camera... |
| ||
Try MeshCullBox which was introduced in v1.97, I think, but isnt in the docs as they haven't been updated in years. It lets you set the render cull box on individual meshes. Do a search for it in the B3D forums for more info. I've never used it myself so can't help much. |
| ||
I did a little search on the MeshCullBox and it worked just fine! Thanks! |