3d sight of view?

Blitz3D Forums/Blitz3D Beginners Area/3d sight of view?

Azaratur(Posted 2007) [#1]
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


Ross C(Posted 2007) [#2]
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()


Azaratur(Posted 2007) [#3]
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


big10p(Posted 2007) [#4]
Have a look at EntityPick.


Azaratur(Posted 2007) [#5]
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?


(tu) sinu(Posted 2007) [#6]
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.


Azaratur(Posted 2007) [#7]
Deltayaw is only for camera? i need not only for the cam.. I need for my ai..


(tu) sinu(Posted 2007) [#8]
deltayaw works with all entities.


Azaratur(Posted 2007) [#9]
Perfect this can be really good...
Thanks man