Commit Graph

155 Commits

Author SHA1 Message Date
kabeer khan fd7d0ca51b evas/examples: Resolved warning in evas-3d example
Summary: Signed-off-by: kabeer khan <kabeer.khan@samsung.com>

Reviewers: cedric, Hermet

Reviewed By: Hermet

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2088
2015-03-04 13:02:07 +09:00
Bogdan Devichev a8e79114db evas-3d: recycling of resources for .ply import/export example
Summary: Smaller resources for .ply example.

Test Plan: run evas-3d-ply.c

Reviewers: cedric, Hermet, raster

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2069
2015-03-03 11:44:40 +09:00
Bogdan Devichev fcd354aa84 evas-3d: recycling of resources for mmap example
Summary: Models for mmap example are more than tan times smaller.

Test Plan: run evas-3d-mmap-set.c

Reviewers: cedric, raster, Hermet

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2073
2015-03-03 11:23:55 +09:00
Bogdan Devichev 6353e17f0b evas-3d: deleted some unneccesary resources and moon-space example
Summary: This example is deprecated. We have another (pick) to show functionality of it.

Test Plan: Need merged D2044 to run pick example.

Reviewers: cedric, raster, Hermet

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2074
2015-03-03 10:58:59 +09:00
Dmytro Dadyka d602597ac1 evas: Evas_3D - add terrain mesh.
Reviewers: Hermet, Oleksander, cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-26 21:06:38 +01:00
Dmytro Dadyka 179acbdd9b evas: Evas_3D - fix coding style
Reviewers: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-26 21:06:38 +01:00
Stefan Schmidt c5879dab4d build: Unify use of $(MKDIR_P) for creating a dir within the build system
While we used different variation of mkdir -p all over we also had spots
where we did not use the option. This is one step in trying to make our
build system ready for parallel install. Using something like -j 10 even
for the install should help to speed up our jenkins jobs as well as distcheck.
2015-02-25 16:43:35 +01:00
Bogdan Devichev d9c9ea1f2a evas: textures are standardized 256*256.
Summary:
Textures for evas-3d are standardized 256*256.
.tga for parallax occlusion aren't changed to save alpha channel.
-50Mb for efl without obvious lost of quality

Reviewers: cedric, Hermet, raster

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-23 19:24:32 +01:00
Cedric BAIL 5c22ae86ac eo: fix examples to follow new eo_do syntax. 2015-02-23 18:46:11 +01:00
Bogdan Devichev 1f9ac72b8e evas: refactoring evas examples descriptions.
Summary:
Descriptions of evas examples are standardized.
Added missing descriptions to examples.
Deleted copy of description in evas-init-shutdown.c.

Reviewers: Hermet, raster, cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-23 18:31:43 +01:00
Cedric BAIL e5eea68ead gitignore: don't track generated example. 2015-02-23 15:46:55 +01:00
Cedric BAIL 772e9bee2f evas: build evas_3d_parallax_occlusion. 2015-02-23 15:46:54 +01:00
Bogdan Devichev ccfbb521cd evas: some fixes to evas examples.
Summary:
Fixed : errors (connected with eo and new resources path) in evas-object-manipulation-eo.c
Fixed : warning: format not a string literal and no format arguments [-Wformat-security]
FIxed : unused variables in evas-images3.c are deleted

Reviewers: raster, Hermet, cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-23 15:46:54 +01:00
Dmytro Dadyka 1b142d09d9 evas: Evas_3D - add parallax occlusion shading.
Reviewers: Hermet, cedric

Reviewed By: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2018
2015-02-23 15:46:25 +01:00
Bogdan Devichev 4cd50a447f evas: resources for evas-2d examples are added to resource folder.
Summary:  Process of loading is standard now. TODOs which are added here will be done in one of the next commits soon.

Reviewers: cedric, Hermet, raster

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-20 18:37:03 +01:00
Dmytro Dadyka f377770cc1 evas: Evas_3D - add common code for primitive shape.
Reviewers: Hermet, cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-20 18:36:56 +01:00
Bogdan Devichev 175c8cbd63 evas: Evas_3D - add creation of folder for saving and usage of PACKAGE_DATA_DIR to every example of Evas_3D.
Reviewers: cedric, Hermet, raster

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-20 12:19:30 +01:00
Bogdan Devichev 145093a32b evas: Evas_3D - Makefile updated for resources ordering in evas examples.
Reviewers: cedric, Hermet, raster

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-18 22:42:41 +01:00
Bogdan Devichev 303a6a87d0 evas: Evas_3D - regularize resource for 3D examples.
Summary: This commit makes folder of examples for evas more ordered.

Reviewers: raster, Hermet, cedric

Subscribers: artem.popov, cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-18 22:42:20 +01:00
Cedric BAIL d6f2dd4dd0 evas: remove compilation warning. 2015-02-18 22:42:17 +01:00
perepelits.m 2e2145b594 evas: Evas_3D - improve Shooter example.
Summary: This example includes some previous developments to create 3d-world mechanics.

Reviewers: cedric, raster, Hermet

Subscribers: cedric, artem.popov

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-18 22:42:17 +01:00
Oleksandr Shcherbina d28b82be45 evas: Evas_3D - callbacks for Evas 3D.
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-18 22:42:07 +01:00
kabeer khan 88932d3645 evas: updated .gitignore to not track evas_3d_colorpick example.
Summary: Signed-off-by: kabeer khan <kabeer.khan@samsung.com>

Reviewers: cedric, Oleksander

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-16 12:11:28 +01:00
Bogdan Devichev 1506130866 evas: Evas_3D - iport/export of Obj format can be read even if obj-file does not have normals or tex-coords.
Summary:
This commit fixed several bugs, and show what was be fixed.

