Jump to content

object visible when it's not


Recommended Posts

Posted (edited)

I suppose it would be possible

 

Use the camera yaw angle to determine what positions are located between the tree and the viewport (not as difficult as it may sound).

Find all of the objects in these positions

Intersect the model areas of every one of these objects with the model area of the tree.

The remaining area (if any) is what should be visible on the screen.

Edited by FrostBug
Posted (edited)

I suppose it would be possible

 

Use the camera yaw angle to determine what positions are located between the tree and the viewport (not as difficult as it may sound).

Find all of the objects in these positions

Intersect the model areas of every one of these objects with the model area of the tree.

The remaining area (if any) is what should be visible on the screen.

 

Thats was what I was thinking... but it seems such overkill xD

How you determine if the model is infront or behind the object?

Edited by Khaleesi
Posted

Thats was what I was thinking... but it seems such overkill xD

How you determine if the model is infront or behind the object?

 

You could compare the camera yaw angle to the angle between the supposedly blocking object and the tree. If they differ more than ~90 degrees or so, it shouldn't be in front. The yaw angle might need to be translated first, though.

 

Posted

You could compare the camera yaw angle to the angle between the supposedly blocking object and the tree. If they differ more than ~90 degrees or so, it shouldn't be in front. The yaw angle might need to be translated first, though.

 

 

Ya, there is a lot of shit going on to get this idea working though.

Would like to see somebody try ^^

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...