Jump to content

How to check if Entity WILL be visible from specified position with specified camera angles?


Recommended Posts

Posted

I want to make function with following signature:

boolean willBeVisible(Entity entity, int cameraX, int cameraY, int yew, int pitch)

or if camera finished moving to reflect player position change: boolean willBeVisible(Entity entity, Position playerPos, int yew, int pitch)

Any ideas where can i take Entity transform into camera space code snippet or how can use OSBot API to achieve this?

Posted

Yeah, like this. But in addition - if player will be in different location.

42 minutes ago, Saiyan said:

Why would you want this? For what specific scenario? 

For example, to be able detect will be Entity visible after camera movement finish / bot finish walking to destination position or need continue moving towards Entity (do one more click on minimap/tile) so Entity become visible.

Posted
On 4/26/2017 at 0:04 PM, darkxor said:

I want to make function with following signature:

boolean willBeVisible(Entity entity, int cameraX, int cameraY, int yew, int pitch)

or if camera finished moving to reflect player position change: boolean willBeVisible(Entity entity, Position playerPos, int yew, int pitch)

Any ideas where can i take Entity transform into camera space code snippet or how can use OSBot API to achieve this?

I've looked through the game client a while back and the issue always seems to be height. I did find something useful a while back that helped us with certain visibility checks, but models are a bit tricky. Try playing around with pitch, tile height, and model height.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...