[e-users] Question on E17 animated backgrounds

2006-06-18 Thread Daniel Kasak
Greetings all.

I've been working with a friend on an animated background. What we've 
done is take a project in The Gimp, and rendered a LARGE series of 
images, changing the transparency of one of the layers by a very small 
amount each time.

When we make an animated background from this series of images ( 88 of 
them ), the effect is very nice ( we think so anyway ), but it uses a 
LOT of CPU - even if we spread the animation out over 1 minute.

Apart from culling our number of images ( which we'd rather not do, as 
the image transitions become noticable when we do this ), is there any 
other approach we can use? In particular, is there any way of just using 
2 images, and getting E to modify the transparency of one of them? Or is 
our only option to use a series of images, as we've done?

Thanks :)

Dan


___
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users


Re: [e-users] Question on E17 animated backgrounds

2006-06-18 Thread David Seikel
On Sun, 18 Jun 2006 16:31:56 +1000 Daniel Kasak
[EMAIL PROTECTED] wrote:

 I've been working with a friend on an animated background. What we've 
 done is take a project in The Gimp, and rendered a LARGE series of 
 images, changing the transparency of one of the layers by a very
 small amount each time.
 
 When we make an animated background from this series of images ( 88
 of them ), the effect is very nice ( we think so anyway ), but it
 uses a LOT of CPU - even if we spread the animation out over 1 minute.
 
 Apart from culling our number of images ( which we'd rather not do,
 as the image transitions become noticable when we do this ), is there
 any other approach we can use? In particular, is there any way of
 just using 2 images, and getting E to modify the transparency of one
 of them? Or is our only option to use a series of images, as we've
 done?

I have experimented with such things myself.  As far as I can tell,
it's the size of the images that controls how much CPU is used when
dealing with transparencies.  Full screen transparencies will soak up
heaps of CPU no matter what you do.


signature.asc
Description: PGP signature
___
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users


Re: [e-users] Question on E17 animated backgrounds

2006-06-18 Thread Mirek
You can try switch CONTAINER to GL mode, if you have working OpenGL 
(only Nvidia works good for me) and evas compiled with GL engine.


Try these patches, recompile e and use this command:
enlightenment_remote -engine-set CONTAINER GL then restart E17 and it 
should render background in OpenGL, which is much more faster (10x for me).


Mirek

Daniel Kasak napsal(a):

Greetings all.

I've been working with a friend on an animated background. What we've 
done is take a project in The Gimp, and rendered a LARGE series of 
images, changing the transparency of one of the layers by a very small 
amount each time.


When we make an animated background from this series of images ( 88 of 
them ), the effect is very nice ( we think so anyway ), but it uses a 
LOT of CPU - even if we spread the animation out over 1 minute.


Apart from culling our number of images ( which we'd rather not do, as 
the image transitions become noticable when we do this ), is there any 
other approach we can use? In particular, is there any way of just using 
2 images, and getting E to modify the transparency of one of them? Or is 
our only option to use a series of images, as we've done?


Thanks :)

Dan


___
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users

--- e_config.c	2006-05-13 05:04:35.0 +0200
+++ e_config_mod.h	2006-05-14 19:36:13.0 +0200
@@ -1382,11 +1382,7 @@
 {
Evas_List *l = NULL;
l = evas_list_append(l, strdup(SOFTWARE));
-// DISABLE GL as an accessible engine - it does have problems, ESPECIALLY with
-// shaped windows (it can't do them), and multiple gl windows and shared
-// contexts, so for now just disable it. xrender is much more complete in
-// this regard.
-//   l = evas_list_append(l, strdup(GL));
+   l = evas_list_append(l, strdup(GL));
l = evas_list_append(l, strdup(XRENDER));
return l;
 }
--- e_ipc_handlers.h	2006-04-09 13:55:18.0 +0200
+++ e_ipc_handlers_mod.h	2006-05-14 19:33:27.0 +0200
@@ -6820,21 +6820,16 @@
 //
 #define HDL E_IPC_OP_DEFAULT_ENGINE_SET
 #if (TYPE == E_REMOTE_OPTIONS)
-   OP(-default-engine-set, 1, Set the default rendering engine to OPT1 (SOFTWARE or XRENDER), 0, HDL)
+   OP(-default-engine-set, 1, Set the default rendering engine to OPT1 (SOFTWARE, GL or XRENDER), 0, HDL)
 #elif (TYPE == E_REMOTE_OUT)
REQ_INT_START(HDL)
int value = 0;
if (!strcmp(params[0], SOFTWARE)) value = E_EVAS_ENGINE_SOFTWARE_X11;
-   else if (!strcmp(params[0], GL))
- {
-	value = E_EVAS_ENGINE_GL_X11;
-	printf(GL engine is disabled as default engine.\n);
-	exit(-1);
- }
+   else if (!strcmp(params[0], GL)) value = E_EVAS_ENGINE_GL_X11;
else if (!strcmp(params[0], XRENDER)) value = E_EVAS_ENGINE_XRENDER_X11;
else
  {
-	printf(engine must be SOFTWARE or XRENDER\n);
+	printf(engine must be SOFTWARE, GL or XRENDER\n);
 	exit(-1);
  }
REQ_INT_END(value, HDL);
@@ -6919,7 +6914,7 @@
 //
 #define HDL E_IPC_OP_ENGINE_SET
 #if (TYPE == E_REMOTE_OPTIONS)
-   OP(-engine-set, 2, Set the rendering engine for OPT1 to OPT2 (SOFTWARE or XRENDER), 0, HDL)
+   OP(-engine-set, 2, Set the rendering engine for OPT1 to OPT2 (SOFTWARE, GL or XRENDER), 0, HDL)
 #elif (TYPE == E_REMOTE_OUT)
REQ_2INT_START(HDL)
int context = 0, engine = 0;
@@ -6939,16 +6934,11 @@
  }
if (!strcmp(params[1], DEFAULT)) engine = E_EVAS_ENGINE_DEFAULT;
else if (!strcmp(params[1], SOFTWARE)) engine = E_EVAS_ENGINE_SOFTWARE_X11;
-   else if (!strcmp(params[1], GL))
- {
-	engine = E_EVAS_ENGINE_GL_X11;
-	printf(GL engine is disabled as default engine.\n);
-	exit(-1);
- }
+   else if (!strcmp(params[1], GL)) engine = E_EVAS_ENGINE_GL_X11;
else if (!strcmp(params[1], XRENDER)) engine = E_EVAS_ENGINE_XRENDER_X11;
else
  {
-	 printf(engine must be DEFAULT, SOFTWARE or XRENDER\n);
+	 printf(engine must be DEFAULT, SOFTWARE, GL or XRENDER\n);
 	 exit(-1);
  }
REQ_2INT_END(context, engine, HDL);
___
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users