entity visible
Blitz3D Forums/Blitz3D Beginners Area/entity visible
| ||
i cant found the function for check entity is visible |
| ||
er, tried EntityVisible? |
| ||
no work too this problems repeat in blitz3d, no basic functions exists |
| ||
I don't know what you mean. |
| ||
EntityInView (entity,camera) ? |
| ||
entityvisible is for two entities, if the two entities see return true else false, but no work for no check if is visible or no |
| ||
entityvisible just draws a line from one entity to another, and returns tru if the line isnt broken - you need to use delta yaw if you want to actually 'see' entities |
| ||
i need check if entity is visible or no example: i load a mesh with children objects, one children is invisible and the others no, i need get the entity invisible, but what is it? |
| ||
I used EntityInView for the following code. If Not EntityInView(Treeb(tt),camera) Then HideEntity Treeb(tt) Else ShowEntity treeb(tt) It works for me. The second entity is the camera. Thus is the entity in view. |
| ||
but the object no in view always |
| ||
"example: i load a mesh with children objects, one children is invisible and the others no, i need get the entity invisible, but what is it?" Are you talking about the transparency (alpha) state of the entity? If so, I'm not aware of any command that will tell you this. You need to store the transparency state in a variable and set the state using the value in that variable. Then you can simply read the variable to find the transparency state. If you're talking about visibility picking using the pick commands, then make sure you have the pick mode of your entities set correctly by using 'EntityPickMode'. Remember that you'll also need to set the pick mode of any entities that you want to obscure (block) the picking of your entities, including your game arena meshes. |