summaryrefslogtreecommitdiff
path: root/src/lib/evas/include/evas_3d_utils.h (follow)
AgeCommit message (Collapse)Author
2017-04-24Fix spelling of 'alpha channel'Bryce Harrington
Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D4817
2017-01-06eina: rename EINA_{FLT,DBL}_CMP to EINA_{FLT,DBL}_EQ.Cedric BAIL
2016-12-19evas: get rid of float comparison warning in Evas_3D.Cedric BAIL
2016-02-17evas: Update evas_3d_utils, replace Evas_Vec.se.osadchy
Summary: Change Evas_Vec2(3) to Eina_Vector2(3). Reviewers: cedric, Hermet, jpeg Subscribers: jpeg Differential Revision: https://phab.enlightenment.org/D3686
2016-02-12evas: optimize Canvas3D calculation of bounding spaceIvan Furs
Summary: Bounding box and sphere will calculate if user need callback of collision or data of box or data of sphere. Reviewers: sri.hebbar, cedric Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D3643 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-01-13Evas: remove extra if from evas_3d_utils.hperepelits.m
Summary: remove extra if from evas_3d_utils.h according to Coverity (CID1339788) Reviewers: raster, Hermet, cedric Subscribers: jpeg, artem.popov Differential Revision: https://phab.enlightenment.org/D3558
2016-01-09evas: fix optimization of vertex count in convex hullperepelits.m
Summary: FLT_COMPARISON should be used everywhere in evas_3d_utils.h Reviewers: cedric, raster, Hermet Subscribers: jpeg, artem.popov Differential Revision: https://phab.enlightenment.org/D3551 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-01-04evas: create Eina_Vector2 structure and add functions.se.osadchy
Summary: Only copy code from evas_3d_utils, rename evas to eina and add documentation. Reviewers: Hermet, raster, jpeg, cedric Reviewed By: jpeg, cedric Subscribers: jpeg Differential Revision: https://phab.enlightenment.org/D3509 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-01-04evas: fix convex hull.perepelits.m
Summary: There were some problems with second and third vertices in the first triangle of convex hull. It is very hard to see this errors because it could cause an excess of triangles inside of convex hull, I have used blender to find them. Reviewers: raster, Hermet, cedric Reviewed By: cedric Subscribers: jpeg, artem.popov Differential Revision: https://phab.enlightenment.org/D3491 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-07evas: recognize duplicated data structure with eina_quternion and ector.se.osadchy
Summary: Move data structure and functionality to eina_quaternion from evas_vec4. Reviewers: raster, Hermet, cedric Subscribers: jpeg, Oleksander Differential Revision: https://phab.enlightenment.org/D3327 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-02evas: fix bug with logic with eina_matrix in evas_3d_utilsse.osadchy
Summary: Also need to fix logically dead code in coverity. Reviewers: raster, Hermet, cedric Subscribers: jpeg Maniphest Tasks: T2832 Differential Revision: https://phab.enlightenment.org/D3346 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-30evas_3d_utils: do not bitwise AND against 0 in conditionStefan Schmidt
We need to check against the state here and if the compilers assignes 0 to the first item in an enum we are screwed here as the bitwise AND will always evaluate to false. This is a re-incarnation from a486671bce76e405a8d7261f19b0f67ca678f0c4
2015-11-30evas-3d: Fix missing field initializersChris Michael
Clang spits warnings here about missing field initializers for Evas_Vec3 (missing y and z fields), so we will explicitly initialize them to 0 (matching the x field). @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-11-23evas: remove useless part of code in evas_convex_hull_get functionOleksandr Shcherbina
Summary: @fix CID: 1339788 Reviewers: raster, cedric Reviewed By: cedric Differential Revision: https://phab.enlightenment.org/D3350 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-23evas: fix uninitialize variable in convex_hull_vertex_set functionOleksandr Shcherbina
Summary: A bit of useless claim, becouse parameter coord always have value 0 or 1 or 2. May be for escape problem in future. @fix CID: 1339781 Reviewers: raster, cedric Reviewed By: cedric Differential Revision: https://phab.enlightenment.org/D3349 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-09evas: refactor duplicated data structure with eina_matrix.se.osadchy
Summary: Move data structure and functionality to eina_matrix from evas_mat. Reviewers: raster, Hermet, cedric Subscribers: Oleksander, cedric Differential Revision: https://phab.enlightenment.org/D3020 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-09evas: API for Convex Hull in Evas.Canvas3dperepelits.m
Summary: This API builds vertex and index data of convex hull around the given mesh. Reviewers: raster, perepelits.m, Hermet, cedric Reviewed By: cedric Subscribers: cedric, artem.popov Differential Revision: https://phab.enlightenment.org/D2799 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-10-19evas: fix memory leakperepelits.m
Summary: Fix of memory leak in evas_3d_utils.c @fix Reviewers: raster, Hermet, cedric Reviewed By: cedric Subscribers: artem.popov Differential Revision: https://phab.enlightenment.org/D3196 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-09-21evas: remove unused variable in evas_tangent_space_get.perepelits.m
Summary: Firstly it was the main point of in CID1323089 from Coverity, but this variable is unused. So I've deleted it. CID1323089 Reviewers: raster, Hermet, cedric Reviewed By: cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D3067 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-08-05evas_3d_utils: fix compiler warningDaniel Kolesa
2015-08-04evas: add tangent space algorithmperepelits.m
Summary: This is a logic of tangent data calculation, we need it in order to avoid bugs with normal mapping after building with opengl=yes. Reviewers: Hermet, raster, cedric Reviewed By: cedric Subscribers: Oleksander, cedric, artem.popov Differential Revision: https://phab.enlightenment.org/D2802 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-07-04edje: add Convex Hull logicperepelits.m
Summary: This is an algorithm which calcuates a convex hull of some mesh, in fact it returns vertex, index, normal and color datas, though the new mesh could be build just as for AABB Reviewers: raster, Hermet, cedric Subscribers: cedric, artem.popov Differential Revision: https://phab.enlightenment.org/D2585 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-05-13evas: fix coverity CID 1297159 and CID 1297158.Oleksandr Shcherbina
Reviewers: Hermet, b.devichev, cedric Reviewed By: cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2494 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-05-07evas: use Evas_GL_image for generate texture unit for Evas_3D_Texture.Oleksandr Shcherbina
Summary: Used engine function for load image/data and use texture unit through Evas_GL_Image object Used Evas_ColorSpace format instead Evas_3D_Color/Pixel format Added transformation matrix for adjusting texture unit coordinates in shader Added property in Evas_3D_Texture for mark possibility get texture without atlas (see https://phab.enlightenment.org/conpherence/54/, I suppose it will done after this patch) Reviewers: Hermet, cedric Reviewed By: cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2371 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-18evas: Evas_3D - callbacks for Evas 3D.Oleksandr Shcherbina
Summary: Add class and type Evas_3D_Callback like wrapper under smart object Incapsulate Evas_3D_Callback in Evas_3D_Object Add virtual function register and unregister in Evas_3D_Object Add function evas_3d_callback_call Add callbacks clicked and collision for Evas_3D_Node @feature Reviewers: raster, Hermet, cedric Reviewed By: cedric Subscribers: artem.popov, cedric Differential Revision: https://phab.enlightenment.org/D1914 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-17evas: Evas_3D - refactor node shapes update mechanism.Dmytro Dadyka
Reviewers: cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1984 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-05evas: Evas_3D - fix when bounding sphere is large, situation with incorrect ↵Bogdan Devichev
frustum calculation was possible. Summary: When center of bounding sphere was out of frustum and number of intersections between bs and planes of frustum was more then 3, objects disappeared. @fix Reviewers: Hermet, raster, cedric Reviewed By: cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1938 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-05evas: Evas_3D - fix bug with uninit Evas_Mat4 flag.Dmytro Dadyka
Reviewers: Hermet, raster, cedric @fix Reviewed By: cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1930 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-12-01evas: Evas_3D - add bounding sphere, revision frustum cullingOleksandr Shcherbina
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>
2014-06-05evas: Evas_3D - add evas_box3_ray3_intersect and evas_box2_intersect_2d ↵perepelits.m
functions. Summary: First function is used for intersection of ray and parallelepiped, the second one - for intersection of ray and rectangle in two-dimensional case. @feature Reviewers: Hermet, cedric, raster CC: cedric Differential Revision: https://phab.enlightenment.org/D956 Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-04-25evas: rename near and far as it seems protected on Windows.Cedric Bail
2014-04-25evas: fix massive number of warning introduced by Evas_3d.Cedric Bail
2014-04-25evas/evas3d: cleanup docs and removed unncessary files.ChunEon Park
Conflicts: src/lib/evas/Evas_Legacy.h
2014-04-25Evas: 3D: Refined proxy texture implementationTaekyun Kim
Added new APIs for controlling source object's visibility. Fixed bugs related to updating proxy textures.
2014-04-25Evas: 3D: evas_3d_node_look_at_set() bug fixTaekyun Kim
2014-04-25Evas: 3D: Introducing 3D scene rendering featuresTaekyun Kim
Enable 3D features using --enable-evas-3d=yes when configuring. APIs are exposed through Evas_3D.h. Currently, evas-3d is being supported only on gl_x11 engine. Conflicts: src/lib/evas/Evas_Eo.h