Jump to content
rsnerd

object visible when it's not

Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Recently Browsing   0 members

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