3d sight of view?
Blitz3D Forums/Blitz3D Beginners Area/3d sight of view?
| ||
How can i make a good 3d sight of view.. I have many entity on the "screen" i need a faster check rather then a perfect check.. Sorry for my english i hope you'll understand! Aza |
| ||
Hmmm, can you explain further what your trying to achieve? EntityInView() or EntityVisible() may be of some help :o) They don't do perfect checks. I think EntityVisible only checks against boundingboxs or centre points. EntityInView() checks to see if the camera can see the Entity in question. For any entity's that will be in the way, you will need to make them occluders(spelling?), via EntityPickMode() |
| ||
I need to create a sight of view like the human, i can't see behind me and i can't see an entity covered by a structure.. Something like this |
| ||
Have a look at EntityPick. |
| ||
Yes maybe it can work but i need a cone angle.. i find this http://www.blitzbasic.com/codearcs/codearcs.php?code=923 i don't have the possibility to check it now, do you think it can work? |
| ||
try the deltayaw/pitch commands, they can be used to determine what position an entity is to another ie camera. a deltayaw of 0 would mean straight in front and a deltayaw of 45 would mean slightly right and in front. Combined with deltapitch and entity distance (or even the tformpoint command) you can check the height to the camera and if ti's in range, all very quickly. |
| ||
Deltayaw is only for camera? i need not only for the cam.. I need for my ai.. |
| ||
deltayaw works with all entities. |
| ||
Perfect this can be really good... Thanks man |