Bugs:
- When designer save obj file in Blender, he/she can set flags (fig 1). Normals and UV coords flags was necessary  for obj loader. Loader crushed when they are not set as true. It fixed by this commit.
- Another loaders set default values to data which aren't in loading file, so mesh need more memory for unused data. It fixed by this commit for obj and will be fixed for another formats in future.
- Saver saved incorrect data if normals or tex_coords was not set in mesh in evas. Now it fixed.
- Saver failed if it save mesh without material. It fixed and in this case material file is not created now.
- Also fixed some leaks and undefined behavior which valgrind shows.

Example:
- Example shows cases described above. Example use files saved with different flags for it.

Resources:
- man_mesh is replaced by several smaller file, to use them for showing new features and fixes. For example, similar to that models can be added when implement work with material for obj, work with different flags for obj loader/saver etc. (big count of man_meshes is to much memory).
- texture for home is flipped, because of bug with texture in efl to see if tex_coords is incorrect.

Test:
- test should be rewritten in future, because another formats still use default values for normals and tex_coords. And test can not pass for all types of obj file because of standardization for any format in him.

Test Plan: Test suit will be rewritten after correcting of other formats (they will set NULL to file when save an empty data (like mesh without normals))

Reviewers: Hermet, raster, cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-11 18:31:53 +01:00
Oleksandr Shcherbina c6c6233b50 evas: example for Evas_3D color pick
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-11 18:05:54 +01:00
kabeer khan 46b9b23144 evas: add image orient set/get API in software backend for now.
Summary:
Added API's to rotate(0, 90, 180, 270), flip(horizontal, vertical, transpose, transverse)
evas image object. Also added example to demonstrate this.

Signed-off-by: kabeer khan <kabeer.khan@samsung.com>

Reviewers: raster, stephenmhouston, cedric

Subscribers: stephenmhouston, cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-11 17:30:54 +01:00
ChunEon Park 8ee679cb6e evas/examples: just change file name. 2015-02-03 10:50:03 +09:00
Dmytro Dadyka 77d6f8aa17 [Evas: Evas_3D] Improve shadows example.
Reviewers: cedric, raster, Hermet

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1891
2015-02-03 10:44:44 +09:00
Stefan Schmidt 04805fc6a1 examples/evas: Add evas_3d_shadows binary to .gitignore 2015-01-19 10:41:47 +01:00
Stefan Schmidt 4bbac653e7 examples/evas-3d-blending: Remove unused global variable.
This got shadowed in one of the functions and is not used at all.
2015-01-09 18:25:41 +01:00
Stefan Schmidt c8ce785970 examples/evas-3d-shadows: Avoid shadowing a global variable. 2015-01-09 18:25:41 +01:00
Stefan Schmidt b4898dbd1f examples/evas-3d-frustum: Remove unused variables. 2015-01-09 18:25:41 +01:00
Jean-Philippe Andre 61d76136de Evas examples: Fix comment also in evas-map-aa.c
i'm dumb and didn't even read the line above the one i changed...
2015-01-07 17:56:40 +09:00
Jean-Philippe Andre 62b5fc180e Evas examples: Fix command line in evas-map-aa.c 2015-01-07 17:50:33 +09:00
Dmytro Dadyka 38b3d5a857 [Evas: Evas_3D] Fixed bug with bounding shapes update.
Reviewers: cedric, Hermet

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1851
2015-01-07 12:58:51 +09:00
ChunEon Park 5cfb266431 evas/examples: do build evas_3d_shadows 2015-01-07 12:04:21 +09:00
Dmytro Dadyka e7752ff7d7 [Evas: Evas_3D]Fixed bug with shadows and blending of vertex position
Reviewers: cedric, Hermet

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1850
2015-01-07 12:00:47 +09:00
Cedric BAIL bb74ded8c8 gitignore: don't track generated file. 2014-12-23 22:37:23 +01:00
Cedric BAIL 0153e782c1 autotools: build new evas_3d_mmap examples. 2014-12-23 22:36:36 +01:00
Bogdan Devichev c471665ac8 evas: make Evas 3d mesh is inherited from Efl.File (functions file_set and save) 2014-12-23 21:20:21 +01:00
Bogdan Devichev ce36f8f5ad evas: better example of _mmap_set and resources for it are added. 2014-12-23 21:20:21 +01:00
Bogdan Devichev dd60525798 evas: a _mmap version of the file_set is added. 2014-12-23 21:20:21 +01:00
Bogdan Devichev 4acbae6947 evas: test cases are changed according to changes of API in step 4. Specific logic in obj_saver is removed for standardization of API. 2014-12-23 21:16:19 +01:00
Bogdan Devichev aaddf1a963 evas: Evas_3D_Mesh_File_Type sank into oblivion. Changing entry point to model_save_load. Changing API in examples. 2014-12-23 21:16:07 +01:00
Cedric BAIL f3e342b5ba .gitignore: ignore generated files. 2014-12-12 03:48:32 +01:00
ChunEon Park 5c79b5d38f evas/examples: fix warnings.
removed unused.
2014-12-04 19:47:41 +09:00
ChunEon Park 0a12352c3d evas/examples: fix build break
add dependency libefl to call efl_file_set().
2014-12-04 19:44:00 +09:00
Dmytro Dadyka 6762af0beb evas: Evas_3D - add mesh blending mode.
Reviewers: Hermet, raster, cedric

Subscribers: Oleksander, cedric

@feature

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-12-01 08:09:29 +01:00
Oleksandr Shcherbina 30a44d9100 evas: Evas_3D - example which show frustum culing feature
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-12-01 06:27:40 +01:00
ChunEon Park f6a5ada4a2 evas/example - fix wrong image size. 2014-11-26 19:18:57 +09:00