3D in EFL (Rolling dices on OpenMoko)

Carsten Haitzler (The Rasterman) raster at rasterman.com
Wed Mar 24 01:22:03 CET 2010


On Mon, 22 Mar 2010 10:00:56 +0100
Xavier Cremaschi <omega.xavier at gmail.com>said:

> EFL can use opengl for its rendering (not on openmoko, because it seems 
> we don't have an opengl-es driver). What do you mean by 3d ? Can I 
> modelize cube, sphere, and do some projective geometry ?
> 
> In elementary I cannot find an equivalent of an opengl context 
> (QGLWidget in qt4), if someone has an idea ?

see evas_map stuff - u can apply a "map" (a (texture)map). you define 4 points
in space (3d), 4 texture u,v co-ordinates (that map the given object geometry
to these 4 points - just like opengl). you cat rotate these points around the
3 axes (x, y and z) by  number of degrees and you now can apply a perspective
transform + lighting to this map (the 4 points). see expedite or elementary -
they use this. the elm flip widget does just this to flip in "3d" between
a front and back side of a "card". expedite crates its spinning cubes this way.

it's not intended for full "3d" - like making complex 3d apps/games. it's meant
for 3d effects in 2d ui's. like spinning, rotating and flipping. it can be used
a bit more extensively to do single geometric stuff like cubes - it could do
spheres given enough faces made out of multiple objects, but that's pushing it.
it could do simple 3d needed for things like mapping/navigation apps.

but no - there is no "qglwidget" thing in evas - this imho is "throwing in the
towel" and just "do it all in opengl" which is a very different api concept to
evas - it means you NEEED opengl or it just doesnt work. evas provides its map
feature with or without opengl present. it works (fast) in software as well as
opengl. it's an always-on and always-working feature.

> Le 09/03/2010 02:04, Steven Le Roux a écrit :
> > EFL does 3D too :)
> >
> > On Mon, Mar 8, 2010 at 10:47 PM, Xavier Cremaschi
> > <omega.xavier at gmail.com <mailto:omega.xavier at gmail.com>> wrote:
> >
> >     On 08/03/2010 19:43, Davide Scaini wrote:
> >      > give a try asking to mokomaze developer... I think he should give you
> >      > lots of answers... maybe :)
> >      > d
> >
> >     Thanks, very good idea indeed ! Mokomaze can be a perfect model, I will
> >     read the source :)
> >
> >
> >     _______________________________________________
> >     Openmoko community mailing list
> >     community at lists.openmoko.org <mailto:community at lists.openmoko.org>
> >     http://lists.openmoko.org/mailman/listinfo/community
> >
> >
> >
> >
> > --
> > Steven Le Roux
> > Jabber-ID : Steven at jabber.fr <mailto:Steven at jabber.fr>
> > 0x39494CCB <steven at le-roux.info <mailto:steven at le-roux.info>>
> > 2FF7 226B 552E 4709 03F0  6281 72D7 A010 3949 4CCB
> >
> >
> >
> > _______________________________________________
> > Openmoko community mailing list
> > community at lists.openmoko.org
> > http://lists.openmoko.org/mailman/listinfo/community
> 
> 
> 
> _______________________________________________
> Openmoko community mailing list
> community at lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    raster at rasterman.com




More information about the community mailing list