smashthewindow
Member
|
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".
|
|
04-25-2013 11:45 PM |
|
krokodilcapa
Member
|
RE: Mesh visible to camera
Check with raycast?
|
|
04-26-2013 10:07 AM |
|
smashthewindow
Member
|
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 |
|
Rubeus
Member
|
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 |
|
cmontiel
Member
|
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 |
|
smashthewindow
Member
|
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 |
|