evas: Evas_3D - add bounding sphere, revision frustum culling
authorOleksandr Shcherbina <o.shcherbina@samsung.com>
Mon, 1 Dec 2014 05:26:28 +0000 (06:26 +0100)
committerCedric BAIL <cedric@osg.samsung.com>
Mon, 1 Dec 2014 05:26:32 +0000 (06:26 +0100)
commit54c1667d4e4dfc160fa8a7ce6118d6032645314a
treec5c1162727d02b2b50b5a83f19cf25b7043a6343
parent4366057dc640283d450701b828e48ff83e19f612
evas: Evas_3D - add bounding sphere, revision frustum culling

Summary:
Move check visibility of node from evas_3d_node to evas_3d_camera
Move functionality (normalize, check distance, calculate frustum)
in evas_3d_utils.h (we are planing use evas_is_sphere_in_frustum in evas_gl_3d.c -
don't render mesh if it non visible)
Add possibility check frustum by box, aabb, central point
Refactor example frustum culling

@feature

Reviewers: Hermet, raster, cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1420

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
src/lib/evas/Evas_Eo.h
src/lib/evas/canvas/evas_3d_camera.c
src/lib/evas/canvas/evas_3d_camera.eo
src/lib/evas/canvas/evas_3d_node.c
src/lib/evas/canvas/evas_3d_node.eo
src/lib/evas/include/evas_3d_utils.h
src/lib/evas/include/evas_private.h