About Store Forum Documentation Contact
Donations:
309$/mo



Post Reply 
Mesh visible to camera
Author Message
smashthewindow Offline
Member

Post: #1
Mesh visible to camera
Is there any way to find out if a mesh is visible on camera?

Thanks.

Ah actually nevermind, I've found the frustrum class.
Thanks all.

-EDIT: Is there anyway to check if the mesh is blocked by other meshes at all? Visible "to-the-eye".
(This post was last modified: 04-26-2013 04:57 AM by smashthewindow.)
04-25-2013 11:45 PM
Find all posts by this user Quote this message in a reply
krokodilcapa Offline
Member

Post: #2
RE: Mesh visible to camera
Check with raycast?
04-26-2013 10:07 AM
Find all posts by this user Quote this message in a reply
smashthewindow Offline
Member

Post: #3
RE: Mesh visible to camera
Raycasting only works to one point, I need to find a way to see if ANY part of the mesh is visible and not obstructed by other meshes.
04-26-2013 11:33 AM
Find all posts by this user Quote this message in a reply
Rubeus Offline
Member

Post: #4
RE: Mesh visible to camera
Would raycasting to corners of the object's bounding box work for your purposes? There's different levels of testing that you can use-the more accurately you test, the harder your performance will be hit.
04-26-2013 01:17 PM
Find all posts by this user Quote this message in a reply
cmontiel Offline
Member

Post: #5
RE: Mesh visible to camera
I am interested too. In my case raycasting is not an option. My meshes are characers and have animation and rotations. And walls haven't physics.

IRC: irc.freenode.net
Channel: #Esenthel
04-26-2013 01:38 PM
Find all posts by this user Quote this message in a reply
smashthewindow Offline
Member

Post: #6
RE: Mesh visible to camera
(04-26-2013 01:17 PM)Rubeus Wrote:  Would raycasting to corners of the object's bounding box work for your purposes? There's different levels of testing that you can use-the more accurately you test, the harder your performance will be hit.

Yeah I'll try that.
04-26-2013 05:29 PM
Find all posts by this user Quote this message in a reply
Post Reply