Multi-texturing is when you have multiple textures for the same
geometry. A single triangle, for example, with two images mapped to
it. It isn't needed for the method I recommended. That uses one
texture for each geometry. Textures can have transparent areas.
Depending on how you set your depth testing and blending, you can see
through them to geometries at the same location but drawn previously,
or geometries located behind them. So you can have a pair of triangles
with a character from the font mapped to them, but see through the
parts that don't have the actual character to a different geometry
behind them, say a larger pair of triangles with the business card
background color.

I've never used multi-texturing myself so don't know much about it. I
think it is normally used for having one texture with the colors for
an object, but then another texture with say some precalculated
lighting or something to modify that. One issue with it is that
Android phones aren't guaranteed to support multi-texturing. The
OpenGL ES 1.0 spec says implementations are only required to have at
least one texture unit. That said, I think I queried
GL_MAX_TEXTURE_UNITS on a G1 once, and saw two texture units. So maybe
they all happen to have at least 2 for the time being. If they don't
you'd have to write a compatibility mode for the phones without that
many.

On Apr 21, 8:09 am, tina lincon <[email protected]> wrote:
> i mean to ask whether it is possible to superimpose 1 texture upon
> another..Like here in my application,acc to wat u say,i shud be having
> a big rectangle and 1 small rectangle with photo textured onto it and
> another small rectangle with text textured onto it and we need to
> superimpose dose 2 small textured rectangles on the bigger
> rectangle.....so i mean to ask wheter itz possible to superimpose
> multiple textures on another?
>
> On Apr 21, 4:49 pm, tina lincon <[email protected]> wrote:
>
>
>
> > taaanx lance but is it possible to superimpose one texture upon
> > another?wat u talkng isnt it concept abt multitexturing????
>
> > On Apr 21, 2:47 pm, Lance Nanek <[email protected]> wrote:
>
> > > Creating a texture with the whole text for eachbusinesscardwould be
> > > slow and take up a lot of texture memory. Instead you should create
> > > one texture that has all the characters needed from the font. To draw
> > > the whole text for anybusinesscardyou then, for each character of
> > > that text, use a pair of triangles with texture coordinates such that
> > > they display one character from the texture. There are countless tools
> > > and tutorials out there for doing text in OpenGL in this manner.
>
> > > Similarly, to have the photo on one half of thecardand the text on
> > > the other, you would just use more triangles, or in your case, pairs
> > > of triangles to make rectangles. Thecardis one large rectangle,
> > > perhaps not even textured, just colored white to start with. Then a
> > > smaller rectangle in front of that to show the picture. This rectangle
> > > needs to be drawn with the texture object with the picture bound and
> > > have the texture coordinates to show the picture. Then on the other
> > > half a bunch of small rectangles for each character of the text, also
> > > in front of the large rectangle that makes up thecard. This ones
> > > needs the texture object with the font bound, although that can be the
> > > same one if you are using an atlas texture and all photos and font
> > > characters happen to fit into it.
>
> > > On Apr 20, 2:41 am, tina lincon <[email protected]> wrote:
>
> > > > any idea???
>
> > > > On Apr 15, 4:47 pm, Yahel <[email protected]> wrote:
>
> > > > > Sorry to be that guy....
>
> > > > > Most people on the list including me are not native english speakers.
>
> > > > > Your text seems to be in some kind of text message gibberish, can you
> > > > > try that again ?
>
> > > > > Yahel
>
> > > > > On 15 avr, 12:45, tina lincon <[email protected]> wrote:
>
> > > > > > Hi,
> > > > > > I'm presently working with 3d contacts in open gles..the contact
> > > > > > photos are being takn frm contacts via content provider and is being
> > > > > > displayed as 3d contacts like a stack of cards....d pattern is 
> > > > > > wrking
> > > > > > fine but presently in my application,the whole contact photo is 
> > > > > > being
> > > > > > mapped into one square using texturing.What i want is to have a
> > > > > > buisinesscardlike effect for my application like the photo size shud
> > > > > > reduce n come on left side and on the right side of thecardi shud
> > > > > > have the details like  name,phoneno,email,ringtone,officeno
> > > > > > etc..........since der is image n text to b textured @ d same time 
> > > > > > in
> > > > > > a single square or rectangle,shud i use the concept of 
> > > > > > multitexturing
> > > > > > for this or is der any other  simpler way todesignthecardin open
> > > > > > gles???pls help me out.
> > > > > >  thanks in advance...- Hide quoted text -
>
> > > > > - Show quoted text -
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > > > Groups "Android Developers" group.
> > > > To post to this group, send email to [email protected]
> > > > To unsubscribe from this group, send email to
> > > > [email protected]
> > > > For more options, visit this group 
> > > > athttp://groups.google.com/group/android-developers?hl=en
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to [email protected]
> > > To unsubscribe from this group, send email to
> > > [email protected]
> > > For more options, visit this group 
> > > athttp://groups.google.com/group/android-developers?hl=en-Hidequoted text 
> > > -
>
> > > - Show quoted text -
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > For more options, visit this group 
> > athttp://groups.google.com/group/android-developers?hl=en-Hide quoted text -
>
> > - Show quoted text -
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group 
> athttp://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to